日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

xcode8 崩溃问题

發布時間:2023/12/20 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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.


【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;??
  • ????}??
  • }??
  • 另外需要注意的是iOS10字體寬度比之前多一個像素,高度不變,這個是個坑,需要注意一下!


    ?[4]?StroyBoard問題

    <1>Xcode 打開SB頻繁出現崩潰現象

    <2>Xcode 打開SB后 約束出現大量警告??

    ?[5]?NSLog打印問題

    [plain]?view plain?copy ?
  • []?-[NWConcrete_tcp_connection?dealloc]?11????
  • []?nw_socket_handle_socket_event?Event?mask:?0x4????
  • []?nw_socket_handle_socket_event?Socket?received?WRITE_CLOSE?event????
  • []?nw_socket_handle_socket_event?Event?mask:?0x4????
  • []?nw_socket_handle_socket_event?Socket?received?WRITE_CLOSE?event]?tcp_connection_cancel?5????
  • []?nw_socket_handle_socket_event?Event?mask:?0x4]?nw_socket_handle_socket_event?Socket?received?WRITE_CLOSE?event????
  • []?nw_endpoint_handler_cancel?[5?192.168.2.51:1999?ready?proxy?(satisfied)]]?-[NWConcrete_nw_endpoint_proxy?cancelWithHandler:forced:]?[5?192.168.2.51:1999?cancelled?proxy?(null)]]?nw_endpoint_handler_cancel?[5.1?192.168.2.51:1999?ready?socket-flow?(satisfied)]????
  • []?nw_endpoint_flow_protocol_disconnected?[5.1?192.168.2.51:1999?cancelled?socket-flow?(null)]?Output?protocol?disconnected????
  • []?nw_endpoint_handler_cancel?[5.2?192.168.2.51:1999?initial?path?(null)]????
  • []?-[NWConcrete_tcp_connection?dealloc]?5????


  • 解決方法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

    以前也會有這個問題,具體不清楚
    命令行


  • xcrun?simctl?list?devices?|?grep?-v?'^[-=]'?|?cut?-d?"("?-f2?|?cut?-d?")"?-f1?|?xargs?-I?{}?xcrun?simctl?delete?"{}"??


  • 總結

    以上是生活随笔為你收集整理的xcode8 崩溃问题的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。