react-native-community / upgrade-helper

⚛️ A web tool to support React Native developers in upgrading their apps.
https://react-native-community.github.io/upgrade-helper
MIT License
3.67k stars 112 forks source link

Guide for updating project.pbxproj files in ios directory #270

Open beqramo opened 3 years ago

beqramo commented 3 years ago

Question

Hi, there are always many changes in that file and sometimes it is too complicated to update. can anyone write here some guide that will help others too?.

jmeistrich commented 3 years ago

It seems like it's impossible for "react-native upgrade" to ever work successfully because of the pbxproj changes, which requires using the upgrade-helper tool, and then the changes in the upgrade helper are incomprehensible, especially for junior developers unfamiliar with the file format.

The changes always seem to include tons of project ID changes for the RN test projects, or sometimes just re-ordering within the file. Can the pbxproj file be cleaned up before publishing updates? Then the upgrade tool could have a chance of completing successfully and the upgrade-helper tool would be much easier to use.

uloco commented 1 year ago

Using Xcodegen to generate the xcode project from a yaml file would solve this once and for all. I already proposed this some time ago in the react-native-community repo but don't know if there is maybe another place to increase awareness of this possible solution:

See: https://github.com/react-native-community/discussions-and-proposals/issues/475