https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
b

Bailey Pollard

06/22/2021, 4:19 PM
Hey folks, another question for you all - I have a class file in both `iosX64Main`/`iosArm64Main` directories that I need to access directly from a
.swift
file. When I had this class file inside
iosMain
I could successfully call the class without any issues. I recently had to move this file into `iosX64Main`/`iosArm64Main` to access some external library that was added, but I can no longer call this class from the
.swift
file. Any suggestions?
h

hfhbd

06/22/2021, 5:06 PM
Depending on the chosen CPU arch, the file will be presented in the Xcode framework and accessible in
.swift
.
b

Bailey Pollard

06/22/2021, 5:07 PM
I may be missing something then 🤔 it's not getting generated
h

hfhbd

06/22/2021, 5:11 PM
It really depends on the gradle and Xcode search paths, Xcode build setting. Do you have some gradle tasks/settings?
b

Bailey Pollard

06/22/2021, 5:23 PM
I have my framework linked up to my ios project successfully
is that what you're asking?
h

hfhbd

06/22/2021, 5:30 PM
Yes.