重新下载老师最近更新的代码,运行项目,然后报错。(不过在xcode上run正常),请问是什么问题呢?
来源:1-1 课前必读(不看会错过一个亿)
o汪汪汪o
2020-04-08
macdeMacBook-Pro-2:github_advanced mac$ npm run ios
Github_RN@0.0.1 ios /Users/mac/Desktop/RNStudy/github_advanced
react-native run-ios --simulator ‘iPhone 11’
info Found Xcode workspace "Github_RN.xcworkspace"
info Building (using “xcodebuild -workspace Github_RN.xcworkspace -configuration Debug -scheme Github_RN -destination id=18AD7643-1D0F-4729-B83E-84E533C18084”)
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 Github_RN.xcworkspace. Run CLI with --verbose flag for more details.
xcodebuild: error: The workspace named “Github_RN” does not contain a scheme named “Github_RN”. The “-list” option can be used to find the names of the schemes in the workspace.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Github_RN@0.0.1 ios: react-native run-ios --simulator 'iPhone 11'
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Github_RN@0.0.1 ios script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mac/.npm/_logs/2020-04-08T06_44_03_077Z-debug.log
macdeMacBook-Pro-2:github_advanced mac$ react-native run-ios
info Found Xcode workspace "Github_RN.xcworkspace"
info Building (using “xcodebuild -workspace Github_RN.xcworkspace -configuration Debug -scheme Github_RN -destination id=18AD7643-1D0F-4729-B83E-84E533C18084”)
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 Github_RN.xcworkspace. Run CLI with --verbose flag for more details.
xcodebuild: error: The workspace named “Github_RN” does not contain a scheme named “Github_RN”. The “-list” option can be used to find the names of the schemes in the workspace.
1回答
-
CrazyCodeBoy
2020-04-09
用xcode clean下试试
012020-04-09
相似问题