Closed akshukla07 closed 3 years ago
Duplicate of #258. Please note that this plugin is deprecated since 2017 and it's unlikely to receive a new update.
So what is the solution for the file transfer plugin any other alternate plugin for file transfer?
The plugin is deprecated..
check this blog post: https://cordova.apache.org/blog/2017/10/18/from-filetransfer-to-xhr2.html
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.
Is this going to be released, i am still having troubles building for ios@6.2.0 ?
year 2022.....so what's the solution now?
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.
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.
Information
The build process works fine if I remove the plugin. The issue only arises when this plugin is added.
Command or Code
ionic cordova plugin add cordova-plugin-file-transfer
ionic cordova platform add ios@6.1.0
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