Closed
Description
Description
I am trying to run an ios application following the steps to React Native site but when I try to start my initial project I get a build error for IOS.
It runs normally when I open the project on XCode and run.
It seems to build normally when I use
sudo npx react-native run-ios
rather than
npx react-native run-ios
It also runs normally when I try to start it from expo steps.
Thank you for your help.
React Native version:
System:
OS: macOS 10.15.4
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Memory: 72.11 MB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.16.2 - /usr/local/opt/node@12/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/opt/node@12/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK: Not Found
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5900203
Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild
Languages:
Java: 13.0.2 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: ^4.8.0 => 4.8.0
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
*react-native*: Not Found
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
- npx react-native init MyApp
- cd MyApp
- npx react-native run-ios
Snack, code example, screenshot, or link to a repository:
Running with sudo
info Installing "/var/root/Library/Developer/Xcode/DerivedData/MyApp-fxqzkuiynlihnudvdvsdbtnbweva/Build/Products/Debug-iphonesimulator/MyApp.app"
info Launching "org.reactjs.native.example.MyApp"
success Successfully launched the app on the simulator
But it actually doesn't launch the app, the simulator still opened without the app.
Running without sudo
** BUILD FAILED **
info Building (using "xcodebuild -workspace MyApp.xcworkspace -configuration Debug -scheme MyApp -destination id=DB992D56-8897-4320-8E59-FC3AC4F517D3")
.................................................................
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening MyApp.xcworkspace. Run CLI with --verbose flag for more details.
The following build commands failed:
CompileC /Users/bruno/Library/Developer/Xcode/DerivedData/MyApp-fxqzkuiynlihnudvdvsdbtnbweva/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Glog.build/Objects-normal/x86_64/symbolize.o /Users/bruno/Desktop/MyApp/ios/Pods/Flipper-Glog/src/symbolize.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/bruno/Library/Developer/Xcode/DerivedData/MyApp-fxqzkuiynlihnudvdvsdbtnbweva/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Glog.build/Objects-normal/x86_64/signalhandler.o /Users/bruno/Desktop/MyApp/ios/Pods/Flipper-Glog/src/signalhandler.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)