ionic cordova run ios - 导出失败,代码为 65 [英] ionic cordova run ios - Export failed with code 65

查看:19
本文介绍了ionic cordova run ios - 导出失败,代码为 65的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了对这个错误的研究.尝试运行 ionic cordova run ios --livereload 时出现以下错误:

[cordova] 使用非系统 Ruby.这可能会导致打包失败.[cordova] 如果您使用 RVM,请运行 `rvm use system`.[cordova] 如果你使用chruby,请运行`chruby system`.[cordova] 错误:在路径 '/Users/yassinezerouh/Desktop/doday2/platforms/ios/DoDay.xcarchive' 中找不到存档[cordova] ** 导出失败 **[科尔多瓦][cordova] CordovaError: Promise denied with non-error: 'Error code 65 for command: xcodebuild with args: -exportArchive,-archivePath,DoDay.xcarchive,-exportOptionsPlist,/Users/yassinezeriouh/Desktop/doday2/platforms/ios/exportOptions.plist,-exportPath,/Users/yassinezeriouh/Desktop/doday2/platforms/ios/build/device,-allowProvisioningUpdates'

  • 重新安装ios
  • 降级 ios
  • xcode 中的所有签名都是正确的
  • 尝试使用自定义 build.json
  • 重新安装所有插件

在我的设备上在 xcode 中运行该项目完美无缺,自 4 小时以来尝试解决此问题,希望您能提供帮助.我正在运行 iOS 12,使用 Xcode 10.1、cordova 8.1.2、ionic 4.40(项目实际上是在 ionic v3 上运行并且是上个月创建的)

我的 config.xml(除了 android & ios splash/icon 部分):

<?xml 版本='1.0' 编码='utf-8'?><widget id="io.zeriouh.censored" 版本="1.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"><name>审查过的</name><description>审查</description><作者 email="cen@so.red" href="http://ce.nsor.ed/">Yassine Zeriouh</author><content src="index.html"/><访问原点="*"/><allow-intent href="http://*/*"/><allow-intent href="https://*/*"/><allow-intent href="tel:*"/><allow-intent href="sms:*"/><allow-intent href="mailto:*"/><allow-intent href="geo:*"/>

解决方案

试试这个,因为 xcode 10.1 现在的构建方式与 ionic 3 不同

ionic cordova run ios -- --buildFlag="-UseModernBuildSystem=0" --livereload

I'm done with research on this error. I get following error when trying to run ionic cordova run ios --livereload:

[cordova]  Non-system Ruby in use. This may cause packaging to fail.
[cordova]  If you use RVM, please run `rvm use system`.
[cordova]  If you use chruby, please run `chruby system`.
[cordova]  error: archive not found at path '/Users/yassinezeriouh/Desktop/doday2/platforms/ios/DoDay.xcarchive'
[cordova]  ** EXPORT FAILED **
[cordova]  
[cordova]  CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -exportArchive,-archivePath,DoDay.xcarchive,-exportOptionsPlist,/Users/yassinezeriouh/Desktop/doday2/platforms/ios/exportOptions.plist,-exportPath,/Users/yassinezeriouh/Desktop/doday2/platforms/ios/build/device,-allowProvisioningUpdates'

  • re-installed ios
  • downgraded ios
  • all signing is correct in xcode
  • tried with custom build.json
  • re-installed all plugins

Running the project in xcode on my device works perfectly, tried to fix this issue since 4 hours, hope you can help. I'm running iOS 12, using Xcode 10.1, cordova 8.1.2, ionic 4.40 (project is actually running on ionic v3 and was created last month)

My config.xml (except android & ios splash/icon section):

<?xml version='1.0' encoding='utf-8'?>
<widget id="io.zeriouh.censored" version="1.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>Censored</name>
    <description>Censored</description>
    <author email="cen@so.red" href="http://ce.nsor.ed/">Yassine Zeriouh</author>
    <content src="index.html" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <preference name="ScrollEnabled" value="false" />
    <preference name="android-minSdkVersion" value="19" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashMaintainAspectRatio" value="false" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="100" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>
    <engine name="android" spec="6.3.0" />
    <plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
    <plugin name="cordova-plugin-statusbar" spec="^2.4.2" />
    <plugin name="cordova-plugin-device" spec="^2.0.2" />
    <plugin name="cordova-plugin-splashscreen" spec="^5.0.2" />
    <plugin name="cordova-plugin-ionic-webview" spec="^2.2.0">
        <variable name="ANDROID_SUPPORT_ANNOTATIONS_VERSION" value="27.+" />
    </plugin>
    <plugin name="cordova-plugin-ionic-keyboard" spec="^2.1.3" />
    <plugin name="cordova-plugin-inapppurchase" spec="~1.2.0" />
    <plugin name="com.omarben.inappreview" spec="~0.0.6" />
    <plugin name="cordova-plugin-admob-free" spec="~0.22.0" />
    <plugin name="cordova-plugin-email-composer" spec="~0.8.15" />
    <plugin name="cordova-plugin-local-notification" spec="~0.9.0-beta.2" />
    <plugin name="cordova-plugin-badge" spec="~0.8.7" />
    <plugin name="cordova-plugin-apprate" spec="~1.4.0" />
    <engine name="ios" spec="~4.5.5" />
</widget>

解决方案

try this beacuse the xcode 10.1 build in a diferent way to the ionic 3 now

ionic cordova run ios -- --buildFlag="-UseModernBuildSystem=0" --livereload

这篇关于ionic cordova run ios - 导出失败,代码为 65的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆