Trying to use the new XCFramework support in 1.5.3...
# multiplatform
t
Trying to use the new XCFramework support in 1.5.30. When trying to add watchos target, I get the following. Anybody else see this?
Copy code
Compilation failed: The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ command returned non-zero exit code: 1.
output:
clang (LLVM option parsing): for the --fast-isel option: may only occur zero or one times!
clang (LLVM option parsing): for the --global-isel option: may only occur zero or one times!

 * Source files: 
 * Compiler version info: Konan: 1.5.30 / Kotlin: 1.5.30
 * Output kind: FRAMEWORK
Also, when I try to enable armv7 (iosArm32) support (I need to support iOS 10), I get the following:
Copy code
Compilation failed: The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ command returned non-zero exit code: 1.
output:
warning: overriding the module target triple with armv7-apple-ios9.0 [-Woverride-module]
fatal error: error in backend: can not encode offset '0x10000E4' in resulting scattered relocation.

 * Source files: 
 * Compiler version info: Konan: 1.5.30 / Kotlin: 1.5.30
 * Output kind: FRAMEWORK
And now my third issue: Kotlin 1.5.30, I built my shared module as an XCFramework, both debug and release, with bitcode included. Archived my app and attempted to upload as TestFlight / App Store build. And I get this at the very end of the attempted upload:
ERROR ITMS-90085: “No architectures in the binary. Lipo failed to detect any architectures in the bundle executable.”
Please, has anybody used the latest methods in KMM and uploaded an iOS app to the App Store/TestFlight????
So I finally got it working by going back to the cocoapods approach. Though I also had to rename all my imports, since it was easier than trying how to figure out telling the cocoapods podspec to use a different name than the project name.
t
I’m running into the same issue as your first comment. Did you figure out why this error occurs?
Copy code
clang (LLVM option parsing): for the --fast-isel option: may only occur zero or one times!
clang (LLVM option parsing): for the --global-isel option: may only occur zero or one times!
For me it is related to watchos too. I am using FatFrameworkTask
t
I did not. And I have not gathered the energy to create a small test case for a YouTrack issue….