Unable to run AwesomeProject sample app successfully with error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65.
See original GitHub issue🐛 Bug Report
To Reproduce
- Open Getting Started for macOS iOS.
- Follow all dependencies installation steps
- Create a new application via command:
react-native init AwesomeProject
- Run AwesomeProject via command:
cd AwesomeProject
react-native run-ios
- Error occured when running project:
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 a
pp with Xcode.app, by opening AwesomeProject.xcodeproj
- Run sample app failed.
Expected Behavior
Run sample app successfully.
Code Example
Run new project named AwesomeProject as mentioned in Getting Started for macOS iOS.
Environment
React Native Environment Info:
System:
OS: macOS 10.14.4
CPU: (8) x64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
Memory: 190.08 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.14.0 - /usr/local/bin/node
npm: 6.7.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 27, 28
Build Tools: 27.0.3, 28.0.3
System Images: android-23 | Google APIs Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, andr
oid-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5314842
Xcode: 10.2/10E125 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.4 => 0.59.4
npmGlobalPackages:
react-native-cli: 2.0.1
Debug Log
macusers-MacBook:AwesomeProject HighSierra$ react-native run-ios
info Found Xcode project AwesomeProject.xcodeproj
info Launching iPhone X (iOS 12.2)...
info Building using "xcodebuild -project AwesomeProject.xcodeproj -configuration Debug -scheme AwesomeProject -destination id=274D552C-C67B-4EFA-A90C-
AF559D0954F0 -derivedDataPath build/AwesomeProject"
info User defaults from command line:
info IDEDerivedDataPathOverride = /Users/HighSierra/Documents/GitHub/AwesomeProject/ios/build/AwesomeProject
info Build Preparation
info Couldn't create workspace arena folder '/Users/HighSierra/Documents/GitHub/AwesomeProject/ios/build/AwesomeProject': Unable to write to info file
'<DVTFilePath:0x7f9358f7b8d0:'/Users/HighSierra/Documents/GitHub/AwesomeProject/ios/build/AwesomeProject/info.plist'>'.
info
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 a
pp with Xcode.app, by opening AwesomeProject.xcodeproj
2019-04-15 11:50:32.423 xcodebuild[30913:229065] Error saving log: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied" UserInfo={NSFilePath=/U
sers/HighSierra/Documents/GitHub/AwesomeProject/ios/build/AwesomeProject/Logs/Build/09631BCB-251C-4C0A-8A81-7451C031D0B5.xcactivitylog, NSLocalizedDes
cription=Permission denied} | User info: {
NSFilePath = "/Users/HighSierra/Documents/GitHub/AwesomeProject/ios/build/AwesomeProject/Logs/Build/09631BCB-251C-4C0A-8A81-7451C031D0B5.xcactivit
ylog";
NSLocalizedDescription = "Permission denied";
}
** BUILD FAILED **
. Run CLI with --verbose flag for more details.
Could anyone assist on this issue?
Thanks.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:33
- Comments:74 (3 by maintainers)
Top Results From Across the Web
error Failed to build iOS project. We ran "xcodebuild ...
A popular reason to builds failing and error code 65 is a missmatch between cached pod files and current packages used.
Read more >error Failed to build iOS project. We ran "xcodebuild ... - GitHub
We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, ...
Read more >error failed to build ios project. we ran "xcodebuild" command ...
We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by...
Read more >error failed to build ios project. we ran "xcodebuild ... - YouTube
error failed to build ios project. we ran " xcodebuild " command but it exited with error code 65.
Read more >React native build failure | Apple Developer Forums
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Piero87 I had exactly the same problem, I just delete the
build
folder inside/ios
then just run againreact-native run-ios
and the error disappear.If you don’t have cocoa pods installed you need to
sudo gem install cocoapods
pod install
react-native run-ios
if error persists,
/ios
folder in x-code