I’m trying to build an IOS project on Xcode 12.5.
There is no problem when the real device is connected or when I try to build with the simulator. But I get this error when Any IOS Device is selected. Any IOS Device is selected to archive my project and I get an error message while archiving.
I have changed the’Build Active Arch. Only’ and ‘Excluded Architecture’ settings many times, but the problem has not been resolved.
please help me with this problem..
4
Answers
Problem solved when I changed it to IOS Deployment Target 12.0
Looking at this screenshot –
The issue is
Undefined symbols for architecture armv7
.Can you go to
Build Settings
of yoursearch for
armv7
and delete it if it exists?After this, do a
Product > Clean Build Folder
& now try running/building the app.I had the same error in my project. I use Xcode 13.3.1.
So I updated my Podfile with next way(was added excluded arch and deployment target):
In my case i use this solution and it’s worked for me.
Add this given below code into your podfile at the bottom and run "pod install" command. And Good to go.
At this point ‘12.0’ You can change accordingly. Based upon your project. For exmp: ‘11.0’ or ‘10.0’ like this. It should be match with the platform: ios, ‘12.0’ this line in your podfile at the Second position.
In my case
Exmp: platform: ios, ‘12.0’ so config.build_settings[‘IPHONEOS_DEPLOYMENT_TARGET’] = ‘12.0’. So 12.0 matched in both.