Reputation: 5920
steps to reproduce:
react-native init FirstProject
cd FirstProject
open ios/FirstProject.xcodeproj
... Xcode opens the project:
I select build target iOS Simulator -> Iphone XR
A terminal window opens in the background:
However, Xcode returns a build error:
ld: library not found for -lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)
shown with warnings here https://gist.github.com/jasonfb/7b51a260df419590c6fadda93fb49348
Upvotes: 0
Views: 321
Reputation: 91
You should be opening the workspace, not the project file as indicated per instructions at the end of the project creation script:
• cd "/Users/xxx/FirstProject" && npx react-native run-ios
- or -
• Open FirstProject/ios/FirstProject.xcworkspace in Xcode or run "xed -b ios"
• Hit the Run button```
Upvotes: 2