dyld:未加载库:@ rpath / libswiftCore.dylib。问题仍然存在 [英] dyld: Library not loaded: @rpath/libswiftCore.dylib. Issue persist
问题描述
我知道这个问题已经多次回答,但是当我为IOS 8.1编写Swift应用程序时,我无法找到正确的解决方案:
I know that this question have been answered several times, but I have not been able to find a proper solution to this error when I am coding a Swift application for IOS 8.1:
dyld:未加载库:@ rpath / libswiftCore.dylib引用自:
/private/var/mobile/Containers/Bundle/Application/LONGSERIALNUMBER/AppName.app/AppName
原因:找不到合适的图片。找到:
/private/var/mobile/Containers/Bundle/Application/LONGSERIALNUMBER/AppName.app/Frameworks/libswiftCore.dylib:
mmap()错误1,地址= 0x008A1000,大小= 0x001A4000段= __ TEXT
在Segment :: map()中映射
/private/var/mobile/Containers/Bundle/Application/LONGSERIALNUMBER/APPLICATION_NAME/Frameworks/libswiftCore.dylib
dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/Application/LONGSERIALNUMBER/AppName.app/AppName Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/LONGSERIALNUMBER/AppName.app/Frameworks/libswiftCore.dylib: mmap() error 1 at address=0x008A1000, size=0x001A4000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/LONGSERIALNUMBER/APPLICATION_NAME/Frameworks/libswiftCore.dylib
正如它在这个问题中所说的那样
As it said in this question
dyld:未加载库:@ rpath / libswiftCore.dylib
我试过所有这些行动:
- 重启Xcode,iPhone,电脑
- 清洁&重建
- 撤销和创建新的证书/供应配置文件
- 运行路径搜索路径是'$(继承)@ executable_path / Frameworks'
- 嵌入式内容包含Swift代码为'是'
- 代码签名身份为开发人员
- 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
但我总是遇到同样的错误...
but I have always got the same error...
我正在使用XCode 6.1和OS X Mavericks 10.9.5我有一个iPhone 4s用于测试。
I am using XCode 6.1 and OS X Mavericks 10.9.5 and I have an iPhone 4s for testing.
今晚我在朋友的电脑上部署了我的应用程序,一切都很完美。关键是我朋友的OS X是Yosemite 10.10。所以似乎使用Yosemite问题就消失了。
This evening I deployed my application in a friend's computer and everything was perfect. The point is that the OS X of my friend is Yosemite 10.10. So it seems that using Yosemite the problem disappears.
任何想法都会受到欢迎。谢谢。
Any ideas will be appreciate. Thanks.
PS:由于某些复杂的原因,我无法将我的操作系统更新为Yosemite
PS: for some complicated reasons I cannot update my operating system to Yosemite
推荐答案
你使用cocoapods吗?使用它有类似的问题。如果是这样,请尝试使用不同版本的可可豆荚。
Do you use cocoapods. There is a similar issue with using that. If so, try use a different version of cocoa pods.
这篇关于dyld:未加载库:@ rpath / libswiftCore.dylib。问题仍然存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!