oc 和swift混編的時候打包ipa安裝不了
阿新 • • 發佈:2018-02-25
contains 方法 not 三方 ref gravity mark c項目 track
做了一個oc項目。裏面實用到swift第三方,真機執行的時候是正常的,用企業級證書打包成ipa之後安裝完畢之後閃退。通過導出手機log日誌發現錯誤提示:
Dyld Error Message:
? Library not loaded: @rpath/libswiftCore.dylib
? Referenced from: /private/var/mobile/Containers/Bundle/Application/02BA91C4-0E1C-4C3A-9A5E-30CA1D9B6639/funnyC.app/funnyC
? Reason: no suitable image found.
解決方法:
第一:
Setting Embedded Content Contains Swift Code to YES
第二步:
Go to project build settings and add @executable_path/Frameworks
to
Runpath Search Paths
option
第三步:
假設上邊兩步還是不行的話,就把證書和描寫敘述文件都又一次創建一遍
oc 和swift混編的時候打包ipa安裝不了