Xcode building for iOS Simulator, but linking in an object file built for iOS, for architecture 'arm64'
Basically, you have to exclude arm64
for the simulator architecture, both from your project and the Pod project.
To do that, navigate to Build Settings of your project and add Any iOS Simulator SDK with value
arm64
inside Excluded Architecture.
OR
If you are using custom
XCConfig
files, you can simply add this line for excluding simulator architecture.EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64
Then
You have to do the same for the Pod project until all the Cocoa pod vendors are done adding following in their Podspec.
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }You can manually add the Excluded Architecture in your Pod project's Build Settings, but it will be overwritten when you
usepod install
.In place of this, you can add this snippet in your
Podfile
. It will write the necessary Build Settings every time you runpod install
.post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
Xcode 10 Command PhaseScriptExecution failed with a nonzero exit code (EXPANDED_CODE_SIGN_IDENTITY: unbound variable)
This helped me
sudo gem install cocoapods --pre
pod update
I've read BugReport. Problem was similar to mine and it was fixed in 1.6.0.beta.1 (2018-08-16) (changelog).
Updated(thanks to Cœur)
1.6.0 (2019-02-07) Was published
sudo gem update cocoapods
This should work now.
Related Topics
Ios/Ipados Safari Push API Support
Customize Navigation Bar with Title View
Get Tapped Word from Uitextview in Swift
Firebase Cocoapods Installation Not Working
Animate Nav Bar Title Text Change
How to Animate an Svg Path in iOS
Annotation Along Route in Mapkit
The Simulator Can't Be Launched Because It Is Already in Use
iOS Webaudio Only Works on Headphones
Keep Getting Error Messages When Compiling Newest Version of Admob on iOS6 Sdk
Saving Attributes on a User Fetched from a Query (I.E. Not on the Currentuser)
How to Detect If the Currently Running App Was Installed from the App Store
Where Is the Run Script and Build Phase in Xcode
Reused Cells in a Uicollectionview Show Multiple Uiimageviews When They Should Only Show One
I am Getting Unsupported Parameter Combination Cgbitmap Error with Swift