简体   繁体   English

ionic cordova run ios - 导出失败,代码为 65

[英]ionic cordova run ios - Export failed with code 65

I'm done with research on this error.我已经完成了对这个错误的研究。 I get following error when trying to run ionic cordova run ios --livereload :尝试运行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重装ios
  • downgraded ios降级的ios
  • all signing is correct in xcode所有签名在 xcode 中都是正确的
  • tried with custom build.json尝试使用自定义 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.在我的设备上在 xcode 中运行该项目工作正常,自 4 小时以来一直试图解决此问题,希望您能提供帮助。 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)我正在运行 iOS 12,使用 Xcode 10.1、cordova 8.1.2、ionic 4.40(项目实际上是在 ionic v3 上运行并且是上个月创建的)

My config.xml (except android & ios splash/icon section):我的 config.xml (android & ios splash/icon 部分除外):

<?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>

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

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

There is an issue with "cordova-ios": "4.5.5" . "cordova-ios": "4.5.5" Try following below steps.尝试按照以下步骤操作。

  • ionic cordova platform rm ios
  • npm uninstall cordova-ios
  • npm install cordova-ios@4.4.0
  • ionic cordova platform add ios@4.4.0
  • ionic cordova run ios --livereload

For me it worked after changing my cordova-ios version from 4.5.5 to 4.4.0.对我来说,它在将我的 cordova-ios 版本从 4.5.5 更改为 4.4.0 后起作用了。

  1. in package.json I changed "cordova-ios": "4.5.5" to "cordova-ios": "4.4.0"package.json我将"cordova-ios": "4.5.5"改为"cordova-ios": "4.4.0"
  2. in config.xml I changed <engine name="ios" spec="4.5.5" /> to <engine name="ios" spec="4.4.0" />在 config.xml 中,我将<engine name="ios" spec="4.5.5" />更改为<engine name="ios" spec="4.4.0" />
  3. rm -rf node_modules/ platforms/ios/
  4. npm i
  5. ionic cordova build ios

I have the same problem when I'm building for ios with "prod" tag.当我使用“prod”标签为 ios 构建时,我遇到了同样的问题。

I have:我有:

  • MacOS catalina 10.5.4 MacOS 卡特琳娜 10.5.4
  • Xcode version 12.2 Xcode 12.2 版
  • cordova-ios 6.0.0科尔多瓦-ios 6.0.0

For me the solution that worked was first sign the app on xcode after the first build issue (open platform/ios with xcode and sign the app).对我来说,有效的解决方案是在第一个构建问题之后首先在 xcode 上签署应用程序(使用 xcode 打开平台/ios 并签署应用程序)。 Then I build with the commands that people suggest here, but I have to add the "--device" tag also.然后我使用人们在这里建议的命令进行构建,但我还必须添加“--device”标签。 After that work good :)在那之后工作很好:)

ionic cordova run ios --prod --release --buildFlag="-UseModernBuildSystem=0"  --device

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 离子 ios 构建失败,代码为 65 cordova-plugin-firebase-lib - ionic ios build failed with code 65 cordova-plugin-firebase-lib 离子 Cordova 构建以 xcodebuild 结束:命令失败,退出代码 65 - Ionic Cordova Build Ending With xcodebuild: Command failed with exit code 65 生成命令失败错误代码65 Ionic(iOS) - Build Commands Failed Error Code 65 Ionic (iOS) cordova 运行时出现 ios 错误.. 命令的错误代码 65:xcodebuild with args: - cordova run with ios error .. Error code 65 for command: xcodebuild with args: 科尔多瓦-插件-fcm和离子平台添加ios导致错误代码65 - cordova-plugin-fcm and ionic platform add ios causes error code 65 离子构建ios错误代码65 - Ionic build ios error code 65 离子生成/运行ios失败,错误代码为65。如何解决? - Ionic build/run ios fails with error code 65. How to fix? 错误:命令的错误代码 65:xcodebuild with args - 试图在 ios 设备上运行 ionic 项目 - Error: Error code 65 for command: xcodebuild with args - trying to run ionic project on ios device Xcodebuild 失败退出代码 65 - ios - Xcodebuild failed exit code 65 - ios Cordova Phonegap“导出失败”错误代码70在构建ios时 - Cordova Phonegap “Export Failed” error code 70 While building ios
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM