简体   繁体   English

归档包含静态库的xcode项目

[英]Archiving xcode project that contains static library

I created a project with static library. 我用静态库创建了一个项目。 When I tried to archive, It fails and library Headers are missing. 当我尝试存档时,它失败并且库标题丢失了。 But when I build the app, it works fine. 但是当我构建应用程序时,它工作正常。

And in build folder headers, bundle resources and library are created outside app file. 在构建文件夹标头中,捆绑资源和库是在app文件外部创建的。 Is it possible to create these file in app file and archive or any other process available for archiving? 是否可以在应用程序文件和存档或任何其他可用于存档的过程中创建这些文件?

Thanks in advance. 提前致谢。

If you are able to build the app but not archive then it seems that the build settings that you are using for archive build configuration (probably Release) is not correct. 如果您能够构建应用程序但不能存档,那么您用于存档构建配置(可能是Release)的构建设置似乎不正确。 Quick test will be to change the build configuration for archive to same as build, most probably Debug (you can do that in Product->Scheme->Edit Scheme). 快速测试将存档的构建配置更改为与构建相同,最可能是Debug(您可以在Product-> Scheme-> Edit Scheme中执行此操作)。

To fix this you can open the Build Settings for your target, search for "Header Search Path", click the ">" to open this setting and fix it for the build configuration that is used by archive (ie make it same as the build configuration used by Build) 要解决此问题,您可以打开目标的构建设置,搜索“页眉搜索路径”,单击“>”打开此设置并修复它以用于归档使用的构建配置(即使其与构建相同Build使用的配置)

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

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