xcode iOS Simulator 7.1 在使用弱链接新框架的 Yosemite 上运行时崩溃(找不到符号:_objc_isAuto)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26505658/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iOS Simulator 7.1 crash running on Yosemite with weak linked new frameworks (Symbol not found: _objc_isAuto)
提问by Darren
I have just updated to xCode 6.1 and had to reinstall my iOS 7 simulators.
我刚刚更新到 xCode 6.1,不得不重新安装我的 iOS 7 模拟器。
I can run my app on all the simulators apart from the 5s iOS 7.1 sim. I get this crash
除了 5s iOS 7.1 sim 之外,我可以在所有模拟器上运行我的应用程序。我得到这个崩溃
dyld: Symbol not found: _objc_isAuto
Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libobjc.A.dylib
in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
(lldb)
What gives? Any ideas why this sim crashes?
是什么赋予了?任何想法为什么这个 sim 崩溃?
Thanks
谢谢
采纳答案by Jeremy Huddleston Sequoia
This issue can occur if you are building your project against the iOS 8.x SDKs and are weak linking a framework that is new to iOS 8.x and also present in OS X 10.10 and you run in the iOS 7.1 simulator.
如果您正在针对 iOS 8.x SDK 构建项目,并且弱链接了一个新的 iOS 8.x 框架并且也存在于 OS X 10.10 中,并且您在 iOS 7.1 模拟器中运行,则可能会发生此问题。
The Xcode 6.1 Release Notesmention this issue:
在Xcode的6.1版本说明这个问题提:
If an app is weak linked against frameworks new in iOS 8 SDK and OS X 10.10 SDK, it may fail to run if the run destination is an iOS Simulator for older iOS runtimes and the host system is running OS X Yosemite. (17807439)
如果应用程序与 iOS 8 SDK 和 OS X 10.10 SDK 中的新框架弱链接,并且运行目标是适用于较旧 iOS 运行时的 iOS 模拟器并且主机系统正在运行 OS X Yosemite,则该应用程序可能无法运行。(17807439)
The issue is resolved in the updates iOS 7.1 simulator runtime that can be downloaded from Xcode 6.2 beta 4 an later (and I think possibly beta3 worked as well).
这个问题在更新的 iOS 7.1 模拟器运行时得到解决,可以从 Xcode 6.2 beta 4 下载(我认为可能 beta3 也能工作)。