重新下载老师最近更新的代码,运行项目,然后报错。(不过在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下试试

0
1
o汪汪汪o
clean过了,还是报错,但是老师更新之前的项目代码用命令运行是可以运行成功的
2020-04-09
共1条回复

RN入门到进阶,打造高质量上线App

解锁React Native开发应用新姿势,React Native新版本热门技术

3144 学习 · 3241 问题

查看课程