-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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. #33477
Comments
Having same issue what's going on with RN these days? |
I also encountered the same problem. If I use Xcode build directly, it will fail. |
I also encountered this problem, online help ah |
Try Expo. My node version is 14.17.0, and it runs successfully. |
Having the same issue. Previously mentioned solutions didn't resolve it for me. |
Had the same error with a newly initialised 0.67.4 app, managed to get it running on a device using the following method
|
Having same issue here |
I too have no luck with this issue. not sure when FB RN will come up with solutions. |
|
I had this issue when running |
It works for me as well! |
Thanks!!! It works for me |
Closing as most of the users reported the issue as resolved. Feel free to re-open or create a new issue if the problem persists |
Thanks! It works for me too! |
I have the same issue and so far nothing has helped. Here my environment info System: |
I got the same issue with RN 0.66.3. I can run it from Xcode but I cannot run from command line. Tried everything but it still returned error code 65 when running the app from command line. |
This was my problem btw |
In my case, it had to do with npm |
Not Worked For me |
What worked for me:
I got the following error:
So what I did is:
And it fixed it for me |
I ran into this with a Macbook M1. The following worked for me
Worked like a charm |
It also works for me!Thanks! |
I had same issue in same environment. |
I tried everything but still the issue is not resolved. Where can I look for detailed logs so I can fix this error? Android dev is working fine and the problem is only with IOS Xcode |
Even though I don't know or can't tell what could be causing this error on a freshly unmodified React native app, the steps below solved it for me after hours of debugging, I hope it helps someone.👇
cd ios
rm Podfile.lock
pod deintegrate && pod install Navigate back to the root directory. run react-native run-ios Note: This step also allows me to be able to build In Xcode successfully again |
specify the running device or simulator can be helpful |
For me this happened because Xcode had changed to run on my phone instead of the simulator, and that requires a team to be set.
Solution was to open |
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 App.xcodeproj. User defaults from command line: Prepare packages ComputeTargetDependencyGraph GatherProvisioningInputs CreateBuildDescription /Users/sptr/Desktop/App/ios/Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig:1:1: error: unable to open configuration settings file 2023-10-23 15:50:00.450 xcodebuild[11482:211497] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22267/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103 sptr@SPTRs-MacBook-Pro app % xcodebuild clean -project App.xcodeproj Command line invocation: User defaults from command line: 2023-10-23 15:50:59.841 xcodebuild[11565:212794] Writing error result bundle to /var/folders/h6/lk1l93pd3q34wm2wmsxv8mmc0000gn/T/ResultBundle_2023-23-10_15-50-0059.xcresult |
Having the same error as @tarangshah19, in production builds on xcode 15 (debug builds is ok) |
@tarangshah19 i have same error on debug now. did you fix this error ? |
Open Xcode and go to Window > Devices & Simulators. |
I am also facing the issue after updating xcode veriosn to 15.0 |
I took a deeper look at my build log and it appears to because I haven't agreed to the updated developer terms of service. After I logged in to Apple developer portal and agreed the new terms, everything is fine. I hope react native gives a more user-friendly error message with just the error log, instead of outputting the entire build log! |
This is saved me...👍 |
It works for me!! You saved my life!!! |
Description
I created a new react native project and i can't start the simulator with "react native run-ios". The build always fails and I don't know what else I can do. I updated everything my mac os, Xcode, node.js. I also tried to open the app with a different IOS (IOS 14). I also did pod install in the iOS folder
This is the error i get
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 app.xcworkspace.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace app.xcworkspace -configuration Debug -scheme app -destination id=161BB65E-0149-47CF-918D-27BDB9A25299
Version
0.67.4
Output of
npx react-native info
System:
OS: macOS 12.3
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Memory: 47.58 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.13.1 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 8.5.2 - /usr/local/bin/npm
Watchman: 2022.03.14.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/matthiaspetry/.rvm/rubies/ruby-2.7.4/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 13.3/13E113 - /usr/bin/xcodebuild
Languages:
Java: 13.0.2 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.4 => 0.67.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
I just created a new react native project and I had to install the cocoapods with brew and I also had to run bundle install before i was able to run pod install
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: