-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 70. #36857
Comments
|
Did you find a fix for this? |
same here on 0.72.5. it works building from xcode on debug mode. but not from VSC |
Yup, Xcode build works fine -- CLI is where I run into this problem. |
it works not by adding a mandatory simulator, and mode for debugging |
This works for me |
i got this error after updating xcode and trying to run the project without installing simulators. so after updating xcode you have to open it and install the updated simulators too. |
@Adnan-Bacic thanks for the tip. I was getting |
How about us?! who doesn't want to install new simulators and run into the old ones that ran before upgrading xcode? |
i dont understand why you wouldt want to install the updated simulators? if you just open xcode it should prompt you automatically to do it. the simulators are a part of xcode so i think it should be normal to install/update them too. |
this is the actual solution . also I open xcode -> window -> simulator + devices -> |
Also ensure developer mode is activated on your device, Setting -> Privacy and Security -> Developer Mode |
I got this error with fresh project with My Enviroment Info:
What My Steps:
Then got Error: To fix this error, I run:
It's works! 🍻 |
Description
My project not support macOs app but when i run npm build ios, it build on my MacOs. Then it failed:
`info Found Xcode workspace "app.xcworkspace"
info Found booted MacBook Pro, android
info Building (using "xcodebuild -workspace app.xcworkspace -configuration Debug -scheme app -destination id=1054CB39-B940-55B7-8FE0-94C055A44522")
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 70. 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=1054CB39-B940-55B7-8FE0-94C055A44522
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
2023-04-10 10:58:30.194 xcodebuild[89841:4961705] Writing error result bundle to /var/folders/j3/7pvdybj52gxfhhtlfndx5v5c0000gn/T/ResultBundle_2023-10-04_10-58-0030.xcresult
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ id:1054CB39-B940-55B7-8FE0-94C055A44522 }
When i run it on another Mac, it doesn't happen
React Native Version
0.71.4
Output of
npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 13.2.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 613.76 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 19.8.1 - /usr/local/bin/node
Yarn: 1.22.19 - ~/Desktop/Spa-React/node_modules/.bin/yarn
npm: 9.5.1 - /usr/local/bin/npm
Watchman: 2023.03.27.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.12.0 - /Users/tcom-mobile/.rvm/gems/ruby-3.0.0/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK:
API Levels: 33, 33
Build Tools: 30.0.3, 33.0.0, 33.0.2
System Images: android-31 | Google APIs Intel x86_64 Atom, android-33 | Google TV ARM 64 v8a, android-33 | Google APIs Intel x86_64 Atom, android-33 | Google Play Intel x86_64 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9619390
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.18 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.4 => 0.71.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
npm run ios
Snack, code example, screenshot, or link to a repository
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 70.
The text was updated successfully, but these errors were encountered: