首页 > 代码库 > the file couldn't be opened because you don't have permission to view it

the file couldn't be opened because you don't have permission to view it

 

1、前言

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

技术分享

 

2、解决方法

 
 
方案1:clean 试一下 
 
技术分享

 

 

 

 

 

方案2:查看工程中警告,发现需要更新旧工程的设置:
技术分享
 
点击Upate to reconmmented settings,打开如下窗口:
技术分享
 
选择Perform Changes,再次运行OK!
 
 
 
方案3:Project---Build Setting中 修改这一项,变成Default Compiler(Apple LLVM 6.0) 
 
技术分享

the file couldn't be opened because you don't have permission to view it