打包命令:在项目根目录执行
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