Rewrite iOS app from scratch “Could not change executable permissions on the application.”

前端 未结 6 1272
天命终不由人
天命终不由人 2021-01-04 13:40

I have an app on the store for which I want to start rewriting the entire application \"from scratch\". When I try to build and execute the new app on my device (iPhone 4) w

相关标签:
6条回答
  • 2021-01-04 13:53

    I just ran into this issue also. What I did wrong was name the Xcode PROJECT file a different name than the old one. Naming it identically to the old project fixed the error and everything worked fine. I also kept bundleID and display name the same. The key to fixing the error for me was the .xcodeproj name.

    0 讨论(0)
  • 2021-01-04 13:56

    I believe the issue has to do with the App's provisioning.

    The version of the app on your device, downloaded from the App Store, has been signed with a Distribution profile. When you build from Xcode and try to install over it you are using a Development profile and trying to attach the debugger.

    Based on my experience you can not overwrite an App Store app signed with a Distribution profile if you build from Xcode using a Development profile and try to install over the App Store app.

    Try building from Xcode using a Distribution provisioning profile and without attaching the debugger.

    Also, people will never experience this kind of error when upgrading their app in the App Store because both provisioning profiles are required to be a Distribution profile.

    0 讨论(0)
  • 2021-01-04 14:00

    Clean project, and remove previous build from device

    0 讨论(0)
  • 2021-01-04 14:03

    Check for the bundle identifier, both old and new app should have the same identifier.

    0 讨论(0)
  • 2021-01-04 14:04

    For simulating upgrade through App store, do the following exercise

    1. Prepare a code signed binary (.ipa) of the new code with the same credentials as the old one (same bundle ID, dev profile, version # can be different)

    2. Now load the binary through iTunes syncing in your device. It would upgrade on top of the existing application.

    3. If everything goes okay then your app should be good.

    0 讨论(0)
  • 2021-01-04 14:06

    watch this video, you must uninstall the app from your test device first
    http://www.youtube.com/watch?v=Q-zrXdSEvJc

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