簡體   English   中英

科爾多瓦無法構建iOS

[英]Cordova can't build ios

我有Cordova版本(8.0.0)

我正在嘗試構建ios,但顯示消息但沒有任何錯誤,並停止了構建。

> Building for iPhone X Simulator Building project: /Users/FaisalAlzahrani/Customer_Prod_3/platforms/ios/Ajeer-Client.xcworkspace   Configuration: Debug    Platform: emulator Build settings from command line:
    CONFIGURATION_BUILD_DIR = /Users/FaisalAlzahrani/Customer_Prod_3/platforms/ios/build/emulator
    SDKROOT = iphonesimulator12.1
    SHARED_PRECOMPS_DIR = /Users/FaisalAlzahrani/Customer_Prod_3/platforms/ios/build/sharedpch Build settings from configuration file '/Users/FaisalAlzahrani/Customer_Prod_3/platforms/ios/cordova/build-debug.xcconfig':
    CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
    CODE_SIGN_ENTITLEMENTS = $(PROJECT_DIR)/$(PROJECT_NAME)/Entitlements-$(CONFIGURATION).plist
    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)"
    OTHER_LDFLAGS = -ObjC
    SWIFT_OBJC_BRIDGING_HEADER = $(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h

在此處輸入圖片說明

我通過使用以下命令在構建項目中解決了問題

cordova build ios --buildFlag="-UseModernBuildSystem=0"

在Xcode 10中,可以從Xcode文件->項目/工作區設置中激活新的構建設置,其中的選項可在舊版系統和新的構建系統之間切換。 要為iOS平台手動構建,我們必須使用build flag =“-UseModernBuildSystem = 0”參考: https : //github.com/apache/cordova-ios/issues/407

cordova build ios --buildFlag="-UseModernBuildSystem=0"
This will works !
Below error I was facing used the same solution
4001009: Invalid .ipa file: missing embedded mobileprovisionvalid .ipa file: missing embedded mobileprovision facing same problem.

Package.json file can also be included the below flag
"buildFlag": [
  "-UseModernBuildSystem=0"
]

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM