简体   繁体   English

存档我的.xcworkspace文件失败

[英]Archiving my .xcworkspace file fails

My app reside in a .xcworkspace file. 我的应用程序驻留在.xcworkspace文件中。 It builds and run fine, but when I try to Archive it (to get the .IPA file) i get: 它可以构建并运行良好,但是当我尝试对其进行存档(以获取.IPA文件)时,我得到了:

xcodebuild: error: The directory XXXXXX contains 2 projects, including multiple projects with the current extension (.xcodeproj). xcodebuild:错误:目录XXXXXX包含2个项目,包括具有当前扩展名(.xcodeproj)的多个项目。 Specify the project to use with the -project option. 通过-project选项指定要使用的项目。

Any suggestions? 有什么建议么?

This hiccup happens switching between sim and device builds sometimes. 有时会在SIM卡和设备内部版本之间切换,这会引起打h。 Try restarting XCode, clean the project and try to archive and see if it helps. 尝试重新启动XCode,清理项目,然后尝试存档并查看是否有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM