简体   繁体   中英

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. 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. 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).

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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