当我使用 xcodebuild来构建我的模拟器项目时,我面临着奇怪的错误(直接使用 Xcode构建时工作正常).
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 Succeeded

09: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构建模拟器的更多相关文章

  1. html5 canvas合成海报所遇问题及解决方案总结

    这篇文章主要介绍了html5 canvas合成海报所遇问题及解决方案总结,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧

  2. Html5移动端适配IphoneX等机型的方法

    这篇文章主要介绍了Html5移动端适配IphoneX等机型的方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

  3. 有关HTML5页面在iPhoneX适配问题

    这篇文章主要介绍了有关HTML5页面在iPhoneX适配问题,需要的朋友可以参考下

  4. Html5 页面适配iPhoneX(就是那么简单)

    这篇文章主要介绍了Html5 页面适配iPhoneX(就是那么简单),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

  5. H5页面适配iPhoneX(就是那么简单)

    这篇文章主要介绍了H5页面适配iPhoneX(就是那么简单),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

  6. ios – 在没有iPhone6s或更新的情况下测试ARKit

    我在决定下载Xcode9之前.我想玩新的框架–ARKit.我知道要用ARKit运行app我需要一个带有A9芯片或更新版本的设备.不幸的是我有一个较旧的.我的问题是已经下载了新Xcode的人.在我的情况下有可能运行ARKit应用程序吗?那个或其他任何模拟器?任何想法或我将不得不购买新设备?解决方法任何iOS11设备都可以使用ARKit,但是具有高质量AR体验的全球跟踪功能需要使用A9或更高版本处理器的设备.使用iOS11测试版更新您的设备是必要的.

  7. ios – containerURLForSecurityApplicationGroupIdentifier:在iPhone和Watch模拟器上给出不同的结果

    我使用默认的XCode模板创建了一个WatchKit应用程序.我向iOSTarget,WatchkitAppTarget和WatchkitAppExtensionTarget添加了应用程序组权利.(这是应用程序组名称:group.com.lombax.fiveminutes)然后,我尝试使用iOSApp和WatchKitExtension访问共享文件夹URL:延期:iOS应用:但是,测试NSURL

  8. ios – Trello iPhone应用程序是如何开发的?

    我想知道Trelloiphone应用程序正在使用哪些库或框架.它是一个JS框架的webapp?我很好奇,因为我非常喜欢用户界面,并且在没有运气的情况下搜索了互联网.解决方法我在Trello团队中编写了iPhone应用程序.它是除了附件查看器之外的所有本机代码,它只是一个WebView.我们使用RestKit与我们的API进行通信,并帮助将数据本地缓存到CoreData.否则,它只是一堆自定义UIViews和UIViewControllers.

  9. 真正的iOS设备和Watch Simulator可以进行通信以进行测试

    我想为现有的iOS应用创建一个手表应用.但我处于一种情况,我没有苹果手表,我现有的iOS应用程序只能在不在模拟器上的真实设备上运行.是否可以在iPhone设备上运行应用程序并在手表模拟器中测试我的手表应用程序?解决方法至少在目前,不可能配对真正的iPhone和Watch模拟器.我得出这个结论有三个原因:>Watch模拟器在安装过程中自动与iPhone模拟器配对.>根本无法从界面取消配对Watch模拟器.>在模拟器上无法访问蓝牙以与真实设备进行通信.这是一个proof.

  10. 适用于iOS和路线的Google Maps SDK

    解决方法库中有一些东西不在文档中,所以如果你正在寻找一个功能,那么值得下载SDK并查看标题.然而,在当前版本1.0.2中,我没有看到任何路由–搜索路线或绘制路线.目前,您唯一的选择可能是使用其他GoogleApi来查找路径,然后正如Lee所说,使用折线绘制它们.

随机推荐

  1. iOS实现拖拽View跟随手指浮动效果

    这篇文章主要为大家详细介绍了iOS实现拖拽View跟随手指浮动,文中示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

  2. iOS – genstrings:无法连接到输出目录en.lproj

    使用我桌面上的项目文件夹,我启动终端输入:cd然后将我的项目文件夹拖到终端,它给了我路径.然后我将这行代码粘贴到终端中找.-name*.m|xargsgenstrings-oen.lproj我在终端中收到此错误消息:genstrings:无法连接到输出目录en.lproj它多次打印这行,然后说我的项目是一个目录的路径?没有.strings文件.对我做错了什么的想法?

  3. iOS 7 UIButtonBarItem图像没有色调

    如何确保按钮图标采用全局色调?解决方法只是想将其转换为根注释,以便为“回答”复选标记提供更好的上下文,并提供更好的格式.我能想出这个!

  4. ios – 在自定义相机层的AVFoundation中自动对焦和自动曝光

    为AVFoundation定制图层相机创建精确的自动对焦和曝光的最佳方法是什么?

  5. ios – Xcode找不到Alamofire,错误:没有这样的模块’Alamofire’

    我正在尝试按照github(https://github.com/Alamofire/Alamofire#cocoapods)指令将Alamofire包含在我的Swift项目中.我创建了一个新项目,导航到项目目录并运行此命令sudogeminstallcocoapods.然后我面临以下错误:搜索后我设法通过运行此命令安装cocoapodssudogeminstall-n/usr/local/bin

  6. ios – 在没有iPhone6s或更新的情况下测试ARKit

    我在决定下载Xcode9之前.我想玩新的框架–ARKit.我知道要用ARKit运行app我需要一个带有A9芯片或更新版本的设备.不幸的是我有一个较旧的.我的问题是已经下载了新Xcode的人.在我的情况下有可能运行ARKit应用程序吗?那个或其他任何模拟器?任何想法或我将不得不购买新设备?解决方法任何iOS11设备都可以使用ARKit,但是具有高质量AR体验的全球跟踪功能需要使用A9或更高版本处理器的设备.使用iOS11测试版更新您的设备是必要的.

  7. 将iOS应用移植到Android

    我们制作了一个具有2000个目标c类的退出大型iOS应用程序.我想知道有一个最佳实践指南将其移植到Android?此外,由于我们的应用程序大量使用UINavigation和UIView控制器,我想知道在Android上有类似的模型和实现.谢谢到目前为止,guenter解决方法老实说,我认为你正在计划的只是制作难以维护的糟糕代码.我意识到这听起来像很多工作,但从长远来看它会更容易,我只是将应用程序的概念“移植”到android并从头开始编写.

  8. ios – 在Swift中覆盖Objective C类方法

    我是Swift的初学者,我正在尝试在Swift项目中使用JSONModel.我想从JSONModel覆盖方法keyMapper,但我没有找到如何覆盖模型类中的Objective-C类方法.该方法的签名是:我怎样才能做到这一点?解决方法您可以像覆盖实例方法一样执行此操作,但使用class关键字除外:

  9. ios – 在WKWebView中获取链接URL

    我想在WKWebView中获取tapped链接的url.链接采用自定义格式,可触发应用中的某些操作.例如HTTP://我的网站/帮助#深层链接对讲.我这样使用KVO:这在第一次点击链接时效果很好.但是,如果我连续两次点击相同的链接,它将不报告链接点击.是否有解决方法来解决这个问题,以便我可以检测每个点击并获取链接?任何关于这个的指针都会很棒!解决方法像这样更改addobserver在observeValue函数中,您可以获得两个值

  10. ios – 在Swift的UIView中找到UILabel

    我正在尝试在我的UIViewControllers的超级视图中找到我的UILabels.这是我的代码:这是在Objective-C中推荐的方式,但是在Swift中我只得到UIViews和CALayer.我肯定在提供给这个方法的视图中有UILabel.我错过了什么?我的UIViewController中的调用:解决方法使用函数式编程概念可以更轻松地实现这一目标.

返回
顶部