1、Unsupported compiler ‘com.apple.compilers.llvmgcc42‘ selected for architecture ‘armv7‘
XCode5 编译出错的问题:
解决方法:
Change your compiler for C/C++/ObjectiveC Go to Build Settings->Build OPtions->compiler for C/C++/ObjectiveC; select Default(Apple LLVM5.0)
2、iphone开发,真机调试报The executable was signed with invalid entitlements错误.
真机器上部署测试,在点击Build And Run后,提示The executable was signed with invalid entitlements.(The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile.)错误,没有发布成功。在网上查询资料后,按照其中一个方法成功解决了此问题,具体如下:
第一步:在工程中添加文件new file,选择Code Signing 中的Entitlements,添加后名称为Entitlements.plist。
第二步:点击Entitlements.plist进行编辑,删除所有Root下的Key,然后添加一个Boolean类型,名称为get-task-allow的Key,状态为CHECKED
第三步:在Targets中的Info中的Build选项卡中的Code Signing Entitlements的值设为Entitlements.plist,重新Build即可解决
3、 reason: ‘-[UIPopoverController dealloc] reached while popover is still visible.‘
这是因为popover是一个局部变量,我们只需把它做成全局变量即可