2016-09-14 54 views
3

我有麻煩在IOS進行構建,當我在做Android的構建沒有表現出任何problema.No沒有顯示出錯誤是隻掛有以下消息:離子建立IOS粘

ionic build ios 
Running command: /Users/kaos/Documents/Proyectos/Ionic/voxMonitor/hooks/after_prepare/010_add_platform_class.js /Users/kaos/Documents/Proyectos/Ionic/voxMonitor 


add to body class: platform-ios 

Building project: /Users/kaos/Documents/Proyectos/Ionic/voxMonitor/platforms/ios/voxMonitor.xcodeproj 

    Configuration: Debug 
    Platform: emulator 


2016-09-14 00:57:11.666 xcodebuild[81377:2780361] [MT] PluginLoading: Required plug-in compatibility UUID 8A66E736-A720-4B3C-92F1-33D9962C69DF for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs 

2016-09-14 00:57:11.668 xcodebuild[81377:2780361] [MT] PluginLoading: Required plug-in compatibility UUID 8A66E736-A720-4B3C-92F1-33D9962C69DF for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMQuickHelp.xcplugin' not present in DVTPlugInCompatibilityUUIDs 

2016-09-14 00:57:11.669 xcodebuild[81377:2780361] [MT] PluginLoading: Required plug-in compatibility UUID 8A66E736-A720-4B3C-92F1-33D9962C69DF for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs 

Build settings from command line: 

    CONFIGURATION_BUILD_DIR = /Users/kaos/Documents/Proyectos/Ionic/voxMonitor/platforms/ios/build/emulator 
    SDKROOT = iphonesimulator10.0 
    SHARED_PRECOMPS_DIR = /Users/kaos/Documents/Proyectos/Ionic/voxMonitor/platforms/ios/build/sharedpch 

Build settings from configuration file '/Users/kaos/Documents/Proyectos/Ionic/voxMonitor/platforms/ios/cordova/build-debug.xcconfig': 
    CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES 
    CODE_SIGN_IDENTITY = iPhone Developer 
    ENABLE_BITCODE = NO 
    GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 
    HEADER_SEARCH_PATHS = "$(TARGET_BUILD_DIR)/usr/local/lib/include" "$(OBJROOT)/UninstalledProducts/include" "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" "$(BUILT_PRODUCTS_DIR)" 
    IPHONEOS_DEPLOYMENT_TARGET = 8.0 
    OTHER_LDFLAGS = -ObjC 
    SWIFT_OBJC_BRIDGING_HEADER = $(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h 
    TARGETED_DEVICE_FAMILY = 1,2 

當我嘗試打開文件xcodeproj,xcode不會啓動並無限期地等待強制退出。

我離子信息:

Your system information: 

    Cordova CLI: 6.3.1 
    Ionic Framework Version: 1.3.1 
    Ionic CLI Version: 2.0.0-beta.37 
    Ionic App Lib Version: 2.0.0-beta.20 
    ios-deploy version: 1.8.6 
    ios-sim version: 5.0.8 
    OS: Mac OS X El Capitan 
    Node Version: v6.5.0 
    Xcode version: Xcode 8.0 Build version 8A218a 

值得一提的是,我目前使用的MacOS塞拉利昂通用和Xcode的8克。

編輯:當創建一個新項目並用我的項目中的版本替換www目錄時,我可以構建ios,但是一旦修改了任何文件,我就不能再編譯了,而是掛在上面的屏幕上。

+0

我明白了!你有沒有解決它? – keldar

+0

目前還停留在此。 –

+0

發佈到論壇離子https://forum.ionicframework.com/t/unable-to-build-ios-on-ionic-2/65911 –

回答

1

按照以下步驟(而繼之前這些步驟確保你已經在系統上安裝IOS SDK

  1. 用命令刪除鉤$ionic hooks remove
  2. 消除了對平臺與命令現在$ionic platform remove ios
  3. 添加掛鉤命令$ionic hooks add
  4. 現在添加命令平臺$ionic platform ios
  5. 現在創建命令建立$ionic build ios
  6. 現在用命令$ionic run ios

我相信這些措施將幫助你運行你的應用程序。

+0

如果我有SDK,請按照步驟操作,但不起作用。 –