Closed vixentael closed 3 years ago
Seems like this is now broken in Xcode 12.0.1 :(
@mmoloksher thank you for notifying!
I've checked another workaround and it works for me for Xcode 12.0.1.
I have this issue open for those who are looking...
Confirmed:
I think, everyone already knows what's going on, but let me write again.
Xcode 12 has introduced Apple Silicon support on macOS. Since 0.13.4 Themis supports ARM64 architecture on macOS, but excludes ARM64-iphonesimulator architecture slice for iOS.
iOS: Excluded arm64-iphonesimulator architecture slice for now.
macOS: If you’re supporting x86_64 and arm64, use Themis 0.13.4 and later. Previous versions don’t contain arm64 slice.
As .framework
cannot contain both arm64 slice and arm64-iphonesimulator slice, there's no easy fix for framework-based installation. We're looking at XCFrameworks now.
I'm creating this issue for history and our users, as they might stumble upon it.
The reason is https://github.com/Carthage/Carthage/issues/3019.
Describe the bug
When using Xcode 12 (beta or latest stable), Themis Carthage (0.34, 0.36) installation fails for iOS:
Logs contain following:
The reason
The reason of this issue is the new Xcode 12 behaviour, which Carthage doesn't handle correctly right now. See https://github.com/Carthage/Carthage/issues/3019 for details.
The workaround
Tested for Xcode 12, Sept 25. You can push app to the App Store with this workaround.
~See the detailed workaround https://github.com/Carthage/Carthage/issues/3019#issuecomment-665136323 if you are building for Xcode beta, I'm providing a short description below.~
~UPD: this workaround is also a nice one https://github.com/Carthage/Carthage/issues/3019#issuecomment-699143260.~
UPD2: see this workaround for Xcode 12.0.1 and older https://github.com/Carthage/Carthage/issues/3019#issuecomment-699143260
carthage_tweaked_build.sh
file with the following content:Environment (please complete the following information):