簡體   English   中英

Dyld錯誤消息:未加載庫:@ rpath / libswiftAssetsLibrary.dylib

[英]Dyld Error Message: Library not loaded: @rpath/libswiftAssetsLibrary.dylib

當我們為臨時部署構建應用程序並運行它時,該應用程序立即崩潰,並且在崩潰日志中看到以下內容:

**Dyld Error Message:**
  **Library not loaded: @rpath/libswiftAssetsLibrary.dylib**
  Referenced from: /private/var/mobile/Containers/Bundle/Application/73FD1DE2-820C-443C-B7CA-B79DB9CF3466/MyApp.app/MyApp
  Reason: no suitable image found.  Did find:
    /private/var/mobile/Containers/Bundle/Application/73FD1DE2-820C-443C-B7CA-B79DB9CF3466/MyApp.app/Frameworks/libswiftAssetsLibrary.dylib: mmap() error 1 at address=0x0052F000, size=0x00004000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/73FD1DE2-820C-443C-B7CA-B79DB9CF3466/MyApp.app/Frameworks/libswiftAssetsLibrary.dylib
    /private/var/mobile/Containers/Bundle/Application/73FD1DE2-820C-443C-B7CA-B79DB9CF3466/MyApp.app/Frameworks/libswiftAssetsLibrary.dylib: mmap() error 1 at address=0x0053A000, size=0x00004000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/73FD1DE2-820C-443C-B7CA-B79DB9CF3466/MyApp.app/Frameworks/libswiftAssetsLibrary.dylib
  Dyld Version: 353.10

根據關於SO的不同問題的建議,我們嘗試了以下嘗試而沒有運氣:

  1. 吊銷和重新生成證書
  2. 確保新證書已設置OU
  3. 確保運行路徑具有@ executable_path / Frameworks
  4. 確保嵌入的內容包含快速代碼設置為“是”。

我們仍然遇到這個問題。 任何幫助/指針將不勝感激。

我通過刪除派生數據文件夾解決了相同的問題。 步驟:XCode-> Preference-> Locations-> Derived data-> Advanced查找文件夾並將其刪除。 在那之后重建並且它運作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM