dyld: Symbol not found: ___NSDictionary0__h和dyld`dyld_fatal_error錯誤
阿新 • • 發佈:2018-12-14
前段時間專案改版,在ios9.0之前 ,專案執行出現dyld`dyld_fatal_error錯誤:日誌如下
dyld: Symbol not found: ___NSDictionary0__ Referenced from: /Users/chuangxiang/Library/Developer/CoreSimulator/Devices/7EE5599C-0B94-4F1F-929C-B7EF98391B5E/data/Containers/Bundle/Application/3E33DF82-9013-467E-866B-D1D42F8017B7/SpeedAcquisitionloan.app/Acquisitionloan Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation in /Users/chuangxiang/Library/Developer/CoreSimulator/Devices/7EE5599C-0B94-4F1F-929C-B7EF98391B5E/data/Containers/Bundle/Application/3E33DF82-9013-467E-866B-D1D42F8017B7/SpeedAcquisitionloan.app/Acquisitionloan
解決辦法:
選中專案->TARGETS->Build Phases ->link Binary with Libraries -> 點選+ ->在輸入框中輸入CoreFoundation 點選->將Status改成Optional
如圖