gpt4 book ai didi

swift - Cordova错误: Promise rejected with non-error: 'Error code 70 for command:

转载 作者:行者123 更新时间:2023-11-30 10:34:30 33 4
gpt4 key购买 nike

背景:

  • Xcode 版本 11.1
  • 使用 anguar 开发的项目
  • 仅使用 cordova CLI 生成 iOS iPAD 版本
  • 应用仅在 iPad 设备上运行

步骤:

在 Mac 终端实例上运行此命令

sudo cordova 构建 ios

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

低于错误

我得到的实际结果:

构建项目:/Users/ac/Downloads/Cordova/projects/TabProject/platforms/ios/TabApp.xcworkspace 配置:调试 平台:模拟器从命令行build设置: CONFIGURATION_BUILD_DIR =/Users/ac/Downloads/Cordova/projects/TabProject/platforms/ios/build/emulator SDKROOT = iphonesimulator13.1 SHARED_PRECOMPS_DIR =/Users/ac/Downloads/Cordova/projects/InviteTabProject/platforms/ios/build/sharedpch

从配置文件“/Users/ac/Downloads/Cordova/projects/TabProject/platforms/ios/cordova/build-debug.xcconfig”build设置: CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = 是 CODE_SIGN_ENTITLMENTS = $(PROJECT_DIR)/$(PROJECT_NAME)/权利-$(CONFIGURATION).plist CODE_SIGN_IDENTITY = iPhone 开发者 ENABLE_BITCODE = 否 GCC_PREPROCESSOR_DEFINITIONS = 调试=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

xcodebuild:错误:无法找到与提供的目标说明符匹配的目标: { 平台:iOS 模拟器,操作系统:最新,名称:iPhone 11 Pro Max }

Available destinations for the "InviteTabApp" scheme:
{ platform:iOS Simulator, id:60F220FB-8A96-47FC-9151-49424F7ACD16, OS:9.0, name:iPad 2 }
{ platform:iOS Simulator, id:DAD00D9C-6147-4E55-A35C-2B94D36F4DF4, OS:9.0, name:iPad Air }
{ platform:iOS Simulator, id:6C143FB5-9DC5-4DFC-9B2E-0CC7CC6D5EF9, OS:13.1, name:iPad Air (3rd generation) }
{ platform:iOS Simulator, id:000D0612-6879-4A9D-8508-A5932C5E0007, OS:9.0, name:iPad Air 2 }
{ platform:iOS Simulator, id:D3FAE4AF-F472-438F-99CF-D41EB0EE4662, OS:13.1, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:D3EC08A7-1690-4934-BF49-A788CC67609C, OS:13.1, name:iPad Pro (11-inch) }
{ platform:iOS Simulator, id:989159C3-CF94-40D9-8FDF-EF4E2B096426, OS:13.1, name:iPad Pro (12.9-inch) (3rd generation) }
{ platform:iOS Simulator, id:7F48ADCE-9E3F-4907-AD76-06E726ED93A6, OS:9.0, name:iPad Retina }

Ineligible destinations for the "TabApp" scheme:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Generic iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Generic iOS Simulator Device }
CordovaError: promise 被拒绝且无错误:'命令的错误代码 70:带有参数的 xcodebuild:-xcconfig,/Users/ac/Downloads/Cordova/projects/InviteTabProject/platforms/ios/cordova/build-debug.xcconfig ,-workspace,TabApp.xcworkspace,-scheme,TabApp,-configuration,调试,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 11 Pro Max,build,CONFIGURATION_BUILD_DIR=/Users/ac/Downloads/Cordova/projects/TabProject/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/ac/Downloads/Cordova/projects/TabProject/platforms/ios/build/sharedpch' 在 cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15) 在 process.internalTickCallback (内部/process/next_tick.js:77:7)

实际结果:

应该成功生成构建。

最佳答案

检查您的 Cordova 版本。尝试更新您的 Cordova 版本高于 7.1.0,并重写您的 build.json。 Cordova Doc iOS build.json

关于swift - Cordova错误: Promise rejected with non-error: 'Error code 70 for command:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58372062/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com