ios - dyld : Library not loaded: @rpath/libswiftCore. 适用于所有 Swift 应用程序的 dylib

标签 ios swift xcode dylib

我完全无法在设备上运行任何 Swift 应用程序。我有 Xcode 6.3.2 和 Yosemite 10.10.3,但总是出错

dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/

我已经尝试过其他帖子中提到的所有解决方案:

  • 在build设置中将“嵌入的内容包含 Swift 代码”标志设置为是
  • 设置@executable_path/Frameworks
  • 尝试撤销证书并让 Xcode 创建新的证书/配置文件
  • 尝试撤销证书并手动创建新的证书/配置文件
  • 删除了 developer.apple.com 和计算机上的所有配置文件并重新启动/清理了所有内容

我创建的每个使用 swift 的应用程序都会出现这种情况。没有动态框架或任何不寻常的东西。

最佳答案

解决方案是您需要更改build设置中的Embedded Content Contains Swift Code标志,需要将其设置为YES。默认情况下为否!

关于ios - dyld : Library not loaded: @rpath/libswiftCore. 适用于所有 Swift 应用程序的 dylib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30651586/

相关文章:

ios - 无法从 weather-api 获取 json。 iOS

ios - UIImagePickerController:如何允许编辑但隐藏裁剪选项

ios - Xcode:选择 Storyboard之外的对象

iOS:状态栏问题

ios - 如何通过自动换行获取UITextView的内容高度

ios - 邮件撰写 View Controller 文本颜色不会改变

iOS 库中的 C++ 运行时兼容性

ios - Mapview - 防止发现坐标为零

ios - 自动布局 : UITextFields with equal width in different UITableViewCells

ios - 使用 UIAppearance 使 UINavigationBar 具有渐变背景