每当我尝试在Xcode 6 Beta 4中运行我的应用程序时,我都会得到错误:

The file "MyApp.app" couldn't be opened because you don't have permission to view it.

无论我的目标是什么模拟器或设备,都会出现此错误。

我试过:

在Xcode中删除所有来自组织者的派生数据 正在修复驱动器上的权限 手动提升构建的MyApp.app的权限 重启电脑

有没有其他人遇到过这个问题并找到了解决方案?


当前回答

我的用例有点独特。我使用app_spec的info_plist属性来额外指定信息。plist属性通过哈希。

但是,设置CFBundleExecutable键会导致权限错误。我把它拿掉了。

其他回答

我的解决方案是:

在你的终端输入: 打开~ /图书馆/开发/ CoreSimulator /设备/ 删除适当的文件夹 再次编译,它应该工作

What we didn't do right was to not apply with the accurate code when signing in the Build Settings. We fixed the issue up this way: Enter into Build Settings >> Code Signing >> Code Sign Identity. Then, apply with your iOS Developer ID for 'Debug', but be sure to apply with your iOS Distribution Profile for 'Release' We didn't apply correctly, so we couldn't have permission to ask for the App from the server, actually. Anyway this post forced us to revise all the parameters and requirements, so we pretty appreciate all your answers. Regards, T.

对我来说,错误是在.plist文件的关键CFBundleExecutable。 我重命名了可执行文件,删除了两个单词之间的空格。(例如:从“狂野赛车手”到“狂野赛车手”)。花了1天时间发现它!!

Xcode在调试方面实在是太没有帮助了!

我更新了我的可可荚,并在构建设置中添加了新的支持架构,并修复了它。

如果你在项目中使用了。m文件,但没有在构建阶段“编译源代码”中添加,也会出现此消息。