Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. #28811

Closed
brunosantos7 opened this issue May 2, 2020 · 4 comments
Labels
Needs: Triage 🔍 Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@brunosantos7
Copy link

brunosantos7 commented May 2, 2020

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.

  1. npx react-native init MyApp
  2. cd MyApp
  3. 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)
@stale
Copy link

stale bot commented Aug 31, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 31, 2020
@stale
Copy link

stale bot commented Sep 7, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Sep 7, 2020
@jovyllebermudez-old
Copy link

yeah, i ahve the same isue

@richardestes
Copy link

Also having the same issue.

@facebook facebook locked as resolved and limited conversation to collaborators Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Triage 🔍 Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

4 participants