Nikita Khlebushkin
02/26/2020, 6:09 PMpodspec
, then specified pod 'my-pod', :path => '../my-pod'
in project's Podfile and ran pod install
. I can import classes in Xcode and autocomplete works just fine, but when I try to build it, I get
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AnalyticsInitParameters", referenced from:
objc-class-ref in ContentView.o
"_OBJC_CLASS_$_AnalyticsAnalytics", referenced from:
objc-class-ref in ContentView.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What am I doing wrong? Did I skip anything?Kris Wong
02/26/2020, 6:30 PMNikita Khlebushkin
02/26/2020, 6:32 PMios {}
targetNikita Khlebushkin
02/26/2020, 6:33 PMval buildForDevice = project.findProperty("kotlin.native.cocoapods.target") == "ios_arm"
if (buildForDevice) {
iosArm64("iOS64")
iosArm32("iOS32")
val iOSMain by sourceSets.creating
sourceSets["iOS64Main"].dependsOn(iOSMain)
sourceSets["iOS32Main"].dependsOn(iOSMain)
} else {
iosX64("iOS")
}
Kris Wong
02/26/2020, 6:50 PMNikita Khlebushkin
02/26/2020, 7:05 PMNikita Khlebushkin
02/26/2020, 7:05 PMNikita Khlebushkin
02/26/2020, 7:06 PMkotlin {
jvm {}
ios {}
...
}
Nikita Khlebushkin
02/26/2020, 7:07 PMNikita Khlebushkin
02/26/2020, 7:07 PMNikita Khlebushkin
02/26/2020, 7:08 PMKris Wong
02/26/2020, 7:26 PMNikita Khlebushkin
02/26/2020, 7:30 PMKris Wong
02/26/2020, 7:34 PMNikita Khlebushkin
02/26/2020, 10:01 PMuse_frameworks!
with use_modular_headers!
did the trickNikita Khlebushkin
02/26/2020, 10:08 PMKris Wong
02/26/2020, 10:13 PMNikita Khlebushkin
02/26/2020, 10:36 PMNikita Khlebushkin
02/26/2020, 10:37 PMuse_frameworks!
and use_modular_headers!
Nikita Khlebushkin
02/26/2020, 10:37 PMuse_fragments!
, it works againNikita Khlebushkin
02/26/2020, 10:37 PMuse_fragments!
?