我一直试图解决这个问题,但隧道尽头似乎没有任何亮点,因此在这里尝试一下......希望你能提供帮助.
我有一个离子项目.Running via ionic serve给出了我期望的结果,没问题.但是,在运行命令时ionic cordova run ios -lc,我收到一个错误,打破了构建过程.我收到的错误如下:
[cordova] error: archive not found at path '/Users/path-to-app/platforms/ios/demoapp.xcarchive'
[cordova] ** EXPORT FAILED **
[cordova]
[cordova] (node:5866) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error code 65 for command: xcodebuild with args: -exportArchive,-archivePath,demoapp.xcarchive,-exportOptionsPlist,/Users/path-to-app/platforms/ios/exportOptions.plist,-exportPath,/Users/path-to-app/platforms/ios/build/device
[cordova] (node:5866) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
我在这里看到2个不同的错误:找不到存档和弃用问题.不知道哪一个打破了构建但似乎无法为其中任何一个找到解决方案.
离子信息:
Ionic:
ionic (Ionic CLI) : 4.1.2 …Run Code Online (Sandbox Code Playgroud)