-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error building with PhraseSDK for the iOS simulator on an M1 Mac #26
Comments
Hello @cabeca, thanks for your report! How are you integrating the SDK? Carthage, CocoaPods or manually? The error you provide points to an issue with Module Stability, which is enabled. But for M1 arm64 you will likely need a new build if you are targeting the arm64 Simulator. We are planning to release an Universal xcframework Version within the next 2-3 weeks. |
Sorry for the lack of information.
We are integrating the PhraseSDK manually.
Yes. I forgot to mention that I was building for the iOS simulator on the M1 Mac. Looking forward for the new XCFramework release! |
@cabeca No problem. If you are integrating manually an xcframework would be really easier for you, sorry for the inconvenience caused by the delay. Sure, I'll keep you updated. |
Hi guys! |
@gutaker Unfortunately not officially as there are still several issues with the different Package Managers. We need to investigate all possible Build and Package Manager variants. As of today, Carthage does not support xcframeworks (Carthage/Carthage#2799) and CocoaPods has issues with current v1.10.0 on M1 (fixed for 1.10.1 CocoaPods/CocoaPods#10234). Beside this many tools around the build chain currently are unstable on M1 arm64 Architecture, see e.g. CocoaPods/CocoaPods#9907. But the Framework as it is supports A) Module Stability and B) is able to run on Device (arm64) and x86_64 Simulators. Have you tried setting Furthermore, if you add the framework manually please remember to still slice it accordingly, as it is a Sorry again for the inconvenience, we're working hard to provide a solution as soon as possible. |
Thanks! |
@gutaker Glad to hear that, happy to help! Happy Holidays! |
I am having the same issue. Is there any expected release time? how did you manage to work around it? I am using Cocoapods for dependency management on an M1 |
@angelolloqui Release is expected within the next 24-48 hrs. We are now defaulting to xcframeworks, where Xcode automatically handles the different Platforms. It will also include arm64 architecture where needed. In the meantime you could always set arm64 to the excluded Simulator architectures within your Project's Build Configuration. |
@ALL New version is live. Looking forward to your feedback. |
Hello,
I'm trying to build our project on a brand new M1 MacBook Pro, but I get this error:
Failed to build module 'PhraseSDK' from its module interface; the compiler that produced it, 'Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)'
I'm using Xcode Version 12.2 (12B45b) on macOS BigSur 11.1
This is a major blocker for us. Do you have any workarounds for this? Any updates on distributing PhraseSDK as a XCFramework?
Miguel Cabeça
The text was updated successfully, but these errors were encountered: