报错信息
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)]