简体   繁体   English

在模拟器上运行时,xCode 6.3.1缺少参考

[英]xCode 6.3.1 Missing references while running on simulator

I am working on xCode 6.3.1, everything is working fine while debugging on device iPhone 5s iOS 8.3 but when I disconnect device and try to test application with simulator there are hundreds of errors about "Missing references" for many framworks (with any simulators iOS8+) 我正在使用xCode 6.3.1,在设备iPhone 5s iOS 8.3上进行调试时,一切工作正常,但是当我断开设备并尝试使用模拟器测试应用程序时,关于许多framworks(使用任何模拟器)“缺少引用”的错误有数百个iOS8上+)

I tried to remove missing references and add again in "Build Phase" but no use. 我试图删除丢失的引用,并在“构建阶段”中再次添加,但没有用。 Furthermore, I am having pods setup but missing references are from project of course. 此外,我正在安装Pod,但当然缺少来自项目的参考。 It was working fine before update to Xcode 6.3.1, here is one example error: Undefined symbols for architecture x86_64: "_ABAddressBookCopyArrayOfAllGroups". 在更新到Xcode 6.3.1之前,它运行良好,这是一个示例错误:体系结构x86_64的未定义符号:“ _ABAddressBookCopyArrayOfAllGroups”。 Addressbook is not some framwork which should only supported for device and not for simulator. 地址簿不是一些框架,只应为设备而不是模拟器提供支持。

It is working fine with device, I uploaded Archive to app store, there was no issue either. 设备运行正常,我将存档上传到应用商店,也没有问题。 Only with simulator. 仅与模拟器一起使用。

I found solution, may be could help someone else, for me it was iPhone SDK location path as follows: 我找到了解决方案,可能可以帮助其他人,对我来说,这是iPhone SDK的位置路径,如下所示:

Build Settings>Framework search paths>iPhoneOS.platforms 构建设置>框架搜索路径> iPhoneOS.platforms

I did not correct this path, I Just delete path and its working on simulator now. 我没有更正此路径,我现在删除路径及其在模拟器上的工作。

Furthermore, Archive and debugging on device work perfect as well. 此外,设备上的存档和调试也可以完美运行。

在此处输入图片说明

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

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