Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

ios

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) which already contains the old app I get the error: "Could not change executable permissions on the application."

The new executable works ok if I run it on the simulator or delete the current application on the device and install fresh. My concern is people upgrading to this latest version of the app won't be able to.

How do you handle this scenario?

like image 566
Eric Avatar asked Jul 23 '12 14:07

Eric


4 Answers

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.

like image 188
brynbodayle Avatar answered Oct 30 '22 03:10

brynbodayle


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.

like image 44
Jake Avatar answered Oct 30 '22 01:10

Jake


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.

like image 1
DonDyck Avatar answered Oct 30 '22 01:10

DonDyck


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

like image 1
Suhaiyl Avatar answered Oct 30 '22 02:10

Suhaiyl