Skip to content

Instantly share code, notes, and snippets.

@dozoisch
Last active October 12, 2016 02:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dozoisch/d021391ba7dcb27bc3934bc4d3726512 to your computer and use it in GitHub Desktop.
Save dozoisch/d021391ba7dcb27bc3934bc4d3726512 to your computer and use it in GitHub Desktop.

The manual process is a bit more tedious than when using pods, for each pod you added you have to go in XCode and add them to the build. In order to do that:

  1. Create a new group called Libraries inside XCode.
  2. Open finder in ./node_modules/react-native/Librairies.
  3. Open the corresponding folder (Core is react-native/React and not in Libraries) and drag and drop the xcodeproj into the Libraries group in XCode.
  4. Go to the build phases section of the Messages target → Link Binary With Libraries. Drag and drop the product of each xcodeproj you added (eg: libReact.a) into the Link Binary section.
  5. In Build Settings → Linking → Other Linker Flags added -lc++. This is needed in order to compile some of RN sources
  6. If you needed RCTWebSocket (which is normally used in dev) go to Libraries → RCTWebsocket.xcodeproj → Build Settings → Apple LLVM 8.0 → Custom Compiler Flags → Other warning Flags → remove -Werr.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment