i have project generate framework. architecture setting is:
- standard architecture(armv7, arm64)
- i386
valid architecture: armv7, arm64, i386.
in ios 8.4, can build without problem. however, when update ios 9. "unsupported architecture" error. looks i386 not supported, how can make framework can used in simulator?
here error message:
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.compiler cd /users/leon/documents/jul-27/idock export lang=en_us.us-ascii export 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 /users/leon/documents/jul-27/idock/idock/idockcontrol.h:10: while building module 'corefoundation' imported /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 /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 <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 /users/leon/documents/jul-27/idock/idock/idockcontrol.h:10: while building module 'corefoundation' imported /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 /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 <module-includes>:3: in file included /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos9.0.sdk/usr/include/copyfile.h:36: in file included /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/../lib/clang/7.0.0/include/stdint.h:63: in file included /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos9.0.sdk/usr/include/stdint.h:52: in file included /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
can me understand , figure out problem?
i faces same problem xcode 7.2 update. found solution, hope helps you,
change script line used build simulator follows,
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
Comments
Post a Comment