每当我尝试在Xcode 6 Beta 4中运行我的应用程序时,我都会得到错误:
The file "MyApp.app" couldn't be opened because you don't have permission to view it.
无论我的目标是什么模拟器或设备,都会出现此错误。
我试过:
在Xcode中删除所有来自组织者的派生数据 正在修复驱动器上的权限 手动提升构建的MyApp.app的权限 重启电脑
有没有其他人遇到过这个问题并找到了解决方案?
每当我尝试在Xcode 6 Beta 4中运行我的应用程序时,我都会得到错误:
The file "MyApp.app" couldn't be opened because you don't have permission to view it.
无论我的目标是什么模拟器或设备,都会出现此错误。
我试过:
在Xcode中删除所有来自组织者的派生数据 正在修复驱动器上的权限 手动提升构建的MyApp.app的权限 重启电脑
有没有其他人遇到过这个问题并找到了解决方案?
当前回答
我的项目也遇到了同样的问题。后来发现项目中使用的第三方(fmdb for SQLite)文件包含Info.plist。
简单地删除信息。Plist文件为我工作!
其他回答
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.
我有类似的问题(xCode 6.2)的示例代码下载。我试图在信息中将可执行名称设置为默认。但是这并没有起作用。
相反,将Compiler for C/ c++ /Objective-C更改为Default Compiler(Apple LLVM 6.0),而不是Unsupported Compiler(com.apple.compilers.llvmgcc42) for project。
不知道这个问题是否相关,但也许对像我这样的人来说,这是一个解决方案。
就我而言,我有一个有很多目标的项目。每个目标都是基础项目的自定义,基础项目是Cocoa Touch静态库,目标是应用程序。即使将主文件添加到库编译中,但没有添加到每个目标中,也会出现错误消息。我做了什么?在Compile Sources部分中手动将主文件添加到每个目标,没问题。
也许可以考虑安装最新版本的Xcode。
在尝试了所有其他的解决方案(对我来说并不管用)之后,我这样做了,这个问题自动得到了解决。
当路径不正确或试图获取文件夹的内容而不是路径时,也会出现此错误。