CordovaError:承诺被非错误拒绝:错误代码 65
Posted
技术标签:
【中文标题】CordovaError:承诺被非错误拒绝:错误代码 65【英文标题】:CordovaError: Promise rejected with non-error: Error code 65 【发布时间】:2018-11-03 19:19:23 【问题描述】:我的应用名为 BookHeart。它是由 Ionic3 使用 "cordova-ios": "^4.5.5" 构建的。
当我运行“ionic cordova build ios”时,我收到错误报告:
> ionic-app-scripts build --target cordova --platform ios
[03:10:01] ionic-app-scripts 3.2.0
......
[03:10:21] lint finished in 852 ms
> cordova build ios
Building project: /Users/dc/bookheart/platforms/ios/BookHeart.xcworkspace
Configuration: Debug
Platform: device
User defaults from command line:
IDEArchivePathOverride = /Users/dc/bookheart/platforms/ios/BookHeart.xcarchive
Build settings from command line:
CONFIGURATION_BUILD_DIR = /Users/dc/bookheart/platforms/ios/build/device
SHARED_PRECOMPS_DIR = /Users/dc/bookheart/platforms/ios/build/sharedpch
Build settings from configuration file '/Users/dc/bookheart/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
error: archive not found at path '/Users/dc/bookheart/platforms/ios/BookHeart.xcarchive'
** EXPORT FAILED **
CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -exportArchive,-archivePath,BookHeart.xcarchive,-exportOptionsPlist,/Users/dc/bookheart/platforms/ios/exportOptions.plist,-exportPath,/Users/dc/bookheart/platforms/ios/build/device'
at cli.catch.err (/Users/dc/.nvm/versions/node/v8.12.0/lib/node_modules/cordova/bin/cordova:30:15)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
[ERROR] An error occurred while running subprocess cordova.
cordova build ios exited with exit code 1.
请注意有** EXPORT FAILED **。
【问题讨论】:
您是否尝试过相同的命令但打开了 Xcode?span> 是的,我确实试过了。 【参考方案1】:如果在运行命令时连接我的 iphone,它将失败。断开 iphone,它可以工作。
【讨论】:
断开我的手机有效。世界乒联!哎呀,苹果和 iOS 让我很沮丧 -_- 我有同样的问题你知道是什么原因吗? 非常感谢!这很明显,因为它一直在说安装 ios-deploy。在这里,我在整个宇宙中寻找到底出了什么问题大声笑 您应该接受自己的答案,这样这个问题才会显示为已解决。对我也有用。以上是关于CordovaError:承诺被非错误拒绝:错误代码 65的主要内容,如果未能解决你的问题,请参考以下文章
如何在 Mocha 测试中调试“错误:无理由或错误理由拒绝承诺”?