Search code examples
iosxcodereact-nativeupgradepbxproj

How to change manually project.pbxproj file in Xcode during React-native upgrade?


I need to upgrade my React-native app from 0.61.0 to 0.62.0. The best safety way to do it manually with React Native Upgrade Helper https://react-native-community.github.io/upgrade-helper. But during this way a lot of changes need to do in ios/MyProject.xcodeproj/project.pbxproj file in Xcode. But I'm not so familiar with it. Can somebody recommend me please how to make changes in project.pbxproj in Xcode for upgrade of RN version?


Solution

  • On ios/MyProject.xcodeproj/project.pbxproj you can manually change the version by editing all the MARKETING_VERSION variables values, make sure to change the version on package.json as well.

    Once you did, just clean the current cache on XCode (command + K) and generate a new .ipa as you're used to do. It should work.