打包命令:在項目根目錄執行
xcodebuild archive -workspace ${project_path}/${project_name}.xcworkspace -scheme ${scheme_name} -configuration ${development_mode} -archivePath ${build_path}/${project_name}.xcarchive
提示錯誤信息如下:
xcodebuild: error: The project named “xxx” does not contain a scheme named “xxxx”. The “-list” option can be used to find the names of the schemes in the project.
解決方法:
Product --> Scheme -->Manage Schemes
勾選指定的scheme