dyld:库未加载:@rpath/libswiftContacts.dylib [英] dyld: Library not loaded: @rpath/libswiftContacts.dylib
问题描述
dyld:库未加载:@rpath/libswift_stdlib_core.dylib
dyld: Library not loaded: @rpath/libswift_stdlib_core.dylib
dyld:库未加载:@rpath/libswiftCore.dylib.问题持续
dyld: Library not loaded: @rpath/libswiftCore.dylib. Issue persist
我知道这些问题已被多次回答,但是 dyld:库未加载:@rpath/libswiftContacts.dylib" 当我正在编写一个 SwiftXCode 7.2 的应用程序:
I know that theses question have been answered several times, but "dyld: Library not loaded: @rpath/libswiftContacts.dylib" I have not been able to find a proper solution to this error when I am coding a Swift application for XCode 7.2:
这里我使用 Contact &ContactUI 框架:: @rpath/libswiftContacts.dylib
Here I use Contact & ContactUI Frameworks:: @rpath/libswiftContacts.dylib
dyld: Library not loaded: @rpath/libswiftContacts.dylib
Referenced from: /var/mobile/Containers/Bundle/Application/C0F2B5CB-628C-4643-9473-648D3099D8FB/HomeMadeFood_User.app/HomeMadeFood_User
Reason: image not found
我已经尝试了所有这些操作:
I have tried all these actions:
- 重新启动 Xcode、iPhone、计算机
- 清洁&重建
- 撤销和创建新的证书/配置文件
- 运行路径搜索路径为 '$(inherited) @executable_path/Frameworks'
- 嵌入的内容包含 Swift 代码为是"
- 代码签名身份是开发人员
删除 Xcode 的派生数据目录.
- Restarting Xcode, iPhone, computer
- Cleaning & rebuilding
- Revoking and creating new certificate/provision profile
- Runpath Search Paths is '$(inherited) @executable_path/Frameworks'
- Embedded Content Contains Swift Code is 'Yes'
- Code Signing Identity is developer
deleting Xcode's Derived Data directory.
但我总是遇到同样的错误...
but I have always got the same error...
我是这样尝试的:但我收到如下错误:
I tried like this: but i am getting an error like:
/Users/mac-jarc/Library/Developer/Xcode/DerivedData/HomeMadeFood_User-bmwdevsopruaqxfrbibhaspidobn/Build/Products/Debug- iphoneos/HomeMadeFood_User.app/Frameworks/Contacts.framework: bundle format unrecognized, invalid, or unsuitable
Command /usr/bin/codesign failed with exit code 1
推荐答案
我有几个星期都遇到同样的错误:
I had this same error for a couple of weeks:
dyld: Library not loaded: @rpath/libswiftContacts.dylib
基本上我能够在设备上运行和测试我的应用程序.然后大约 2 周前,我无法再在设备上运行测试.测试在模拟器上运行良好.我想不出发生了什么变化.我看到的错误是上面的错误.我在谷歌上搜索了很长时间试图找到解决方案,并尝试了许多未成功的修复.最终有效的修复是删除派生数据.完成此操作后,我再次能够在我的设备上运行测试.
Basically I was able to run and test my app on device. Then about 2 weeks ago, I wasn't able to run the tests on device anymore. Tests were running fine on simulator. I can't think what changed. The error I saw was the one above. I searched Google for ages trying to find a solution, and tried many fixes unsuccessfully. The fix that finally worked was to delete the Derived Data. Once I did this, I was once again able to run the tests on my device.
对我有用的修复:
转到 Xcode > Preferences > Locations > Derived Data(点击小箭头打开 finder 中的文件夹)例如
/Users/[用户名]/Library/Developer/Xcode/DerivedData
删除整个 DerivedData 文件夹
Delete the entire DerivedData folder
清理/构建
在设备上测试 - 终于可以再次使用了
Test on device - finally works again
这篇关于dyld:库未加载:@rpath/libswiftContacts.dylib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!