美文网首页
动态库报加载不到

动态库报加载不到

作者: song91425 | 来源:发表于2023-09-14 17:51 被阅读0次

    报错信息

    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)]

    相关文章

      网友评论

          本文标题:动态库报加载不到

          本文链接:https://www.haomeiwen.com/subject/shnmvdtx.html