简体   繁体   English

Xcode 与领域链接错误

[英]Xcode linking error with realm

I am receiving this linking error in Xcode for the Realm Framework files.我在 Xcode 中收到此 Realm Framework 文件的链接错误。 I have searched and found users with similar errors with other frameworks.我已经搜索并发现其他框架有类似错误的用户。 However, I have tried to apply the solutions but nothing seems to work.但是,我尝试应用解决方案,但似乎没有任何效果。 I haven't found any solutions for a recent version of Xcode.我还没有为最新版本的 Xcode 找到任何解决方案。

The this only occurs when building for my device.这仅在为我的设备构建时发生。 Everything works in the iOS Simulator.一切都在 iOS 模拟器中运行。

ld: warning: ignoring file /Users/Developer/Swift/App/RealmSwift.framework/RealmSwift, missing required architecture armv7 in file /Users/Developer/Swift/RealmSwift.framework/RealmSwift (2 slices)
ld: warning: ignoring file /Users/Developer/Swift/Realm.framework/Realm, missing required architecture armv7 in file /Users/Developer/Swift/Realm.framework/Realm (2 slices)
Undefined symbols for architecture armv7:

I am using:我在用:

  • Xcode 6.3.2 Swift Xcode 6.3.2 斯威夫特
  • Realm Swift 0.93.1领域 Swift 0.93.1

I removed all of the frameworks then dragged them back in to the project.我删除了所有框架,然后将它们拖回项目中。 I had to create an empty Frameworks folder below RealmSwift.Framework/Headers (Not in the installation instructions on the Realm site).我必须在 RealmSwift.Framework/Headers 下创建一个空的 Frameworks 文件夹(不在 Realm 站点的安装说明中)。 Everything is now compiling on my device.现在一切都在我的设备上编译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM