从头开始重写iOS应用程序“无法更改应用程序的可执行权限”。 [英] Rewrite iOS app from scratch "Could not change executable permissions on the application."

查看:108
本文介绍了从头开始重写iOS应用程序“无法更改应用程序的可执行权限”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在商店有一个应用程序,我想从头开始重写整个应用程序。当我尝试在我的设备(iPhone 4)上构建并执行已经包含旧应用程序的新应用程序时,我收到错误:无法更改应用程序的可执行权限。

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.

你如何处理这种情况?

推荐答案

我相信问题与应用程序的配置有关。

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

您的设备上从App Store下载的应用程序版本已使用分发配置文件进行签名。当您从Xcode构建并尝试在其上安装时,您正在使用开发配置文件并尝试附加调试器。

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.

根据我的经验,您无法覆盖App Store如果您使用开发配置文件从Xcode构建并尝试通过App Store应用程序进行安装,则使用分发配置文件签名的应用程序。

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.

尝试使用分发配置文件从Xcode构建无需附加调试器。

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

此外,在App Store中升级应用程序时,人们永远不会遇到此类错误,因为两个配置文件都必须是分发配置文件。

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.

这篇关于从头开始重写iOS应用程序“无法更改应用程序的可执行权限”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆