Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/112.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios xcode抱怨在包含armv7体系结构的框架中不支持armv7体系结构_Ios_Xcode_Linker_Ld_Armv7 - Fatal编程技术网

Ios xcode抱怨在包含armv7体系结构的框架中不支持armv7体系结构

Ios xcode抱怨在包含armv7体系结构的框架中不支持armv7体系结构,ios,xcode,linker,ld,armv7,Ios,Xcode,Linker,Ld,Armv7,我正在构建一个iOS应用程序。链接框架时,我收到以下警告和错误: ld: warning: ignoring file /Users/XXX/libs/abc.framework/abc, file was built for unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x41 0x2F 0x69 0x43 0x6F 0x6E 0x6E ) which is not the architectur

我正在构建一个iOS应用程序。链接框架时,我收到以下警告和错误:

ld: warning: ignoring file /Users/XXX/libs/abc.framework/abc, file was built for unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x41 0x2F 0x69 0x43 0x6F 0x6E 0x6E ) which is not the architecture being linked (armv7): /Users/XXX/libs/abc.framework/abc
[TRACE] :  Undefined symbols for architecture armv7:
[TRACE] :    "_OBJC_CLASS_$_myMethod", referenced from:
[TRACE] :        objc-class-ref in libcom.abc.def.a(ComAbcDefModule.o)
[TRACE] :  ld: symbol(s) not found for architecture armv7
[TRACE] :  clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] :  ** BUILD FAILED **
[ERROR] :  The following build commands failed:
[ERROR] :   Ld build/Debug-iphoneos/MyApp.app/MyApp normal armv7
当我在abc.framework文件(abc.framework/Versions/A/abc.1.0.1)中的库上运行lipo-info和file时,我看到这样一句话,它包含armv7体系结构:

lipo -info abc.1.0.1
Architectures in the fat file: abc.1.0.1 are: armv7 armv7s arm64 x86_64 

file abc.1.0.1
abc.1.0.1: Mach-O universal binary with 4 architectures
abc.1.0.1 (for architecture armv7): current ar archive random library
abc.1.0.1 (for architecture armv7s):    current ar archive random library
abc.1.0.1 (for architecture cputype (16777228) cpusubtype (0)): current ar archive random library
abc.1.0.1 (for architecture x86_64):    current ar archive random library
所以我无法链接。我花了一整天的时间尝试了所有的事情。为什么它会抱怨在armv7架构中找不到它?另外,有人能解释一下这是什么不受支持的文件格式吗?

这可能会有帮助: