Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native 0.60.0 xcodeproj upgrade #14

Open
pvinis opened this issue Mar 27, 2020 · 0 comments
Open

React Native 0.60.0 xcodeproj upgrade #14

pvinis opened this issue Mar 27, 2020 · 0 comments

Comments

@pvinis
Copy link
Member

pvinis commented Mar 27, 2020

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

Screenshot 2019-07-03 at 16 07 01

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

Screenshot 2019-07-03 at 16 07 16

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

Screenshot 2019-07-03 at 16 07 27

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.

Screenshot 2019-07-03 at 16 07 40

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.

@pvinis pvinis pinned this issue Mar 27, 2020
@react-native-community react-native-community locked as resolved and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant