[英]xcode build error: project does not contain a scheme
我正在开发离子应用程序,但是当我尝试构建它时却给了我以下错误
xcodebuild: error: The project named "SnapHome" does not contain a scheme named "SnapHome". The "-list" option can be used to find the names of the schemes in the project.
以下是可用的方案
Information about workspace "SnapHome":
Schemes:
SnapHome
我正在使用下面的脚本和企业供应配置文件来构建应用程序,我使用了相同的脚本来构建其他cordova应用程序
cordova build
projectname='xxxxx'
provisionprofilename="xxxxxxx"
outoutdirectory="xxxxxxx"
xcodeprojectdirectory="yyyyyy/snapapp/platforms/ios"
rm -f "$outoutdirectory"/"$projectname".xcarchive
rm -f "$outoutdirectory"/"$projectname".ipa
xcodebuild clean -project "$xcodeprojectdirectory"/"$projectname".xcodeproj -configuration Release -alltargets
xcodebuild -workspace "$xcodeprojectdirectory"/"$projectname".xcworkspace -list
xcodebuild archive -project "$xcodeprojectdirectory"/"$projectname".xcodeproj -scheme "$projectname" -archivePath "$outoutdirectory"/"$projectname".xcarchive
xcodebuild -exportArchive -archivePath "$outoutdirectory"/"$projectname".xcarchive -exportOptionsPlist exportPlist.plist -exportPath "$outoutdirectory"/"$projectname".ipa
您能否让我知道问题出在哪里以及如何解决此问题。 我正在使用xcode 8.3.2
我在构建时遇到了同样的问题,仅检查“产品”>“方案”>“ Edit Scheme
上的“ Shared
选项实际上并没有将该方案添加到“源代码”控件中。
发生的事情是,当您共享方案xcode会将方案从本地用户xcuserdata
到.xcodeproj
下的新文件夹xcshareddata/scschemes
,但是当您提交并推动更改时,默认情况下不包括此新文件夹,并且您需要强制提交。
强制提交新的xcsharedata/xcshemes
文件夹后,构建服务器现在可以成功找到该方案。
希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.