Running .... fails to build the iOS version of the example app.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/brandon/Code/Elixir/x.react-native-gifted-chat/example/ios/build/Build/Intermediates/RCTWebSocket.build/Debug-iphonesimulator/RCTWebSocket.build/Objects-normal/x86_64/RCTSRWebSocket.o RCTSRWebSocket.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
/Users/brandon/Code/Elixir/x.react-native-gifted-chat/example/node_modules/promise/lib/done.js:10
throw err;
^
Error: xcodebuild process exited with code 65
at ChildProcess.<anonymous> (/Users/brandon/Code/Elixir/x.react-native-gifted-chat/example/node_modules/react-native/local-cli/runIOS/runIOS.js:102:14)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
git clone https://github.com/FaridSafi/react-native-gifted-chat
cd react-native-gifted-chat/example
npm install
react-native run-ios
I expected to see the iOS simulator open with an example app.
xcode-select -print-path: /Applications/Xcode.app/Contents/Developeri don't know why it build fails.
but after i change the version to
"react": "15.3.2",
"react-native": "0.37.0",
the Example build succeeded
When receiving this error, the following works for me:
Open the project via XCode
Start it and you should get a RCTWebsocket error
Doubleclick the RCTWebSocket and remove the value (-werror - wall) within other warning flags
( See solution by TimBroddin @ https://github.com/facebook/react-native/issues/8584)
I think this error occurs because of the way react natives use of "use strict".
Most helpful comment
i don't know why it build fails.
but after i change the version to
"react": "15.3.2",
"react-native": "0.37.0",
the Example build succeeded