美文网首页
升级Xcode8后的问题

升级Xcode8后的问题

作者: cdbq | 来源:发表于2016-09-14 13:50 被阅读3683次

今天跟新了Xcode,更新打开原来的项目,密密麻麻的输出了一大堆,输出的日志:

问题一:
意思是PhotoLibraryServices.framework和AssetsLibraryServices.framework产生了冲突,系统不知道用哪个

objc[1499]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x10d198910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x10cfc2210). One of the two will be used. Which one is undefined.

待解决。。。。。

问题二:另输出,这个已解决

2016-09-14 14:12:09.385412 GIF[1859:84954] subsystem: 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 14:12:09.409844 GIF[1859:84954] subsystem: com.apple.UIKit, category: HIDEventIncoming, 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 14:12:09.425741 GIF[1859:84868] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0

2016-09-14 14:12:09.450762 GIF[1859:84825] subsystem: com.apple.UIKit, category: StatusBar, 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 14:12:09.591804 GIF[1859:84825] subsystem: com.apple.BackBoardServices.fence, category: App, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0

解决方法:

屏幕快照 2016-09-14 下午2.13.50.png 屏幕快照 2016-09-14 下午2.14.08.png

问题三:xcode8真机调试NSLog无法输出(真机为5s iOS 10,后测试在9中没这个问题)

问题3与问题2有关.在xcode8在设置 OS_ACTIVITY_MODE 为disable一段时间之后。手贱将测试机升到了iOS10,然后真机就无法NSLog了。
ps:真机系统为iOS 10.后测试在真机iOS 9中没这个问题
一般情况下,设置Edit scheme->run ->info ->Build Configuration为Debug状态即可。但是笔者发现Build Configuration本来就是Debug的状态。于是自己定义 #ifdef DEBUG ,但还是无法输出。 网上查了下基本都是说更改Build Configuration。突然想到前几天设置过的OS_ACTIVITY_MODE,抱着侥幸的心理吧OS_ACTIVITY_MODE前面的钩给取消了,运行了一下,居然输出了。。。。。。,而且问题2中杂七杂八的输出也没了(!!!注意!!!后测试了一下,取消OS_ACTIVITY_MODE,在模拟器上仍然会有杂七杂八的输出,但是真机上没有)。总之,如果想在真机上调试就去掉OS_ACTIVITY_MODE,如果模拟器调试,就选上OS_ACTIVITY_MODE 虽然不知道原理,但是也算瞎猫碰上死耗子,不知道算不算解决。。。。。

待续。。。。。。。。

相关文章

网友评论

      本文标题:升级Xcode8后的问题

      本文链接:https://www.haomeiwen.com/subject/apuvettx.html