简体   繁体   English

Xcode 10存档不包含任何产品

[英]Xcode 10 archive contains no products

I have a macOS application project that uses a private framework built by a dependent target in a sub-project. 我有一个macOS应用程序项目,它使用由子项目中的依赖目标构建的私有框架。 When I try to archive it with Xcode 10.2.1, there is no error message, but the archive shows up under "Other Items" rather than "macOS Apps" in the Organizer. 当我尝试使用Xcode 10.2.1对其进行存档时,没有错误消息,但存档显示在“其他项目”下,而不是“管理器”中的“macOS应用程序”。 If I open up the archive package, the "Products" folder is empty, though the "dSYMs" folder has two items, one for the app and one for the framework. 如果我打开存档包,“Products”文件夹为空,但“dSYMs”文件夹有两个项目,一个用于app,另一个用于框架。

Discussions of archiving problems usually mention setting SKIP_INSTALL to YES, and I did, in both the main project and the subproject. 关于归档问题的讨论通常会提到将SKIP_INSTALL设置为YES,我在主项目和子项目中都设置了YES。

I tried doing it on the command line with xcodebuild archive -verbose , but there was still no error message and it said ARCHIVE SUCCEEDED. 我尝试在命令行上使用xcodebuild archive -verbose ,但仍然没有错误消息,它说ARCHIVE SUCCEEDED。

Is there any way to get Xcode to tell me what's bothering it? 有没有办法让Xcode告诉我有什么困扰它?

It turns out that the trick was to set SKIP_INSTALL=YES on the framework, but SKIP_INSTALL=NO in the application project. 事实证明,诀窍SKIP_INSTALL=YES在框架上设置SKIP_INSTALL=YES ,但在应用程序项目中设置SKIP_INSTALL=NO The other 3 combinations of these flags produce an archive that's bad in various ways. 这些标志的其他3种组合产生了各种各样的存档。

I still wish Xcode was able to give me a hint rather than making me experiment. 我仍然希望Xcode能够给我一个提示,而不是让我进行实验。

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

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