question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build fails for cordova-ios 6.1.0 with this plugin

See original GitHub issue

Bug Report

Unable to create build after updating to cordova-ios 6.1.0

Problem

After updating to cordova-ios 6.1.0, I added the ios platform and tried created build with ionic cordova build ios command. This gives the following error:

`warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target ‘APPNAME’ from project ‘APPNAME’)

** ARCHIVE FAILED **

The following build commands failed: CompileC /Users/akhilesh/Library/Developer/Xcode/DerivedData/APPNAME-bjbhutjdzzhywsgeqawthgfleslm/Build/Intermediates.noindex/ArchiveIntermediates/APPNAME/IntermediateBuildFilesPath/APPNAME.build/Debug-iphoneos/APPNAME.build/Objects-normal/arm64/CDVFileTransfer.o /Users/akhilesh/github/app-folder/platforms/ios/APPNAME/Plugins/cordova-plugin-file-transfer/CDVFileTransfer.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) xcodebuild: Command failed with exit code 65 [ERROR] An error occurred while running subprocess cordova.

    cordova build ios exited with exit code 65`

What is expected to happen?

The build process should complete without errors. When I remove this plugin, the app builds successfully.

What does actually happen?

The build process throws error and exits.

`warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target ‘APPNAME’ from project ‘APPNAME’)

** ARCHIVE FAILED **

The following build commands failed: CompileC /Users/akhilesh/Library/Developer/Xcode/DerivedData/APPNAME-bjbhutjdzzhywsgeqawthgfleslm/Build/Intermediates.noindex/ArchiveIntermediates/APPNAME/IntermediateBuildFilesPath/APPNAME.build/Debug-iphoneos/APPNAME.build/Objects-normal/arm64/CDVFileTransfer.o /Users/akhilesh/github/app-folder/platforms/ios/APPNAME/Plugins/cordova-plugin-file-transfer/CDVFileTransfer.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) xcodebuild: Command failed with exit code 65 [ERROR] An error occurred while running subprocess cordova.

    cordova build ios exited with exit code 65`

Information

The build process works fine if I remove the plugin. The issue only arises when this plugin is added.

Command or Code

  • Create an ionic 3 project.
  • Add cordova-plugin-file-transfer: ionic cordova plugin add cordova-plugin-file-transfer
  • Add cordova-ios@6.1.0: ionic cordova platform add ios@6.1.0
  • Create build: ionic cordova build ios

Environment, Platform, Device

Environment: Mac OS Catalina v10.15.5 (19F101) on MacBook Pro (Retina, 15-inch, Early 2013) Platform: iOS 11.0 and above Device: Creating build for iPhone

Version information

Ionic:

Ionic CLI : 5.4.16 Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.2.4

Cordova:

Cordova CLI : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 8.1.0, ios 6.1.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 25 other plugins)

Utility:

cordova-res (update available: 0.15.1) : 0.10.0 native-run (update available: 1.0.0) : 0.2.9

System:

Android SDK Tools : 26.1.1 (/Users/akhilesh/Library/Android/sdk) ios-deploy : 1.9.4 ios-sim : 8.0.2 NodeJS : v10.16.3 (/usr/local/Cellar/node@10/10.16.3/bin/node) npm : 6.9.0 OS : macOS Catalina Xcode : Xcode 11.5 Build version 11E608c

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
breautekcommented, Nov 17, 2021

The plugin is deprecated…

check this blog post: https://cordova.apache.org/blog/2017/10/18/from-filetransfer-to-xhr2.html

The file transfer actually has became un-deprecated but we haven’t build a new release for it yet, so the current release is still the deprecated release. This plugin release is being blocked by some dependency, particularly the cordova-plugin-file plugin, which has failing tests.

The master branch of this plugin does have many issues resolved regarding usage on cordova-ios@6.

0reactions
pixellet14commented, Jul 22, 2022

year 2022…so what’s the solution now?

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS build fails, produces wrong project name for Cordova 6.1.0
looking at platformis/ios folder the name of the folder is correctly set at first, but after it's changed to HelloCordova. Install complete for ......
Read more >
Cordova iOS 6.1.0 Released!
The Cordova iOS 6.0.0 release was unable to be published to CocoaPods due to issues with the Pod spec. These have been addressed...
Read more >
Command failed with exit code 65 - Cordova-ios 6.1.0 and ...
Hi there,. I am getting a compilation error on cordova-ios 6.1.0 and Angular 9. XCode 11.5. The latest stack.
Read more >
Getting "cross origin requests are only supported for http" error ...
Try to use Cordova-ios 6.0.0 or 6.1.0 and install following plugin from github cordova plugin add ...
Read more >
BlackBerry Dynamics SDK for Cordova Release Notes
release of the BlackBerry Dynamics SDK for iOS version 6.1.0.x. ... If you remove cordova-plugin-bbd-launcher and then build the app, the build fails....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found