-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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 65 #37559
Comments
|
Any solution ? |
I thought nobody was going to answer... Not yet man. My workaround was starting using my iPhone for building and testing the iOS app. Do you have any idea of how to solve this? |
I solved it myself by debugging the build into the Xcode and i had some pod giving error so removed it and then it worked |
@fvalles Were you able to fix the error? |
Jus try to run and see if it works
|
nope :(. I am debugging with my physical iOS device for the moment and didn't give this a try again to try to fix it. I believe the problem it's something heavily cached in my machine |
Meanwhile, I solved it for my case, but the solution is very specific, so I believe it won't help others. In my case, I had the subdependency 'react-native-jw-media-player' in a package. After I explicitely add jw-media-player to my package.json in a newer version, the build runs successful. |
mm I haven't that dependency and it's working perfectly on my iOS physical device but not in the simulator 😞 |
I too have same problem. React Native 0.72.3 and xcode 14.2. No solutions provided here helped. |
my problem is solved. I am remove space from project path fold name. |
For me adding the scheme and the configuration into the build arguments fixed the issue. i.e in "ios": "react-native run-ios --scheme 'App Dev' --configuration Debug" and then running: yarn ios |
I have always had the scheme and configuration set, so that's not a solution |
@fvalles Please check pod install properly or not. |
Tried pod install as described in the description of this issue and it didn't work |
u saved my day, thanx |
This worked for me too! Thanks!! |
I cannot Thank you enough, I was facing this issue for few days. |
The folder that contains your project has spaces. For example, my folder was named MotuSmash 4. After I changed it to MotuSmash-4, the error was resolved. |
i'ts works for me, thanks! |
In my case the same error was caused by cd ios
npx po-install and my problem was solved. |
any other solution please? i tryed all above and still get this error :( if i do "pod install" it update COCOAPODS: from to 1.14.2 to 1.15.2 , how to force downgrade ? |
Works for me too, thanks! |
i'ts works for me, thanks! |
This error code 65 is a generic code that indicates an xcode-build crash without any way of tracing back why. See the discussion here - #35657 (comment) |
For my instance of the 65 generic code, the solution was posted here: https://stackoverflow.com/questions/76590131/error-while-build-ios-app-in-xcode-sandbox-rsync-samba-13105-deny1-file-w |
How can I know what is my project path, sir? Can you help me? |
@kaylee182000 Project path means the path to the project root folder. |
Description
My iOS builds started to break overnight with the following message (no more detail than this...):
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
I opened Xcode, build the app there and I found out messages like the following:
The same happened with modules such as:
What is weird about this error is that it started happening without having installed anything new and that my
dev
,qa
andrelease
builds works just fine and the issue only happens when building the app locally, which I run withreact-native run-ios --scheme 'cuchefs_local' --configuration Debug --simulator='iPhone 14 Pro'
I honestly tried tons of different solutions and that's why I am opening this issue now. Among the different things I tried to do to fix this error I can mention:
Pods
folder,Podfile.lock
and then runpod install
npx react-native-clean-project
and try building againrm -rf ~/Library/Caches/CocoaPods && rm -rf Pods && rm -rf ~/Library/Developer/Xcode/DerivedData/* && cd ios && pod deintegrate && pod setup
and try building againPodfile
andXcode config
and make sure that the iphone deployment target is the same in both placesApple M1 chip
What I also found out was that the folder
/Build/Products/Debug-iphonesimulator/
underXcode/DerivedData
had only a file named as my app and nothing else was there (that's because the error says that the module map files are not found)Another curious thing is that the build is breaking when it is compilling a
Dummy.swift
file I have inside /ios folder. The only line of code that file has isimport Foundation
React Native Version
0.70.6
Output of
npx react-native info
System:
OS: macOS 13.3.1
CPU: (8) arm64 Apple M1
Memory: 93.38 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.15.1/bin/yarn
npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm
Watchman: 2023.05.08.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/fvalles/.rvm/gems/ruby-2.7.5/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8815526
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.17 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
just run:
react-native run-ios --scheme 'cuchefs_local' --configuration Debug --simulator='iPhone 14 Pro'
Snack, code example, screenshot, or link to a repository
My
Podfile
isand
Podfile.lock
file:The text was updated successfully, but these errors were encountered: