Xcode iOS organizer submit to app store yields “The archive is invalid” error

前端 未结 21 1210
萌比男神i
萌比男神i 2021-01-01 18:35

I just switched from Xcode 3 to 4. When I attempt to upload an app that I have archived to the organizer, I receive this error:

The archive is invalid

21条回答
  •  -上瘾入骨i
    2021-01-01 18:42

    1. Quit Xcode
    2. With a text editor open the file YourProject.xcodeproj/project.pbxproj
    3. Delete all lines containing PROVISIONING_FILE =
    4. Delete all lines containing CODE_SIGN_IDENTITY =
    5. Save & close project.pbxproj
    6. Reopen your project in Xcode
    7. Clean the project
    8. In the Build Settings pane choose the correct code signing identity
    9. Rebuild

提交回复
热议问题