解决方案:
1 将architecture 选项中的armv7s 或者armv6去掉,仅仅保留armv7 即可
2 如果上述方法不行,请查看project配置中是否正确配置了project name。该方法参照:
I had this problem and it turned out to be a spelling mistake in the product name in the build
settings. Check all you product references are consistent in the settings and plists. Also check the product name does not contain a space or other "illegal" characters; this
also causes the same error。
3 compilier for c/c++/objective-c也要看是不是选的apple llvm
4 最后实在不行,关闭xcode,重启设备,删除应用重新加载,应该就好了