【发布时间】:2014-12-19 10:30:30
【问题描述】:
我正在尝试使我现有的项目支持 Apple 要求的 64 位设备。 本项目使用 Three20 作为静态库。
我已经用 arm64 架构重建了 Three320 库。
但现在我的项目仍然出现构建错误“symbol(s) not found for architecture x86_64”,如下所示:
(null): "_OBJC_CLASS_$_TTDefaultStyleSheet", referenced from:
(null): _OBJC_CLASS_$_TitleStyleSheet in SettingsViewController.o
(null): "_OBJC_CLASS_$_TTStyleSheet", referenced from:
(null): Objc-class-ref in DailyInvestmentViewController.o
(null): "_OBJC_CLASS_$_TTStyledText", referenced from:
(null): Objc-class-ref in DailyInvestmentViewController.o
(null): "_OBJC_CLASS_$_TTStyledTextLabel", referenced from:
(null): Objc-class-ref in DailyInvestmentCustomCell.o
(null): Objc-class-ref in DailyInvestmentViewController.o
(null): "_OBJC_CLASS_$_TTTextStyle", referenced from:
(null): Objc-class-ref in SettingsViewController.o
(null): "_OBJC_METACLASS_$_TTDefaultStyleSheet", referenced from:
(null): _OBJC_METACLASS_$_TitleStyleSheet in SettingsViewController.o
(null): Symbol(s) not found for architecture i386
(null): Linker command failed with exit code 1 (use -v to see invocation)
谁能告诉我如何解决它。 非常感谢。 对不起,我的英语不好。
【问题讨论】:
-
它说在你的输出中找不到 i386 的符号,也许你需要为模拟器重新编译它?
-
@Roger 您还需要一个具有 i386-64 架构切片的 Fat 库。
标签: ios 64-bit static-libraries arm64