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出现崩溃现象
解决办法:类库增加判断
1
2
3
|
if (range.location != nsnotfound) { language = [language substringtoindex:range.location]; } |
【3】ios10字体隐藏问题
label的话写一个扩展类
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
@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问题
1
2
3
4
5
6
7
|
#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 |
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持服务器之家。