React native project not on present IOS simulator or on Xcode

你说的曾经没有我的故事 提交于 2019-12-13 04:26:34

问题


this is the second part of a bigger problem where the first part was solved here React native project deleted on xcode, can't run "run-ios react-native".

I have deleted my project on Xcode may it be .xcworkspace or .xcodeproje.

Because of that, I had to delete IOS and android folders while downgrading, updating and re-upgrading my react version to re-install IOS and android folders.

Thanks to that the emulator is working but unfortunately the project isn't present in the emulator and is still absent with Xcode. One thing to point out is that the simulator only appears when ran in the integrated terminal and nor in general terminal after cd-ing in the project folder.

Can anyone please help re-integrating the project in the emulator and on Xcode please.

Here is the error when the emulator is running in a general terminal:

error Command failed: xcrun instruments -s
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH

Here is the error for building the project within emulator when ran from VS code integrated terminal:

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 project.xcodeproj


回答1:


In Xcode, select Xcode menu, then Preferences, then Locations tab. Click on the advanced button, select legacy and exit Xcode.



来源:https://stackoverflow.com/questions/56202543/react-native-project-not-on-present-ios-simulator-or-on-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!