Skip to content

Instantly share code, notes, and snippets.

@pvinis
Last active July 3, 2019 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvinis/31d78268d17ccb2673e880bf1ecc1c77 to your computer and use it in GitHub Desktop.
Save pvinis/31d78268d17ccb2673e880bf1ecc1c77 to your computer and use it in GitHub Desktop.
React Native 0.60.0 xcodeproj upgrade

For an easy upgrade experience of this file, do the following.

After all the other files have been upgraded, run yarn install and cd ios; pod install; cd ...

This will cause all the Pods to be connected. After that, open the workspace file in the ios directory, called something like MyApp.xcworkspace

This workspace contains your original project, as well as the Pods project. Expand your project and find the Libraries directory.

expanded

Inside that, there are a few libraries related to React Native, and possibly other native modules from other libraries you might have connected.

remove

You can go ahead and remove the React Native related libraries from there, by selecting them and hitting the delete button. In the popup you get, you can select Remove references. If you select to Move it to Trash, you might need to run yarn install again. empty These libraries are not needed there anymore, since now they are connected using CocoaPods. You can do the same for other libraries that might exist in that directory, if they support CocoaPods. If they don't, keep them there for now. After all this, your diff of that file should look roughly the same as the one right here. Don't worry too much if it doesn't match exactly, as your project might have more or fewer targets. Try to see if the rough outline is the same, and of course make sure your project can build and run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment