Xcode 用的是10.1 版本打的蘋果包在 ios系統10.0 以上可以正常運行 但是系統9.3的手機安裝后直接運行就崩潰 后來插上電腦聯調
報錯
dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications
Referenced from: /var/containers/Bundle/Application/364B6879-6B9C-41B1-AD1F-A209373C4EFC/ShanShuiClient-mobile.app/ShanShuiClient-mobile
Reason: image not found
低版本系統里面沒有UserNotifications.framework這個庫
解決辦法 選中項目->Build Phases->Link Binary With Libraries 找到這個庫 然后在 require 旁邊的小箭頭點擊選擇 Optional 選項 搞定