Closed jerrychong25 closed 5 years ago
The same after update xcode ... Solution for me was to delete 2 "gray" elements problem from Libraries and rebuild project.
@jerrychong25 Hey! I can provide a temporary workaround for your problem. Follow these steps:
File -> Workspace Settings -> Build System -> Legacy Build System
The same after update xcode ... Solution for me was to delete 2 "gray" elements problem from Libraries and rebuild project.
@kamilzamerski Can you elaborate?
@alvin-toffler After update XCode i've got that problem with build project. I've discovered that in XCode project in Libraries directory i have 2 bad linked libs (gray icon against blue and without posibility to extend arrow). I deleted it from the project and once again do a react-native link. And now it's work properly.
File -> Shared Project Settings -> Build System -> Legacy Build System
Yesterday react-native run-ios works with no problem and today I get the error of this issue and haven't change or update anything, any solution?
@Piero87 I had exactly the same problem, I just delete the build
folder inside /ios
then just run again react-native run-ios
and the error disappear.
I just try sudo react-native run-ios
the error disappear.
I was getting this same error with regards to the Info.plist. None of the above worked for me - what did was removing <key>NSAllowsArbitraryLoads</key>
in Info.plist which was git diffed and added in RN 0.59.8 when I did the manual upgrade. Once I removed that line, everything complied and I was good to go.
I found a solution if someone has a problem and you have to create a new folder in document on the command line and it works the reason remains a mystery but after a while I tried everything well that one logically if not at the end of the chips I would never have tested it...
@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.
This should be the answer
@Piero87 I had exactly the same problem, I just delete the build
folder inside /ios
then just run again react-native run-ios
and the error disappear.
I tried this and it worked... Thanks!
@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.This should be the answer
This was the answer for me too!
The original author hasn't commented recently, and the template is already tested as part of our CI system, so this shouldn't be a problem on master
right now. If anyone runs into a similar problem, please submit a new issue.
in my case 'react-native run-ios' works :)
Why you came here then?
The original author hasn't commented recently, and the template is already tested as part of our CI system, so this shouldn't be a problem on
master
right now. If anyone runs into a similar problem, please submit a new issue.
Noted and thanks.
I deleted the build folder inside the ios and run the react-native run-ios, It Worked
This error occurred when I opened my project for the first time in XCode cuz i needed to add a library. Deleting the build folder in the ios folder alone didn't work for me.
What worked for me:
None of mentioned above has worked for me. I just created new project and can not run it...
None of these is working for me either. Why is this even closed?
None of these is working for me either. Why is this even closed?
downgrade to react-native@0.59.5, only thing that worked for me.
Same issue
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 TestProject.xcworkspace. Run CLI with --verbose flag for more details. User defaults from command line: IDEDerivedDataPathOverride
Same issue here.
react-native-cli: 2.0.1 react-native: 0.60.0 xcode: 10.2.1
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
so far... with those configs above, the only thing that worked for me was creating a new projet with react-native version 0.59.5 (and reset cache react-native start --reset-cache
)
react-native init MyApp --version 0.59.5
^ Same issue!
@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.
It work for me. Thank you very much!
Same issue 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 TestProject.xcworkspace. Run CLI with --verbose flag for more details. User defaults from command line: IDEDerivedDataPathOverride
Same issue 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 TestProject.xcworkspace. Run CLI with --verbose flag for more details. User defaults from command line: IDEDerivedDataPathOverride
Please read the solution above again carefully.
Same issue
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 TestProject.xcworkspace. Run CLI with --verbose flag for more details. User defaults from command line: IDEDerivedDataPathOverride
Same to me too.
non of above works for me :(
so far... with those configs above, the only thing that worked for me was creating a new projet with react-native version 0.59.5 (and reset cache
react-native start --reset-cache
)
react-native init MyApp --version 0.59.5
I am on react-native 0.60.4.
The project didn't run at first. So, had to downgrade to react-native 0.59.5 per the suggestion. Now, the project runs when I execute react-native run-ios
.
Not sure that I can help someone, but I got exactly the same error and the problem was with pods or better to say with lack of pods so I went to /ios
and run pods install
and it resolve my issue.
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-codeI have equally problem, if your has good idea, please @Me.
- cd /ios
- run
pod install
- cd ..
- delete build folder
- run
react-native run-ios
if error persists,
- delete build folder again
- open the
/ios
folder in x-code- navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build System
I hope it will work, install pods ongoing
I have equally problem, if your has good idea, please @me.
Have you tried the above instructions?
- cd /ios
- run
pod install
- cd ..
- delete build folder
- run
react-native run-ios
if error persists,
- delete build folder again
- open the
/ios
folder in x-code- navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build System
I hope it will work, install pods ongoing
yes!! it works. Your cocoapods not installed, maybe its the problem. I follow this instruction and run well. thanks!!
I've tried all the above and still, nothing works. Everything was fine until I updated my OS earlier today (30 min update).
Update: I delted the AwesomeProject file and intialized a new one and the build was succesful, however, now I get a message in the simulator saying "could not connect to development server"
Update #2: deleting the build folder worked, back to seeing the "Welcome to React screen on the iPhone simulator"
My problem was that I forgot to add startup parameters. I used "react-native run-ios --help" to see some options, and finally I use "react-native run-ios -- secheme XXXX" to start my project.
@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.
It worked for me
I followed @Rizaldinurm 's instructions. cocoapods was not installed for me. Worked just fine after that.
if you have this error :
-> remove your folder build in forlder ios -> rm -rf node_modules -> yarn install -> react-native run-ios
enjoys !
Tried this and it worked... create native react project using this react-native init MyApp --version 0.59. Build the app with Xcode.app
so far... with those configs above, the only thing that worked for me was creating a new projet with react-native version 0.59.5 (and reset cache
react-native start --reset-cache
)
react-native init MyApp --version 0.59.5
always works :))
If you don't have cocoa pods installed you need to
sudo gem install cocoapods
- cd /ios
- run
pod install
- cd ..
- delete build folder
- run
react-native run-ios
if error persists,
- delete build folder again
- open the
/ios
folder in x-code- navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build System
Yes! This worked a charm, Cocoapods wasn't installed correctly react-native-cli: 2.0.1 react-native: 0.60.5 Xcode: 10.1
If you don't have cocoa pods installed you need to
sudo gem install cocoapods
- cd /ios
- run
pod install
- cd ..
- delete build folder
- run
react-native run-ios
if error persists,
- delete build folder again
- open the
/ios
folder in x-code- navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build System
Thank you SO MUCH @qodehub-nanadjei. It's the only solution works to me!
pod install failed
if error persists,
- delete build folder again
- open the
/ios
folder in x-code- navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build System
If you don't have cocoa pods installed you need to
sudo gem install cocoapods
- cd /ios
- run
pod install
- cd ..
- delete build folder
- run
react-native run-ios
if error persists,
- delete build folder again
- open the
/ios
folder in x-code- navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build System
I have no words to describe how useful it was.
Not gonna lie. RN should post this on its tutorial section to make sure older version user has to spend hours to find what's been wrong with the settings...Not everyone knows how to use xcode properly. Isn't it the whole purpose of using RN?
🐛 Bug Report
To Reproduce
1) Open Getting Started for macOS iOS. 2) Follow all dependencies installation steps 3) Create a new application via command:
react-native init AwesomeProject
4) Run AwesomeProject via command:5) Error occured when running project:
6) 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
Debug Log
Could anyone assist on this issue?
Thanks.