Error reported by Xcode M1 simulator
Operation error:
1.building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
2.The linked framework ‘Pods.framework’ is missing one or more architectures required by this target: arm64
Solution:
1 Build settings change:
2 Podfile add:
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
3.xcode clean;
4. pod install
Pod installation errors:
sudo arch -x86_64 gem install ffi
gem install ffi --version 1.13.1 --user-install
arch -x86_64 pod install
Read More:
- M1 Computer: How to Solve pod update
- Apple M1: How to Solve Spark runs Error
- How to Solve m_gshhs_i Error
- How to Solve “Status bar could not find cached time string image. Rendering in-process.” in Xcode
- How to Solve Error: Error running ‘__rvm_make -j8‘ (Mac M1 BigSur)
- [Solved] Unity Import Xcode Project Error: iOS framework addition failed due to a CocoaPods installation failure.
- How to Solve Macbookm1 pod error
- [Solved] Xcode13.1 Upgrade Error: CocoaPods installed but not working Failed to build gem native extension
- [Solved] Xcode13.0 Package Error: Code signing “AipBase.framework“ failed.
- Xcode12.5 package framework error [How to Solve]
- How to Solve Cocoapods Installation Failure
- ROS2 Navigation Run TurtleBot Simulator Error [Solved]
- [Solved] Xcode error: cycle inside*******; building could produce unreliable results.
- [Solved] cortex_M3 freeRTOS Error: undefined reference to `_sbrk‘
- M1 MacBook cannot use pip to install pandas [How to Solve]
- R language: How to Solve DMwR Install Error
- How to Solve Error: failed to load response
- [app] install and compile libimobililedevice, How to solve the error
- How to Solve Project Upgrade to flutter2.5.0 Error
- How to Solve Ceres library Error when compiling A-LOAM