I updated Cocoa pod.
I removed all about pod and installed again.
but i could not resolve
You can try to add arm64 to the Build Settings -> Architectures -> Excluded Architectures for Any iOS Simulator SDK. It helps many of devs, but for me it didn't work.
You can Clean Build Folder (⇧ + ⌘ + K), clean DerivedData directory, CocoaPods caches, and restart macOS, Xcode and Simulator. This solution works for me.
Be sure to open .xcworkspace
file, set arm64 to 'PROJECT' in Project and Pods not 'TARGETS'.
Running Xcode in rosetta helped me.
This happens every time I switch processor architecture by testing apps on muliple devices. Going from arm64 to arm7, newer to older iPhone model and back. In this case the solution is to clean the build folder.
In the beginning you have to be you must check "open using rosetta" for rosetta 1- open finder 2- go to Application 3- find xcode 4- right clic 5- info 6- check "open using rosetta" then clear DerivedData 1- open terminal 2- rm -rf ~/Library/Developer/Xcode/DerivedData 3- hit return in your keyboard close xcode the open it or restart your mac i think you now better than and the project run good
I believe I had my project set up for armv7 development and I opened up Xcode using Rosetta on accident. I dechecked the box, and restarted Xcode.
This solved my problem without adding any entries into the excluded build arches.
Monterey / Apple Silicon