Three20/Three20.h file not found for Archive

前端 未结 3 1281
执笔经年
执笔经年 2021-01-26 02:12

I\'m trying to update an app that already have the Three20 library. Now i\'m using xcode 4.5 and everytime i try to make an Archive i recive this error:

Three20/Three20.

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-26 03:03

    I did the following to make it work for me:

    1. for the three20 static library, I used cocoapods to include the files within the main project.. it just got rid of all the trouble three20 was giving me (and they are lots..) btw i tried replacing three20 with Nimbus.. but Nimbus was lacking on some of the features that my project was using three20 for.. so Nimbus wasn't helpful.
    2. set skip install to yes under build settings for all other sub projects/static libraries and switched the copy headers from public to project under build phases
    3. most importantly: under the sub libraries.. under build phases i ensured that copy files destination was changed from Absolute path to products directory.

    and that was it!

    hint: to get an idea of the offending files that's causing your archive to create an archive file rather than an ipa do this:

    1. Select the archive and click the Distribute button.
    2. Select the 'Save Built Products' option.
    3. Hit Next and Save.
    4. Browse the created directory in Finder.
    5. The 'libraries' subdirectory will identify the libraries that you need to set the Skip Install to Yes.
    6. in some cases usr/local/include will identify the culprit header files you need to move from Public to Project or the files that you have to change from absolute path to products directory. but that directory (ie usr/local/include) varies depending on your sublibrary directory structure

提交回复
热议问题