iOS10 Xcode8适配7个常见问题汇总
iOS10 Xcode8问题汇总
【1】、Xcode8代码出现ubsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0 2016-09-14 17:18:55.843428 MyApp[6880:340837]
解决办法: 【product】-【scheme】-【Edit Scheme】-【Run】-【Argument】-【Environment Variable】添加keyValue【OS_ACTIVITY_MODE disable】可以停止输出打印此日志
遗留问题:还会出现Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x10a39a910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x10a1c4210). One of the two will be used. Which one is undefined.
【2】MJRefresh出现崩溃现象
解决办法:类库增加判断
if (range.location != NSNotFound) { language = [language substringToIndex:range.location]; }
【3】iOS10字体隐藏问题
label的话写一个扩展类
@implementation UILabel (Extend) - (void)lableAdaptIOS10{ CGFloat iOS10 = [[UIDevice currentDevice] systemVersion].floatValue >= 10; if (iOS10) { // self UIFont 的preferredFontForTextStyle: 意思是指定一个样式,并让字体大小符合用户设定的字体大小。 [self sizeToFit]; // self.font =[UIFont preferredFontForTextStyle: UIFontTextStyleHeadline]; //是否更新字体的变化 // self.adjustsFontForContentSizeCategory = YES; } }
[4] StroyBoard问题
<1>Xcode 打开SB频繁出现崩溃现象
<2>Xcode 打开SB后 约束出现大量警告⚠️
【5】Xcode8注释失效
打开终端,命令运行: sudo /usr/libexec/xpccachectl 重启电脑
【6】Xcode7 8兼容问题
This version does not support documents saved in the Xcode 8 format. Open this document with Xcode 8.0 or later.
删除SB中代码:
【7】Xcode8不能真机打印log问题
#ifdef DEBUG #define HYString [NSString stringWithFormat:@"%s", __FILE__].lastPathComponent #define HYLog(...) printf("%s 第%d行: %s\n\n", [HYString UTF8String] ,__LINE__, [[NSString stringWithFormat:__VA_ARGS__] UTF8String]); #else #define HYLog(...) #endif
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
您可能感兴趣的文章:
- Xcode8以及iOS10适配等常见问题汇总(整理篇)
- Xcode8 及iOS10适配问题汇总
- Xcode8 及iOS10适配问题汇总
- Xcode8 及iOS10适配问题汇总
- Xcode8 及iOS10适配问题汇总
- Xcode8 及iOS10适配问题汇总
- Xcode8 及iOS10适配问题汇总
- Xcode8 及iOS10适配问题汇总
- Xcode8 iOS10 适配等常见问题
- Xcode8 及iOS10适配问题汇总
- 【ios开发技术研究】Xcode8 及iOS10适配问题整理汇总
- xcode8升级后极光推送适配iOS10的相关问题
- macOS Sierra || ios10 || xcode8||问题汇总
- iOS10软件崩溃 Xcode8崩溃 打印/字体等问题汇总 韩俊强的博客
- iOS10 Xcode8开发适配问题及解决方案
- iOS10 Xcode8环境下适配目前遇到的问题和解决方案
- iOS10推送适配常见问题
- iOS10 Xcode8问题汇总
- iOS10 Xcode8问题汇总
- Xcode8、 iOS10 适配问题