最近遇到多次類似的庫(kù)加載失敗的問(wèn)題,現(xiàn)象是從GitHub上下載的Demo,模擬器可以運(yùn)行,真機(jī)上一運(yùn)行就crash,并報(bào)錯(cuò)以下類似信息:
dyld: Library not loaded: @rpath/ImSDK.framework/ImSDK
Referenced from: /private/var/containers/Bundle/Application/234A068D-E726-440A-9BD2-BAF8E96221BE/TXLiteAVDemo_Professional.app/TXLiteAVDemo_Professional
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/234A068D-E726-440A-9BD2-BAF8E96221BE/TXLiteAVDemo_Professional.app/Frameworks/ImSDK.framework/ImSDK: code signature invalid for '/private/var/containers/Bundle/Application/234A068D-E726-440A-9BD2-BAF8E96221BE/TXLiteAVDemo_Professional.app/Frameworks/ImSDK.framework/ImSDK'
/private/var/containers/Bundle/Application/234A068D-E726-440A-9BD2-BAF8E96221BE/TXLiteAVDemo_Professional.app/Frameworks/ImSDK.framework/ImSDK: stat() failed with errno=25
如果有人像我一樣,在網(wǎng)上查到一些方法,類似與手動(dòng)添加
Copy Files
失敗后,可以檢查一下真機(jī)運(yùn)行選擇的開(kāi)發(fā)者賬號(hào)是不是付費(fèi)的,記得要換成付費(fèi)
的開(kāi)發(fā)者賬號(hào)再運(yùn)行!!!!!