iOS 错误集合
2018-04-17 本文已影响23人
彦子凡
1.证书错误
xxx has conflicting provisioning settings.
xxx is automatically signed, but provisioning profile 02e97ddc-da59-4ba0-9081-d93b50d620f1 has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the project editor.
项目右键==>显示包内容==>project.pbxproj删除"02e97ddc-da59-4ba0-9081-d93b50d620f1"行
2.xib 相关错误
Internal error. Please file a bug at bugreport.apple.com and attach......
clean 项目就可以~
解决方法:
cmd + shift + k
cmd + option + shift + k
Restart Xcode
3.归档的时候出现崩溃
ClassName : unrecognized selector sent to instance
原因:归档的实现函数中键值对错误,或者直接未实现
解决:实现.m中的函数,且不要出现错误键值对
4.代理属性重名
Auto property synthesis will not synthesize property 'delegate'; it will be implemented by its superclass, use @dynamic to acknowledge intention
Property type 'id<XXTabBarDelegete>' is incompatible with type 'id<UITabBarDelegate> _Nullable' inherited from 'UITabBar'
原因:和原生提供的delegate属性重名
解决:让代理继承UITabBarDelegate,并修改属性名
@protocol XXTabBarDelegete < UITabBarDelegate >
@end
...
@property (weak, nonatomic)id < XXTabBarDelegete >myDelegate;
5.代理错误
设置代理处黄色警告:
IOS Assigning to 'id<XXXDelegate>' from incompatible type...
原因:
未添加代理或者代理写错
解决:
添加上代理就可以了
6.iOS项目未清理错误
Internal error. Please file a bug at bugreport.apple.com and attach "/var/folders/v5/......
解决方法:
cmd + shift + k
cmd + option + shift + k
Restart Xcode