Package does not build for ARM architecture
wendellli99 opened this issue · comments
Wendell Li commented
Description
The package does not support ARM architecture. I'm encountering build errors seen here.
Repro Steps
Please list the steps used to reproduce your issue.
- Create an Xcode project.
- Add the library https://github.com/microsoft/appcenter-sdk-apple.git as a SPM dependency.
- Add
AppCenter.start(withAppSecret: appCenterSecret, services: [Analytics.self, Crashes.self])
in AppDelegate. - Build the project on an ARM-based Mac or set 'Build Active Architecture Only' to 'NO' in the project's build settings.
Details
- Which SDK version are you using?
5.0.3 - Which OS version did you experience the issue on?
macOS 13.4.1 - Which Xcode version did you build the app with?
Xcode 14.3.1 (14E300c) - Which Cocoapods version are you using (run
pod --version
)?
I'm using SPM. - What device version did you see this error on? Were you using an emulator or a physical device?
Both Intel and ARM-based Macs. - What language are you using?
- Objective C
- Swift
- What third party libraries are you using? Not using any other packages.
- Please enable verbose logging for your app using
MSAppCenter.setLogLevel(.verbose)
before your call toMSAppCenter.start(...)
for Swift, or[MSAppCenter setLogLevel:MSLogLevelVerbose]
before[MSAppCenter start: ...]
for Objective C and include the logs here: The issue is with xcodebuild not the runtime so N/A here.
Anatoly Pristensky commented
Hello @wendellli99, unfortunately we unable to reproduce your issue on empty project. arm64 architecture works as expected. Also, Apple Silicon support has been added since version 4.0.0: Support Apple Silicon.
Could you please try to follow this migration guide and report results?
Wendell Li commented
Thank you for the info. The error went away after choosing 'Build for any Mac'.