我正在尝试为arm64重新编译kivy(因为Apple从2015年2月开始要求使用arm64应用程序),但出现错误:

-arch arm64无法指定-Q

(是的,该工具使用specifiy字生成输出)。

问题是不使用-Q:

MBA安东:kivy-ios2 asmirnov $
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-xc -arch arm64 -fmessage-length = 115 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit = 0 -fcolor-diagnostics -std = gnu99 -fmodules -fmodules-prune-interval = 86400 -fmodules- prune-after = 345600 -Wnon-modular-include-in-framework-module -Werror = non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers- Wno-missing-prototypes -Werror =返回类型-Werror = deprecated-objc-isa-usage -Werror = objc-root-class -Wno-missing-braches -Wparentheses -Wswitch -Wunused函数-Wno-unused-label- Wno未使用参数-Wunused变量-Wunused值-Wempty主体-W条件未初始化-Wno未知编译指示-Wno阴影-Wno-四个字符常量-Wno转换-Wconstant转换-Wint-转换-Wbool转换-Wenum转换-Wshorten-64至32 -Wpointer-sign -Wno-newline-eof -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ iPhoneOS8.1.sdk
-fstrict-aliasing -Wdeprecated-clarifications -g -Wno-sign-conversion -miphoneos-version-min = 7.0 -iquote /Users/asmirnov/Documents/dev/src/kivy-ios2/tmp/libffi-3.2.1/build /libffi.build/Release-iphoneos/libffi-iOS.build/ffi-generation-files.hmap
-I / Users / asmirnov / Documents / dev / src / kivy-ios2 / tmp / libffi-3.2.1 / build / libffi.build / Release-iphoneos / libffi-iOS.build / ffi-own-target-headers.hmap
-I / Users / asmirnov / Documents / dev / src / kivy-ios2 / tmp / libffi-3.2.1 / build / libffi.build / Release-iphoneos / libffi-iOS.build / ffi-all-target-headers.hmap
-iquote /Users/asmirnov/Documents/dev/src/kivy-ios2/tmp/libffi-3.2.1/build/libffi.build/Release-iphoneos/libffi-iOS.build/ffi-project-headers.hmap
-I /用户/ asmirnov /文档/dev/src/kivy-ios2/tmp/libffi-3.2.1/build/Release-iphoneos/include
-I / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / include
-Idarwin_common / include -Idarwin_ios / include -I / Users / asmirnov / Documents / dev / src / kivy-ios2 / tmp / libffi-3.2.1 / build / libffi.build / Release-iphoneos / libffi-iOS.build / DerivedSources / arm64
-I /用户/ asmirnov /文档/dev/src/kivy-ios2/tmp/libffi-3.2.1/build/libffi.build/Release-iphoneos/libffi-iOS.build/DerivedSources
-F /用户/ asmirnov /文档/dev/src/kivy-ios2/tmp/libffi-3.2.1/build/Release-iphoneos
-no-integrated-as -MMD -MT依赖项-MF /Users/asmirnov/Documents/dev/src/kivy-ios2/tmp/libffi-3.2.1/build/libffi.build/Release-iphoneos/libffi-iOS。构建/对象正常/arm64/ffi64_x86_64.d
--serialize-diagnostics /Users/asmirnov/Documents/dev/src/kivy-ios2/tmp/libffi-3.2.1/build/libffi.build/Release-iphoneos/libffi-iOS.build/Objects-normal/arm64/ ffi64_x86_64.dia
-c /用户/ asmirnov /文档/dev/src/kivy-ios2/tmp/libffi-3.2.1/darwin_ios/src/x86/ffi64_x86_64.c
-o /Users/asmirnov/Documents/dev/src/kivy-ios2/tmp/libffi-3.2.1/build/libffi.build/Release-iphoneos/libffi-iOS.build/Objects-normal/arm64/ffi64_x86_64.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as:
无法使用-arch arm64 clang指定-Q:错误:汇编器命令
失败,退出代码为1(使用-v查看调用)

最佳答案

不需要“-no-integrated-as”,没有它就可以工作

关于ios - XCode:无法使用-arch arm64指定-Q,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/28321681/

10-09 02:19