首页 > 代码库 > The file “base.app” couldn’t be opened because you don’t have permission to view it.

The file “base.app” couldn’t be opened because you don’t have permission to view it.

Base项目是在Xcode7上创建的,升级Xcode8以后,编译时候提示错误:

The file base.app couldnt be opened because you dont have permission to view it.

应该是由于Build Settings->Build Options->Compiler for C/C++/Objective-C的LLVM版本变化导致。

 

解决办法:

1.找到Xcode项目文件目录Products,右键->在Finder中查看

2.删除项目文件目录Products下的xxx.app

3.此时xxx.app变为红色,重新编译运行即可

The file “base.app” couldn’t be opened because you don’t have permission to view it.