【发布时间】:2023-03-07 02:23:01
【问题描述】:
我正在开发一个离子应用程序,但是当我尝试构建它时,它给了我以下错误
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
【问题讨论】:
标签: ios xcode cordova ionic-framework xcodebuild