Ios 架构x86_64的未定义符号:用于libTYCommonLib.a
获取此错误。请帮助解决此问题?您需要链接m文件:Ios 架构x86_64的未定义符号:用于libTYCommonLib.a,ios,objective-c,iphone,xcode,Ios,Objective C,Iphone,Xcode,获取此错误。请帮助解决此问题?您需要链接m文件: 终于找到了答案。在目标设置中,找到构建阶段并导航到编译源。一旦出现了将错误添加到列表中的.m文件。从ViewController.m中显示您的代码,以便更好地理解。实际上,这段代码已有2-3年的历史,我正在尝试在xcode 8.2中运行。此库与新的xcode不兼容。您是否在devicei尝试过6s中尝试,但获得的错误“需要”armv64iPhone“为模拟器(x86\u 64)和arm64(请参阅libTYCommonLib的构建设置中的有效体系
终于找到了答案。在目标设置中,找到构建阶段并导航到编译源。一旦出现了将错误添加到列表中的.m文件。从ViewController.m中显示您的代码,以便更好地理解。实际上,这段代码已有2-3年的历史,我正在尝试在xcode 8.2中运行。此库与新的xcode不兼容。您是否在devicei尝试过6s中尝试,但获得的错误“需要”armv64iPhone“为模拟器(
x86\u 64
)和arm64
(请参阅libTYCommonLib
的构建设置中的有效体系结构
)重建libTYCommonLib.a
)不支持的功能。您能给出另一种解决方案吗?
ld: warning: ignoring file /Users/CNS/Downloads/Demo Source Code 2/iOS/TYCommonLic_Demo/TYCommonLic_Demo/libTYCommonLib.a, missing required architecture x86_64 in file /Users/CNS/Downloads/Demo Source Code 2/iOS/TYCommonLic_Demo/TYCommonLic_Demo/libTYCommonLib.a (2 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SalesSlipModel", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_TYSwiperController", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)