【问题标题】:Cordova can't build ios科尔多瓦无法构建 ios
【发布时间】:2019-05-28 01:59:52
【问题描述】:

我有 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

【问题讨论】:

  • 你能发布更多信息吗?
  • 这是我拥有的所有信息 :( 我尝试构建项目很多次,但没有错误消息显示,所以我无法调查问题

标签: jquery ios cordova jquery-mobile


【解决方案1】:

我在构建项目时使用以下命令解决了这个问题

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

【讨论】:

  • 在我的例子中,构建不会停止,而是在上述步骤中冻结。我试过了,它解决了我的问题。
【解决方案2】:

从 Xcode 10 开始,可以从 Xcode Files-> Project/Workspace Settings 激活新的构建设置,其中选项可以在旧系统和新构建系统之间切换。 要为 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"
]

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-22
    • 1970-01-01
    相关资源
    最近更新 更多