Xcode遇到couldn’t be opened because you don’t have permission to view it.解决方法
今天删除app里面第三方类库的之后,xcode在编译的时候出现了这个问题。
(无法打开,因为您没有权限查看它)
![](http://upload-images.jianshu.io/upload_images/638157-ce0f0b586217e23d.jpeg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240/q/100)
问题刚出现的时候,可以尝试一下在xcode上方product选项clean一下。
![](http://upload-images.jianshu.io/upload_images/638157-520389f363e31062.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240/q/100)
clean之后app就正常运行了。如果问题还没有解决,请选中工程-project -build Settings 记住要选择 “ All ” ,然后找到 Build Options ,将 Compiler for C/C++/Objective-C 这个选项改成 Default compiler 就可以了。
![](http://upload-images.jianshu.io/upload_images/638157-c13f2dfb93063b28.jpeg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240/q/100)
Luck-