ChatGPT解决这个技术问题 Extra ChatGPT

Could not change executable permissions on the application

Just updated to iOS 6 sdk and latest Xcode and get this when trying to build to my 3gs. I 've added armv6 under valid architectures?

"Could not change executable permissions on the application"

The same happens on my iPhone 5. I tried deleting Xcode and reinstalling. I think some components are lingering around.
I just unplugged the phone and uninstalled the app. Ba-da-bingo!

I
Ignacio Oroná

I could solve it erasing an application that I had previously uploaded using the same Bundle Identifier (xcode get's confused doing the chmod). Try checking the log from xCode Organizer (Your device's Name -> Console) you should get information from that log. Good luck!


yes this was reason I managed to work out what I was doing wrong your answer is correct. Thank you!
But will my users be able to upgrade ??? I have an app that is selling. Created new version, and if I try to run on iPhone with App Store version I get this error. So what happens if I release new version in the app store?? Help.
@Ignacio - No, I can't advise them to do that !!! Exactly what I want to avoid. I don't even know who my users are. The upgrade has not been released (approved but not released).
@Fraggle - I've changed the name of three of my apps in this way prior to iOS6 without problem. I'm now getting your issue with the current app I'm trying to rename... This is either a) a bug in XCode 4.5 (asking the device to do something it can't) or b) a policy change which states that you can't change the app name after an app is released... It should in theory be fixed if you change your app name 'back' to what it was with your previous version. That's what I'll be doing for now!
To change the app name 'back' go into the app Build Settings and find Product Name. Change it to whatever the home screen icon text is for your current version. Hopefully this will work!
T
TK-Li

folks, i get this resolved - because i already have the same app using the same bundle identifier installed on the phone. - what you need to do is to delete all those apps on your iphone which is using the same bundle identifier name. - you'll make it!!


yes. I delete the app in the device .and try again, It work well.
That is perfect, Just what I needed
Thanks. But when I will upload to appstore, users must be erase the old version befor to dowload the new version? or the upgrade is possible without erase the old version one?
Perfect - this was precisely the problem in my case. Thanks.
Doesn't help much when you're trying to test migration… ;)
g
gabriel_rinaldi

You probably have a different target name. You can start the app from scratch, but you'll need the same target name and the same bundle identifier.


yes I just encountered this problem. target name and bundle identifier must be same. After setting this, the error disappears.
I found this to be the correct answer, it's not necessary to delete the app, at least in my case.
Yes. This is right. Since I need to keep some config of the existing and then overwrite with the debug ap with different target, then I got this error. (I installed an ad hoc app to debug push message).
target name and bundle identifier need not be same. I have a working example working in front of me.
Keeping the same bundle identifier and target name worked. Thanks!!
A
Abhilash Reddy kallepu

Delete the apps that were already installed on iphone/ipad with the same Bundle identifier.iphone/ipad gets confused with the apps with same bundle identifier. so change change the Bundle identifier of the current app or delete the app that was already installed.


M
Marco Tansini

It can happen when you launch the app from Xcode and you have the appstore version installed in the phone with the same bundle-id but a different name. In my case I'm using App_Beta when in the appstore is App. If the two versions does not have the same product name you wont be able to test the upgrade from the old to the new version. To solve make the names match.


M
Mike Madole

I went into the Organizer and selected the Applications underneath my test device. Even though I had deleted the application on my device itself, it still showed up in my list of applications. I deleted it there, and this took care of the issue for me.


s
sgarizvi

You need to delete all the app's using the same bundle identifier. I did the same, but still the same error persisted on my iPod, i cleaned the (cmd + shift + k) the build and restarted the iPod and i was able to run the app on the iPod.


u
user2380132

You just delete the apps that were already installed on your device with the same identifier.


L
LuisEspinoza

I ran into the same problem, but I needed to keep the current installed App in the device for debug purposes. My solution was to use the same:

Target Name Bundle identifier Product Name


M
Mark

I had this error, and what fixed it for me was Product Name under Build Settings. I had changed it to something else, and started getting this error. I changed it back and it fixed it.


Changed it back to what? More details please
Presumably changed it back to what he called it beforehand.
N
Nirav

Just delete all the previous versions of the application. Due to mismatch/confusion about bundle identifier it happens. I removed all the existing application with the similar identifier and was able to install.


W
William Denniss

I was able to resolve this error message simply by unplugging the USB cable, and plugging it in again after a few seconds. YMMV!


a
alexmorhun

You need to make sure that your device is not set to two applications with the same Bundle ID.


C
Casper

I had this error when I tried copying and pasting one xcode project to build another app. What I had to do was change the bundle identifier name to something different than my previous app.

https://i.stack.imgur.com/DpdBM.png


j
jww

Could not change executable permissions on the application

Cause: I had icons in the files system named 29x29.png, 58x58.png, 72x72.png, etc. I had soft links (ln -s) with the required names per App Icons on iPad and iPhone. For example, Icon-Small.png was a link to the real file 29x29.png.

I did this because my program runs on different platforms, from mobile phones to desktops. Android, Apple and Microsoft all have similar requirements. So "one set of icons" and "different links for different OS" made the most sense to me.

Fix: Don't use links. Apple does not tell you that. And their error message of "Could not change executable permissions on the application" is useless.

Looking at all the different answers (and causes), it looks like lots fo things can cause it.


Out of curiosity, why all the down votes? I explained how to duplicate the problem, and how to fix the problem in the example case. Note well: Apple does not prohibit links to sanely named files (29x29.png for example). Review the documentation for the linked article.
@William - the question was about the error "Could not change executable permissions on the application". Links using required names pointing o the PNGs will cause it. The fix is to not use links. Apple does not tell you that.