使用Xcode製作framework,或者導入第三方framework運行出現Library not loaded xxxx.framework Reason: image not found的錯誤
錯誤信息:
dyld: Library not loaded: @rpath/Charts.framework/Charts
Referenced from: /Users/public1/Library/Developer/CoreSimulator/Devices/F373E3F8-0C8F-4B05-88DB-B140EBD92D6A/data/Containers/Bundle/Application/0BAC75B5-D04C-4AFE-BED3-1B210B62E7F7/NewWays.app/NewWays
Reason: image not found
(lldb)
解決辦法:
如圖選擇Optional後重新運行