解决Xcode6中“the file XXX couldn't be opened because you don't have permission to view it”.

转自 http://blog.csdn.net/nogodoss/article/details/39546183

 

今天使用Xcode6,突然提示我"the file “XXX” could not be opened because you don't have permission to view it"  说我没有权限. 如下图

解决Xcode6中“the file XXX couldn't be opened because you don't have permission to view it”._第1张图片

最后问题找到了,首先说下产生问题的地方. 修改了Info.plist文件中的Executable file项,还是按照Xcode5的经验,修改Executable file项来改变app的桌面名称. 这个在Xcode6是不允许了.

解决Xcode6中“the file XXX couldn't be opened because you don't have permission to view it”._第2张图片

那如何满足需求呢?

可以在Build settings->Product Name项修改.Product Name项默认是$(TARGET_NAME),可以修改任意app名称,

解决Xcode6中“the file XXX couldn't be opened because you don't have permission to view it”._第3张图片

最后修改之后,就是的效果.

解决Xcode6中“the file XXX couldn't be opened because you don't have permission to view it”._第4张图片

你可能感兴趣的:(Permission)