09:54:55 - tito@lt0311 Game> xcrun xcodebuild -verbose -scheme Game -configuration DeBUG -sdk iphoneos9.2 -derivedDataPath builds clean build | xcpretty▸ Cleaning Game/Game [DeBUG]▸ Check DependencIEs▸ Clean Succeeded▸ Building Game/Game [DeBUG]▸ Check DependencIEs▸ Compiling AppDelegate.m▸ Compiling main.m▸ Compiling VIEwController.m▸ Compiling VIEwController.m▸ Compiling AppDelegate.m▸ Compiling main.m▸ Compiling Main.storyboard▸ Compiling LaunchScreen.storyboard▸ Processing Info.pList▸ touching Game.app▸ Signing builds/Build/Products/DeBUG-iphoneos/Game.app▸ Build Succeeded09:55:06 - tito@lt0311 Game> xcrun xcodebuild -verbose -scheme Game -configuration DeBUG -sdk iphonesimulator9.2 -derivedDataPath builds clean build | xcpretty▸ Cleaning Game/Game [DeBUG]▸ Check DependencIEs▸ Clean Succeeded▸ Building Game/Game [DeBUG]▸ Check DependencIEs▸ Compiling VIEwController.m❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/cdefs.h:707:2: Unsupported architecture#error Unsupported architecture ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/machine/_types.h:34:2: architecture not supported#error architecture not supported ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:55:9: unkNown type name '__int64_t'typedef __int64_t __darwin_blkcnt_t; /* total blocks */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:56:9: unkNown type name '__int32_t'typedef __int32_t __darwin_blksize_t; /* preferred block size */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:57:9: unkNown type name '__int32_t'typedef __int32_t __darwin_dev_t; /* dev_t */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:60:9: unkNown type name '__uint32_t'typedef __uint32_t __darwin_gID_t; /* [???] process and group IDs */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:61:9: unkNown type name '__uint32_t'typedef __uint32_t __darwin_ID_t; /* [XSI] pID_t,uID_t,or gID_t*/ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:62:9: unkNown type name '__uint64_t'; dID you mean 'uint64_t'?typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:68:9: unkNown type name '__darwin_natural_t'typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:70:9: unkNown type name '__uint16_t'typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:71:9: unkNown type name '__int64_t'typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:72:9: unkNown type name '__int32_t'typedef __int32_t __darwin_pID_t; /* [???] process and group IDs */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:73:9: unkNown type name '__uint32_t'typedef __uint32_t __darwin_sigset_t; /* [???] signal set */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:74:9: unkNown type name '__int32_t'typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:75:9: unkNown type name '__uint32_t'typedef __uint32_t __darwin_uID_t; /* [???] user IDs */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:76:9: unkNown type name '__uint32_t'typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types/_intptr_t.h:30:9: unkNown type name '__darwin_intptr_t'typedef __darwin_intptr_t intptr_t; ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/_types.h:42:9: unkNown type name '__uint32_t'typedef __uint32_t __darwin_wctype_t; ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types/_size_t.h:30:9: unkNown type name '__darwin_size_t'; dID you mean '__darwin_ino_t'?typedef __darwin_size_t size_t; ^❌ Fatal error: too many errors emitted,stopPing Now [-ferror-limit=]❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/UIKit.framework/headers/UIKitdefines.h:8:9: Could not build module 'Darwin'#import <Availability.h> ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/CoreFoundation.framework/headers/CoreFoundation.h:11:10: Could not build module 'Darwin'#include <sys/types.h> ~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/Foundation.framework/headers/Foundation.h:6:10: Could not build module 'CoreFoundation'#include <CoreFoundation/CoreFoundation.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/objc/objc.h:31:10: Could not build module 'Darwin'#include <sys/types.h> // for __DARWIN_NulL ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/mach-o/arch.h:32:10: Could not build module 'Darwin'#include <stdint.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/dispatch/dispatch.h:25:10: Could not build module 'Darwin'#include <Availability.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/os/base.h:24:10: Could not build module 'Darwin'#include <sys/cdefs.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/Security.framework/headers/SecBase.h:32:10: Could not build module 'Darwin'#include <Availability.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/CoreGraphics.framework/headers/CGBase.h:8:10: Could not build module 'Darwin'#include <stdbool.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/CoreImage.framework/headers/CoreImagedefines.h:10:10: Could not build module 'Darwin'#include <TargetConditionals.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/CoreVIDeo.framework/headers/CoreVIDeo.h:16:10: Could not build module 'Darwin'#include <TargetConditionals.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/CoreText.framework/headers/CTdefines.h:12:10: Could not build module 'Darwin'#include <Availability.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/QuartzCore.framework/headers/CABase.h:11:10: Could not build module 'Darwin'#include <stdbool.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/OpenGLES.framework/headers/EAGL.h:8:10: Could not build module 'Foundation'#include <Foundation/Foundation.h> ~~~~~~~~^❌ /Users/tito/documents/workspace/Game/Game/VIEwController.h:9:9: Could not build module 'UIKit'#import <UIKit/UIKit.h> ~~~~~~~~^▸ Compiling AppDelegate.m❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/cdefs.h:707:2: Unsupported architecture#error Unsupported architecture ~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/machine/_types.h:34:2: architecture not supported#error architecture not supported ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:55:9: unkNown type name '__int64_t'typedef __int64_t __darwin_blkcnt_t; /* total blocks */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:56:9: unkNown type name '__int32_t'typedef __int32_t __darwin_blksize_t; /* preferred block size */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:57:9: unkNown type name '__int32_t'typedef __int32_t __darwin_dev_t; /* dev_t */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:60:9: unkNown type name '__uint32_t'; dID you mean 'uint32_t'?typedef __uint32_t __darwin_gID_t; /* [???] process and group IDs */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:61:9: unkNown type name '__uint32_t'; dID you mean 'uint32_t'?typedef __uint32_t __darwin_ID_t; /* [XSI] pID_t,or gID_t*/ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:62:9: unkNown type name '__uint64_t'; dID you mean 'uint64_t'?typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:68:9: unkNown type name '__darwin_natural_t'typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:70:9: unkNown type name '__uint16_t'; dID you mean 'uint16_t'?typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:71:9: unkNown type name '__int64_t'typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:72:9: unkNown type name '__int32_t'typedef __int32_t __darwin_pID_t; /* [???] process and group IDs */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:73:9: unkNown type name '__uint32_t'; dID you mean 'uint32_t'?typedef __uint32_t __darwin_sigset_t; /* [???] signal set */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:74:9: unkNown type name '__int32_t'typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:75:9: unkNown type name '__uint32_t'; dID you mean 'uint32_t'?typedef __uint32_t __darwin_uID_t; /* [???] user IDs */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types.h:76:9: unkNown type name '__uint32_t'; dID you mean 'uint32_t'?typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */ ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types/_intptr_t.h:30:9: unkNown type name '__darwin_intptr_t'typedef __darwin_intptr_t intptr_t; ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types/_size_t.h:30:9: unkNown type name '__darwin_size_t'typedef __darwin_size_t size_t; ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/sys/_types/_ct_rune_t.h:31:9: unkNown type name '__darwin_ct_rune_t'; dID you mean '__darwin_wctrans_t'?typedef __darwin_ct_rune_t ct_rune_t; ^❌ Fatal error: too many errors emitted,stopPing Now [-ferror-limit=]❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/UIKit.framework/headers/UIKitdefines.h:8:9: Could not build module 'Darwin'#import <Availability.h> ^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/CoreFoundation.framework/headers/CoreFoundation.h:11:10: Could not build module 'Darwin'#include <sys/types.h> ~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/Foundation.framework/headers/Foundation.h:6:10: Could not build module 'CoreFoundation'#include <CoreFoundation/CoreFoundation.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/objc/objc.h:31:10: Could not build module 'Darwin'#include <sys/types.h> // for __DARWIN_NulL ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/mach-o/arch.h:32:10: Could not build module 'Darwin'#include <stdint.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/dispatch/dispatch.h:25:10: Could not build module 'Darwin'#include <Availability.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/usr/include/os/base.h:24:10: Could not build module 'Darwin'#include <sys/cdefs.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/Security.framework/headers/SecBase.h:32:10: Could not build module 'Darwin'#include <Availability.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/CoreGraphics.framework/headers/CGBase.h:8:10: Could not build module 'Darwin'#include <stdbool.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/CoreImage.framework/headers/CoreImagedefines.h:10:10: Could not build module 'Darwin'#include <TargetConditionals.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/CoreVIDeo.framework/headers/CoreVIDeo.h:16:10: Could not build module 'Darwin'#include <TargetConditionals.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/CoreText.framework/headers/CTdefines.h:12:10: Could not build module 'Darwin'#include <Availability.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/QuartzCore.framework/headers/CABase.h:11:10: Could not build module 'Darwin'#include <stdbool.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk/System/library/Frameworks/OpenGLES.framework/headers/EAGL.h:8:10: Could not build module 'Foundation'#include <Foundation/Foundation.h> ~~~~~~~~^❌ /Users/tito/documents/workspace/Game/Game/AppDelegate.h:9:9: Could not build module 'UIKit'#import <UIKit/UIKit.h> ~~~~~~~~^▸ Compiling main.m▸ Compiling AppDelegate.m** BUILD Failed **The following build commands Failed: CompileC builds/Build/Intermediates/Game.build/DeBUG-iphoneos/Game.build/Objects-normal/arm64/VIEwController.o Game/VIEwController.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC builds/Build/Intermediates/Game.build/DeBUG-iphoneos/Game.build/Objects-normal/armv7/AppDelegate.o Game/AppDelegate.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler(2 failures)
这个命令已经在我刚刚使用Xcode7.2创建的项目上执行.
有谁知道如何解决这些错误?
解决方法 解决方法是在建立时指定目标参数 –xcodebuild ONLY_ACTIVE_ARCH=NO -configuration ${CONfigURATION} -workspace "${PROJECT_name}.xcworkspace" -scheme "${TARGET_name}" -sdk iphonesimulator BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" **-destination 'platform=iOS Simulator,ID=DC050A0D-6041-40F5-9D0E-EAEFA1D1EA42,OS=9.2'** clean build
(如果您只有一个特定类型的模拟器,请将名称替换为“ID”,如name = iPhone 6)
总结以上是内存溢出为你收集整理的ios – 无法使用iphonesimulator9.2构建模拟器全部内容,希望文章能够帮你解决ios – 无法使用iphonesimulator9.2构建模拟器所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)