動態(tài)庫報加載不到

報錯信息

dyld[63662]: Library not loaded: '@rpath/WBXPCService.framework/Versions/A/XPCService'
  Referenced from: '/Users/xxx/Library/Developer/Xcode/DerivedData/Client1-cqxbmhehfbvmfpatyiusasshdaej/Build/Products/Debug/Client1.app/Contents/MacOS/Client1'
  Reason: tried: '/Users/xxx/Library/Developer/Xcode/DerivedData/Client1-cqxbmhehfbvmfpatyiusasshdaej/Build/Products/Debug/XPCService.framework/Versions/A/XPCService' (no such file),
 '/Users/xxx/Library/Developer/Xcode/DerivedData/Client1-cqxbmhehfbvmfpatyiusasshdaej/Build/Products/Debug/Client1.app/Contents/MacOS/../Frameworks/XPCService.framework/Versions/A/XPCService' (no such file), 
'/Users/xxx/Library/Developer/Xcode/DerivedData/Client1-cqxbmhehfbvmfpatyiusasshdaej/Build/Products/Debug/Client1.app/Contents/MacOS/../Frameworks/XPCService.framework/Versions/A/XPCService' (no such file), 
'/Library/Frameworks/XPCService.framework/Versions/A/XPCService' (no such file), '/System/Library/Frameworks/XPCService.framework/Versions/A/XPCService' (no such file)

解決方法:在 General 設置中,在 Frameworks, Libraries, and Embedded Content選項中選擇framework的編譯方式,由Do Not Embed 改成Embed & Sign,如下圖:
[圖片上傳失敗...(image-6b8a54-1695005388891)]

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

友情鏈接更多精彩內容