问题一:
当成为第一响应者时就会报错
[NSBigMutableString replaceCharactersInRange:withString:]: nil argument
解决:
是否定义了UITextField的分类?并重写了textFieldShouldBeginEditing/textFieldDidBeginEditing相应的方法?有去掉就OK了
问题二:
unexpected nil window in _UIApplicationHandleEventFromQueueEvent
解决:
1.首先看看你的 [self.window makeKeyAndVisible];
是不是写成: [self.window makeKeyWindow];
2. 用self.window = [UIWindow new];
[self.window makeKeyAndVisible];
self.window.frame = [[UIScreen mainScreen] bounds];
替换 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
问题三:
导航条和tabBar高度明显变高
解决:
换启动图片,启动图片会影响他们的高度
问题四:
ld: xx duplicate symbols for architecture x86_64
clang: error: linker common ....
解决:
TARGETS -->Buid Phases -->Compile Sources
找到重复然后删除
问题五:
ld: xxx.framework/xxx' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE),
obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
解决:
前提条件:你导入的静态库要确定支持arm64
TARGETS -->Build Setting -->bitcode
将Enable Bitcode 设置为No