【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.
【3】iOS10字體隱藏問題
label的話寫一個擴展類
另外需要注意的是iOS10字體寬度比之前多一個像素,高度不變,這個是個坑,需要注意一下!
?[4]?StroyBoard問題
<1>Xcode 打開SB頻繁出現崩潰現象
<2>Xcode 打開SB后 約束出現大量警告??
?[5]?NSLog打印問題
解決方法1:
在文件開頭加入 #ifdef DEBUG #define NSLog(FORMAT, ...) fprintf(stderr,"%s\n",[[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]); #else #define NSLog(...) #endif 即可。
解決方法2:
第一步:
第二步:
第三步:
添加參數:
Name :OS_ACTIVITY_MODE?
Value : ?disable
?[6]?xcode8莫名其妙crash
以前也會有這個問題,具體不清楚
命令行