From 9bdcf028367e81fd0a935fbdab08d1eb5e231b2f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 14 Nov 2015 19:42:25 +0000 Subject: [PATCH] update website --- docs/troubleshooting.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/troubleshooting.html b/docs/troubleshooting.html index 4311a4a92de..8517c5c60ab 100644 --- a/docs/troubleshooting.html +++ b/docs/troubleshooting.html @@ -12,8 +12,8 @@ sudo chown -R $USER 'RCTImage', 'RCTNetwork', 'RCTWebSocket', -]

Next, make sure you have run pod install and that a Pods/ directory has been created in your project with React installed. CocoaPods will instruct you to use the generated .xcworkspace file henceforth to be able to use these installed dependencies.

If you are adding React manually, make sure you have included all the relevant dependencies, like RCTText.xcodeproj, RCTImage.xcodeproj depending on the ones you are using. Next, the binaries built by these dependencies have to be linked to your app binary. Use the Linked Frameworks and Binaries section in the Xcode project settings. More detailed steps are here: Linking Libraries.

Argument list too long: recursive header expansion failed #

In the project's build settings, User Search Header Paths and Header Search Paths are two configs that specify where Xcode should look for #import header files specified in the code. For Pods, CocoaPods uses a default array of specific folders to look in. Verify that this particular config is not overwritten, and that none of the folders configured are too large. If one of the folders is a large folder, Xcode will attempt to recursively search the entire directory and throw above error at some point.

To revert the User Search Header Paths and Header Search Paths build settings to their defaults set by CocoaPods - select the entry in the Build Settings panel, and hit delete. It will remove the custom override and return to the CocoaPod defaults.

Unable to connect to development server #

iOS #

Ensure that you are on the same WiFi network as your computer. If you're using a cell data plan, your phone can't access your computer's local IP address.

Android #

You need to run adb reverse tcp:8081 tcp:8081 to forward requests from the device to your computer. This works only on Android 5.0 and newer.

Module that uses WebSocket throws exception #

React Native implements a polyfill for WebSockets. These polyfills are initialized as part of the react-native module that you include in your application through require('react-native'). If you load another module that requires WebSockets, be sure to load/require it after react-native.

So:

var React = require('react-native'); -var Firebase = require('firebase');

In the case of Firebase requiring firebase before react-native will result in a: 'No transports available' redbox.