Closed shyamalschandra closed 8 years ago
I'm also having trouble building and running in the simulator since upgrading to XCode 8
react-native run-ios
Found Xcode project AwesomeProject2.xcodeproj
xcodebuild: error: SDK "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk" cannot be located.
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
Command failed: xcrun simctl list devices
xcodebuild: error: SDK "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk" cannot be located.
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
Running from XCode itself works. Where can I change the settings that react-native is using so it runs the 10.0 simulator instead?
@shyamalschandra That has been fixed here: https://github.com/facebook/react-native/commit/2f788524112d59f62a295e7f4b0c1cfa0f6203fe
Thanks @sxua, after running
react-native init AwesomeProject
I modified the package.json file changing the versions to this:
...
"dependencies": {
"react": "15.3.1-rc.2",
"react-native": "0.34.0-rc.0"
}
...
Then ran:
npm install
Then:
react-native run-ios
Everything worked!
Okay, it works now. Thanks again!
I get the following when trying to install the rc
versions:
├── UNMET PEER DEPENDENCY react@15.3.1-rc.2
└── UNMET PEER DEPENDENCY react-native@0.34.0-rc.0
npm WARN react-native-image-crop-picker@0.5.5 requires a peer of react-native@>=0.30.0 but none was installed.
npm WARN react-native-scrollable-tab-view@0.5.3 requires a peer of react-native@>=0.20.0 but none was installed.
npm WARN react-native-swipeout@2.0.12 requires a peer of react-native@^0.x but none was installed.
npm WARN react-relay@0.9.1 requires a peer of react@^15.0.0 || ^0.14.0 but none was installed.
npm WARN react-static-container@1.0.1 requires a peer of react@^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.
npm ERR! code 1
Issue Description
I cannot run the iOS app that I created using react-native because of an build failed error.
This is the output of the react-native run-ios command being run on my MacOS system:
Steps to Reproduce / Code Snippets
Just try to run the app created with react-native
Expected Results
It should run on the iOS simulator.
Additional Information