I use Xcode6 GM. I encountered the same problem. What I did was to go to Build Options. Then I changed the value of the "Compiler for C/C++/Objective-C" to Default Compiler.
couldn't be opened because you don't have permission to view it” 解决方法
原文:http://www.cnblogs.com/lingzhao/p/4028792.html