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
Problem running react native simulator ios
The problem in react native cli and my xcode , when I create new project with expo and do inject the problem solved
Xcode 13 failing building with entry point (_main) undefined. for architecture arm64
Removing:
"VALID_ARCHS[sdk=*]" = "arm64 armv7 armv7s";
from project.pbxproj solved the problem
Related Topics
Prevent Duplicate Symbols When Building Static Library with Cocoapods
Detect If a Point Is Inside a Mkpolygon Overlay
Setting Alpha on Uiview Sets the Alpha on Its Subviews Which Should Not Happen
Linker Errors When Trying to Install New Google Analytics 3.0 Beta
How to Link Googleanalytics 3.01 with Xcode 5 (Missing Required Architecture X86_64)
How to Change the Highlighted Color of a Uibutton
Setting an Nsmanagedobject Relationship in Swift
Objective C - Pass by Value and Pass by Reference
How to Import Private Framework Headers in a Swift Framework
Uitextfield Only Top and Bottom Border
iOS 9 Ats Ssl Error with Supporting Server
Problems with Ssl Pinning and Afnetworking 2.5.0 (Nsurlerrordomain Error -1012.)
How to Make a Call Which Begin with * in Iphone
I Want to Create Aes 128 Using Cfb Encryption with No Padding in Objective C