upgrade-helper icon indicating copy to clipboard operation
upgrade-helper copied to clipboard

Guide for updating project.pbxproj files in ios directory

Open beqramo opened this issue 4 years ago • 2 comments

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?.

beqramo avatar May 18 '21 07:05 beqramo

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.

jmeistrich avatar Sep 28 '21 08:09 jmeistrich

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

uloco avatar Feb 22 '23 11:02 uloco