2010-12-10 11 views
0

我试图在我的应用程序中打印。在4.2 SDK中打印 - 想要在没有应用程序崩溃的情况下支持4.0

尽管这样可行,我确实可以从我的应用程序打印,但我希望能够在未运行iOS 4.2的设备上运行我的应用程序。

即使我在运行代码之前检查版本。

打印文档的方法包含所有正在用于打印的类。

每当我切换模拟器回4.1,我得到一个符号未发现异常,显示错误:

使dyld:找不到符号:/用户/插孔/库/应用:_OBJC_CLASS _ $ _ UIMarkupTextPrintFormatter 从引用支持/ iPhone Simulator/4.1/Applications/794534DB-DB53-42E7-A294-7E78FDD3899B/Documentation.app/Documentation 预计位于:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library /Frameworks/UIKit.framework/UIKit in/Users/Jack/Library/Application Support/iPhone Simulator/4.1/Applications/794534DB-DB53-42E7-A294-7E78FDD3899B/Documentation.app/Documentation

我不想放弃没有升级到4.2的用户。

任何帮助表示赞赏。

回答

1

您正在使用哪种编译器?如果没有,则应转换到LLVM GCC或LLVM以支持自动弱连接,如Marco Arment在Supporting older versions of iOS while using new APIs中所述。

+0

谢谢。我改为LLVM GCC,现在工作正常。 – 2010-12-10 11:09:45

相关问题