Xcode 5: Code signing entitlement errors

前端 未结 21 2540
情书的邮戳
情书的邮戳 2020-11-27 12:45

I\'ve build a new application which is going to support IOS 7. I got the new XCode 5 GM and tried to sign my apps using my fresh provisioning profile and distribution certif

21条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 12:51

    If you're building an old 3.1.5 project, Xcode 5 has some bugs which unfortunately makes Benjamin's answer impossible, as there are no Provisioning profiles to pick from. After many a late hour of tormented reading of Xcode project files I came up with this solution that worked for me:

    • In the Utilities pane (to the right) in Xcode 5, under project Document, change from Xcode 3.1-compatible to Xcode 3.2 compatible.
    • Enter your organization name.
    • Close project.
    • Open your project file, e.g. open -a TextEdit path/to/name.xcodeproj/project.pbxproj
      • Remove the two Distribution clauses (isa=XCBuildConfiguration).
      • Remove the two accompanying lines in buildConfiguration (one in PBXNativeTarget and one in PBXProject XCConfigurationLists)

    Now you're ready to re-open, archive and submit to App store - voilà! It works again!

    How I think it works

    I assume this works because Apple somewhere along the line decided to drop the need for any separate distribution config, which is a good thing. When I archive, Xcode automatically code signs for distribution. That's the way it should have been implemented in the first place, it's just a shame that Apple can't make auto-migration part of the IDE; instead they force us developers to spend man-decades to make this stuff work.

提交回复
热议问题