ZabGo
05/06/2020, 9:09 AMUndefined symbols for architecture x86_64
I am not really sure about the right way to link this framework.
I tried to add the headers of this framework to compilerOpts
as well but it did not change anything.
Is there anything I need to change or add in the def file or build.gradle?
For now the linkerOpts looks like that in my def file:
linkerOpts= \
-F/absolute/path/to/MyFramework.framework \
-framework AVFoundation \
-framework Foundation \
-framework CoreGraphics \
-framework CoreVideo \
-framework QuartzCore \
-framework UIKit \
-framework CoreLocation \
-framework Security \
-framework CFNetwork \
-framework CoreMedia \
-framework SystemConfiguration \
-framework AudioToolbox
in my build.gradle
iosX64("ios") {
binaries {
framework('Shared'){
linkerOpts "-F/absolute/path/to/MyFramework.framework"
}
}
compilations.main {
cinterops {
myCinterop {
linkerOpts "-F/absolute/path/to/MyFramework.framework"
}
}
}
Kris Wong
05/06/2020, 12:46 PMKris Wong
05/06/2020, 12:47 PMZabGo
05/06/2020, 1:03 PM- MyFramework.framework
- Headers
- x86_64-iphonesimulator-gcc
- x86-iphonesimulator-gcc
- etc. with different architectures
- a binary file without any extension
ZabGo
05/06/2020, 1:09 PM-F/absolute/path/to/MyFramework.framework
the correct way to pass this framework to the linker as it is in my KMP project?
Or do I need to add the headers and the binary file somewhere?Kris Wong
05/06/2020, 1:23 PMZabGo
05/06/2020, 1:25 PM-F/absolute/path/to/MyFramework.framework -framework MyFramework
but I get an error saying MyFramework not found
So I thought it was not the correct way to do it, was it?ZabGo
05/06/2020, 1:28 PM-F/absolute/path/to/MyFramework.framework -framework
?ZabGo
05/06/2020, 1:28 PMKris Wong
05/06/2020, 1:30 PMKris Wong
05/06/2020, 1:30 PMZabGo
05/06/2020, 1:34 PMframework not found
I'll give it a try again.ZabGo
05/06/2020, 1:36 PMKris Wong
05/06/2020, 1:37 PMKris Wong
05/06/2020, 1:37 PMZabGo
05/06/2020, 1:39 PMZabGo
05/06/2020, 1:56 PM