Error:Cannot assign to 'self' outside of a method in the init family
my solution:
如果你的方法是一个初始化方法,则方法名必须用“init”开始,或者,你也可以把方法改为一个类方法,返回一个单例对象,我的问题方法如下:
-(id)initwithPage:(unsigned)pageNum {...}
注意小写‘w’
我把它改为:
-(id)initWithPage:(unsigned)pageNum {...}
注意大写‘W’
我的问题就解决了。
From http://stackoverflow.com/questions/16013238/cannot-assign-to-self-out-of-a-method-in-the-init-family
Error:Could not load NIB in bundle with name XXX
my solution:
因为我是用Storyboard,但是却用ViewController的方法加载,所以出错了,改为:
UIStoryboard *sboard = [UIStoryboard storyboardWithName:@"StoryboardFileName" bundle:nil];
YourViewController *vc1 = [sboard instantiateInitialViewController];
问题解决.
From http://stackoverflow.com/questions/12443385/could-not-load-nib-in-bundle-with-name-secondviewcontroller/12443395#12443395
Error:Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x7d90880> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key currentTime.'
my solution:
选中 'currentTime'控件所在的storyboard(或nib),点击'currentTime'控件,storeboard左侧的View Controller Scene中的对应控件也会选中,在Scene选中控件中右键弹出窗口查找删除无效的Referencing Outlets连接,问题解决,
From http://stackoverflow.com/questions/5932397/the-class-is-not-key-value-coding-compliant-for-the-key
Error:-[__NSArrayI isEqualToString:]: unrecognized selector sent to instance 0x7d1b3c0
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI isEqualToString:]: unrecognized selector sent to instance 0x7d1b3c0'
my solution:
原来是我把NSMutableDictionary错写成NSMutableArray,包括相应的方法调用,改过来就好了,
From http://stackoverflow.com/questions/17377190/assigning-values-in-nsarrays
Error:A valid provisioning profile matching the application's Identifier '' could not be found
my solution:
I had the same error message when I was trying to build an app on my iPhone. Everything seemed to be in order, I.e. the certificates were all valid and present and so on, but I just couldn't get it to work.
I just couldn't find the option "iOS team provisioning profile" in Project > Build Settings > Code Signing > Code Signing Identity - this was the main clue to a solution. If you can't see that option there, check your Xcode Organizer.
Inside it, go to Library > Provisioning Profiles:
Now what you should see if everything were right is this:
But if on the other hand you see an empty list, click the Refresh button in the lower right corner of the Organizer:
After said procedure, Xcode started churning out wonderful messages of "adding" and "finishing" and then my app appeared on my iPhone. The End.
Good luck!
From http://stackoverflow.com/questions/11985611/a-valid-provisioning-profile-matching-the-applications-identifier-could-not
分享到:
相关推荐
优化Xcode编译时间
XCode编译缺失类
XCODE 编译选项.
xcode编译webkit资料。网上下载来的。可以看看哈。
这是一个xcode静态库编译方法的文档 欢迎大家下载
XCode默认使用与CPU核数相同的线程来进行编译,但由于编译过程中的IO操作往往比CPU运算要多,因此适当的提升线程数可以在一定程度上加快编译速度。 2. 将Debug Information Format改为DWARF 在工程对应Target的Build...
下载解压放到/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport即可,重启Xcode即可,无需升级系统和Xcode
使用Xcodebuild工具来编译出.app,然后启动模拟器来运行这个.app,并查看日志。
下载解压放到/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport即可,重启Xcode即可,无需升级系统和Xcode
Xcode真机模拟器各版本调试(持续更新),目前版本8.0~13.2 Xcode真机模拟器各版本调试(持续更新),目前版本8.0~13.2
低版本xcode不能编译程序到高版本的手机上,只有将新版本的xcode里的sdk添加进旧版xcode中,重启xcode运行
Xcode ios14.5 真机调试包,持续更新中...
加快XCode的编译链接速度,XCode编译速度慢的解决方案 ...XCode默认使用与CPU核数相同的线程来进行编译,但由于编译过程中的IO操作往往比CPU运算要多,因此适当的提升线程数可以在一定程度上加快编译速度
Xcode根据编译次数自动增加Build值 【相关资源只为技术交流】
Xcode生成动态库和静态库的方法,亲测可用,最后有将模拟仿真结果与真机测试结果合成的代码,合并后,放入工程目录,测试使用完全没有问题
Xcode 低版本用到的.a库
xcode中文教程xcode中文教程xcode中文教程
Xcode缺失资源libstdc++文件
cocos2d-x 2.1 魔塔源码 魔塔案例 魔塔源代码 xcode编译成功
本篇文章详细分析了一下Xcode编译选项功能以及相关的介绍,有这方面需要的参考学下下。