Xcode 7 will NOT build a valid Archive from the same project that builds a valid archive in Xcode 6

前端 未结 7 1085
灰色年华
灰色年华 2020-12-30 06:19

When using Xcode 7b5 to build my app that contains a Today Extension I cannot create a valid archive. When I make an archive the build succeeds and then in Organizer it show

相关标签:
7条回答
  • 2020-12-30 06:55

    This can be caused by using CocoaPods 0.38.[0-2] and Xcode 7.

    It works with an older version of CocoaPods:

    $ gem install cocoapods -v "=0.37.2"
    $ gem uninstall cocoapods # then select 0.38.[0-2]
    $ pod update
    

    (Additionally, I also had to clean my build folder and wipe the Pods folder before the pod update and make changes to the AFNetworing post install hook in my Podfile)

    Further causes are discussed in Cannot generate iOS App archive in xcode.

    0 讨论(0)
  • 2020-12-30 07:06

    I had the same issue when updated Xcode to Version 7.0 (7A220). And they said this issue is already tracked(Issue#4274)

    finally,i fixed this issue with following steps: 1)clear all "Private Headers Folder Path" and "Public Headers Folder Path" in all the Pods Targets->Build Setting->Packaging 2)delete the "Copy Pods Resources" in our Targets->Build Phases.

    0 讨论(0)
  • 2020-12-30 07:07

    If using Xcode 7 with cocoapods v.0.38.2. Try removing copy pod resources from your today extension target.

    0 讨论(0)
  • 2020-12-30 07:08

    I just confirmed today that this was a CocoaPods issue for me, specifically 4021. I tried as the other users on the issue and removed "copy pod resources" from my today extension target. Once that was removed I was able to package up an archive successfully in Xcode 7 Beta 5.

    Hopefully this still works in the next beta and the GM...

    UPDATE 9/22: This is the answer if you are using 0.38.2 of CocoaPods their latest Release version as of 9/22/2015. I was able to submit my app to the app store using Xcode 7 GM using this method.

    0 讨论(0)
  • 2020-12-30 07:08

    Works fine if you delete Copy Pod Resources from your extension. Though I have no idea what this could cause, my app worked, archived and went to review.

    0 讨论(0)
  • 2020-12-30 07:12

    It's an issue with CocoaPods v0.39.0.beta.4.

    As described in CocoaPods GitHub the beta 3 of CocoaPods allows you to build archives as expected. Beta 4 has a bug preventing this from working.

    Uninstall your previous CocoaPods version first

    sudo gem uninstall cocoapods

    and then do:

    sudo gem install cocoapods -v 0.39.0.beta.3 --verbose

    then

    pod update

    and you'll be able to build archives again as expected.

    0 讨论(0)
提交回复
热议问题