更新到iOS 9错误:i386不支持的体系结构

更新到iOS 9错误:i386不支持的体系结构,第1张

概述我有一个将生成框架的项目. 我的架构设置是: >标准架构(armv7,arm64) > i386 有效架构:armv7,arm64,i386. 在iOS 8.4中,我可以成功构建它而没有任何问题. 但是,当我更新到iOS 9时,我收到“不支持的架构”错误. 看起来不支持i386,我该如何制作可以在模拟器中使用的框架? 这是错误消息: CompileC build/iDock.build/Debug 我有一个将生成框架的项目.
我的架构设置是:

>标准架构(armv7,arm64)
> i386

有效架构:armv7,arm64,i386.

在iOS 8.4中,我可以成功构建它而没有任何问题.
但是,当我更新到iOS 9时,我收到“不支持的架构”错误.
看起来不支持i386,我该如何制作可以在模拟器中使用的框架?

这是错误消息:

CompileC build/IDock.build/DeBUG-iphoneos/IDock.build/Objects-normal/i386/IDockControl.o IDock/IDockControl.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compilercd /Users/leon/documents/Jul-27/IDockexport LANG=en_US.US-ASCIIexport PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang    -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/cy/52qx8n5j5qqfd4g4hsm9t1140000gn/C/com.apple.DeveloperTools/7.0-7A220/Xcode/ModuleCache/Session.modulevalIDation    -fmodules-valIDate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-fIEld-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-propertIEs -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unkNown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -dobJC_olD_disPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk    -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=9.0 -Wno-sign-conversion -fobjc-abi-version=2 -iquote /Users/leon/documents/Jul-27/IDock/build/IDock.build/DeBUG-iphoneos/IDock.build/IDock-generated-files.hmap    -I/Users/leon/documents/Jul-27/IDock/build/IDock.build/DeBUG-iphoneos/IDock.build/IDock-own-target-headers.hmap    -I/Users/leon/documents/Jul-27/IDock/build/IDock.build/DeBUG-iphoneos/IDock.build/IDock-all-target-headers.hmap    -iquote /Users/leon/documents/Jul-27/IDock/build/IDock.build/DeBUG-iphoneos/IDock.build/IDock-project-headers.hmap    -I/Users/leon/library/Developer/Xcode/DerivedData/IDock-gqdfmhxadzmqcshdhlnmlbzodlrp/Build/Products/DeBUG-iphoneos/include    -I/Users/leon/documents/Jul-27/IDock/build/IDock.build/DeBUG-iphoneos/IDock.build/DerivedSources/i386    -I/Users/leon/documents/Jul-27/IDock/build/IDock.build/DeBUG-iphoneos/IDock.build/DerivedSources    -F/Users/leon/library/Developer/Xcode/DerivedData/IDock-gqdfmhxadzmqcshdhlnmlbzodlrp/Build/Products/DeBUG-iphoneos    -MMD -MT dependencIEs -MF /Users/leon/documents/Jul-27/IDock/build/IDock.build/DeBUG-iphoneos/IDock.build/Objects-normal/i386/IDockControl.d    --serialize-diagnostics /Users/leon/documents/Jul-27/IDock/build/IDock.build/DeBUG-iphoneos/IDock.build/Objects-normal/i386/IDockControl.dia    -c /Users/leon/documents/Jul-27/IDock/IDock/IDockControl.m -o /Users/leon/documents/Jul-27/IDock/build/IDock.build/DeBUG-iphoneos/IDock.build/Objects-normal/i386/IDockControl.o While building module 'Foundation' imported from /Users/leon/documents/Jul-27/IDock/IDock/IDockControl.h:10: While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/library/Frameworks/Foundation.framework/headers/Foundation.h:6: While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/library/Frameworks/CoreFoundation.framework/headers/CoreFoundation.h:11: In file included from <module-includes>:1: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/sys/cdefs.h:707:2: error: Unsupported architecture error Unsupported architecture  ^ While building module 'Foundation' imported from /Users/leon/documents/Jul-27/IDock/IDock/IDockControl.h:10: While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/library/Frameworks/Foundation.framework/headers/Foundation.h:6: While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/library/Frameworks/CoreFoundation.framework/headers/CoreFoundation.h:11: In file included from <module-includes>:3: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/copyfile.h:36: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.0/include/stdint.h:63: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/stdint.h:52: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/sys/_types.h:33: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported error architecture not supported

有人可以帮助我理解这一点并找出这个问题吗?

解决方法 Xcode 7.2更新也遇到了同样的问题.找到了解决方案,希望这对你有帮助,

更改用于为模拟器构建的脚本行如下,

xcodebuild -project ${PROJECT_name}.xcodeproj -scheme ${PROJECT_name} -sdk iphonesimulator -configuration ${CONfigURATION} -destination 'platform=iOS Simulator,name=iPad' clean build CONfigURATION_BUILD_DIR=${BUILD_DIR}/${CONfigURATION}-iphonesimulator 2>&1
总结

以上是内存溢出为你收集整理的更新到iOS 9错误:i386不支持的体系结构全部内容,希望文章能够帮你解决更新到iOS 9错误:i386不支持的体系结构所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1105152.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存