the file “XXX” could not be opened because you don't have permission to view it

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

the file “XXX” could not be opened because you don't have permission to view it_第1张图片

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

the file “XXX” could not be opened because you don't have permission to view it_第2张图片

那如何满足需求呢?

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

the file “XXX” could not be opened because you don't have permission to view it_第3张图片

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

the file “XXX” could not be opened because you don't have permission to view it_第4张图片

你可能感兴趣的:(the file “XXX” could not be opened because you don't have permission to view it)