dyld:库未加载:@rpath/libswiftCore.dylib 适用于所有 Swift 应用程序 [英] dyld: Library not loaded: @rpath/libswiftCore.dylib for ALL Swift Apps
问题描述
我完全无法在设备上运行任何 Swift 应用程序.我有 Xcode 6.3.2 和 Yosemite 10.10.3,但总是出错
I am completely unable to run any Swift app on device. I have Xcode 6.3.2 and Yosemite 10.10.3, but always get error
dyld:库未加载:@rpath/libswiftCore.dylib 引用自:/private/var/mobile/Containers/Bundle/
dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/
我已经尝试了其他帖子中提到的所有解决方案:
I have tried every solution mentioned in other posts:
- 已在构建设置中将嵌入的内容包含 Swift 代码"标志设置为 YES
- 设置
@executable_path/Frameworks
- 尝试撤销证书并让 Xcode 创建新的证书/配置文件
- 尝试撤销证书并手动创建新的证书/配置文件
- 删除 developer.apple.com 和计算机上的所有配置文件并重新启动/清理所有内容
我创建的每个使用 swift 的应用都会发生这种情况.没有动态框架或任何不寻常的东西.
This happens for every app I create that uses swift. No dynamic frameworks or anything unusual.
推荐答案
解决方案是需要将 Build Settings 中的 Embedded Content Contains Swift Code
标志更改为 是
.默认为 NO!
The solution is that you need to change Embedded Content Contains Swift Code
flag in the Build Settings that needs to be set to YES
. It was NO by default!
这篇关于dyld:库未加载:@rpath/libswiftCore.dylib 适用于所有 Swift 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!