Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
12
Answers
I think this is caused by some pods in your react-native project that are not the latest version and as a result some of may have IPHONEOS_DEPLOYMENT_TARGET less than 12.0
In my case I did the following steps
Derived Data folder(By clicking the arrow button)
In iOS Folder go to Pods/Pods.xcodeproj/xcuserdata/project.pbxproj
Change all the ‘IPHONEOS_DEPLOYMENT_TARGET = 11.0’ to ‘IPHONEOS_DEPLOYMENT_TARGET = 12.4’. save and run.
Note: every time you pod install it will change so again you have to do it. If there is better approach please do mention.
Following up on Azaz Answer
You can automate it for all the build configurations
in your podfile
add
Update from React Native Community (I didn’t tried to upgrade yet): https://github.com/facebook/react-native/issues/34106#issuecomment-1495970568
I know this is solved but if anyone wants a solution using only expo (I’m a big expo fanboy right now)
Heres how you can modify the podfile like in Vivek’s answer using an expo config plugin.
I also added an if statment to only update
React-codegen
because it was the only one giving me issues after updating xcode to14.3
Then link it in app.json
It started happening after upgrading to the latest
Xcode
few days back.Xcode
project navigator, selectPods
.Targets
, selectReact-Codegen
and set the window toBuild Settings
.Deployment
, setiOS Deployment Target
to12.4
.That’s a big discussion on https://github.com/facebook/react-native/issues/34106 regarding this issue.
Illustrated answer for those who might have a hard time finding the options:
Source: https://github.com/facebook/react-native/issues/34106#issuecomment-1489549051
Following Vivek Verma answer.
Just prevent overriding Pods with a higher targets(new Expo pods have target 13).
ios/Podfile
I’ve spent hours going through solutions with no luck. I finally got it working by doing the following:
In my case, it was on set to 11.0. I changed the target to 12.4 and it resolved the issue.
I hope this helps.
This has been fixed in the latest versions of
react-native
. You should be able to solve the problem by upgrading to any of these versions:Go to:
/node_modules/react-native/scripts/cocoapods/codegen_utils.rb
And change the version. From 11 to 12.
Finally run pod update.