cordova-plugin-file-transfer: cordova build iOS fails
Bug Report
Problem
What is expected to happen?
the build of iOS via cordova build ios
should work correctly
What does actually happen?
it throws an error
** BUILD FAILED **
The following build commands failed:
CompileC /Users/user926670/Library/Developer/Xcode/DerivedData/Denúncia_Estacionamento-cakwmvmhffwxigdavpvkssbcuvdh/Build/Intermediates.noindex/Denúncia\ Estacionamento.build/Debug-iphonesimulator/Denúncia\ Estacionamento.build/Objects-normal/x86_64/CDVFileTransfer.o /Users/user926670/dev/form-for-parking-violation/platforms/ios/Denúncia\
Estacionamento/Plugins/cordova-plugin-file-transfer/CDVFileTransfer.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild: Command failed with exit code 65
when I remove this plugin the build succeeds
Information
$ cordova info
Cordova Packages:
cli: 10.0.0
common: 4.0.2
create: 3.0.0
lib: 10.0.0
common: 4.0.2
fetch: 3.0.0
serve: 4.0.0
Project Installed Platforms:
ios: 6.1.1
Project Installed Plugins:
cordova-pdf-generator: 2.1.1
cordova-plugin-app-version: 0.1.12
cordova-plugin-camera: 5.0.1
cordova-plugin-compat: 1.2.0
cordova-plugin-device: 2.0.3
cordova-plugin-email-composer: 0.9.2
cordova-plugin-file-transfer: 1.7.1
cordova-plugin-file: 6.0.2
cordova-plugin-geolocation: 4.1.0
cordova-plugin-inappbrowser: 4.1.0
cordova-plugin-is-debug: 1.0.0
cordova-plugin-mobile-ocr: 3.1.2
cordova-plugin-network-information: 2.0.2
cordova-plugin-screen-orientation: 3.0.2
cordova-plugin-simple-image-resizer: 0.1.1
cordova-plugin-splashscreen: 6.0.0
cordova-plugin-statusbar: 2.4.3
cordova-plugin-whitelist: 1.3.4
info.protonet.imageresizer: 0.1.1
Environment:
OS: macOS Catalina 10.15.7 (19H114) (darwin 19.6.0) x64
Node: v12.16.2
npm: 6.14.4
ios Environment:
xcodebuild:
Xcode 12.3
Build version 12C33
Project Setting Files:
config.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.form.parking.violation" version="2.6.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Denúncia Estacionamento</name>
<description>
Envio de queixa de estacionamento ilegal a autoridade competente
</description>
<author email="joao.pimentel.ferreira@gmail.com" href="https://www.joaopimentel.com/">
João Pimentel Ferreira
</author>
<content src="index.html"/>
<icon height="512" src="res/icon/universal/icon4_512x512_playstore.png" width="512"/>
<icon density="xhdpi" height="196" src="res/icon/universal/icon4_XHDPI_196x196_320dpi.png" width="196"/>
<icon density="xxxhdpi" height="192" src="res/icon/universal/icon4_XXXHDPI_192x192_640dpi.png" width="192"/>
<icon density="xxhdpi" height="144" src="res/icon/universal/icon4_XXHDPI_144x144_480dpi.png" width="144"/>
<icon density="hdpi" height="72" src="res/icon/universal/icon4_HDPI_72x72_240dpi.png" width="72"/>
<icon density="mdpi" height="48" src="res/icon/universal/icon4_MDPI_48x48_160dpi.png" width="48"/>
<access origin="*"/>
<allow-navigation href="*"/>
<allow-intent href="http://*/*"/>
<allow-intent href="https://*/*"/>
<preference name="windows-target-version" value="10.0"/>
<preference name="windows-phone-target-version" value="10.0"/>
<preference name="iosExtraFilesystems" value="library,library-nosync,documents,documents-nosync,cache,bundle"/>
<preference name="AndroidExtraFilesystems" value="files,files-external,documents,sdcard,cache,cache-external,assets"/>
<preference name="StatusBarOverlaysWebView" value="false"/>
<preference name="StatusBarBackgroundColor" value="#FFFFFF"/>
<preference name="StatusBarStyle" value="blacktranslucent"/>
<hook src="hooks/importNpmPackages.js" type="before_prepare"/>
<hook src="hooks/copyCredentials.js" type="before_prepare"/>
<hook src="hooks/convertHbsToHtml.js" type="after_prepare"/>
<hook src="hooks/minifyFiles.js" type="after_prepare"/>
<platform name="android">
<preference name="android-minSdkVersion" value="22"/>
<preference name="android-targetSdkVersion" value="29"/>
<allow-intent href="market:*"/>
<icon height="512" src="res/icon/android/512.png" width="512"/>
<icon density="xhdpi" height="192" src="res/icon/android/192.png" width="192"/>
<icon density="xxxhdpi" height="192" src="res/icon/android/192.png" width="192"/>
<icon density="xxhdpi" height="144" src="res/icon/android/144.png" width="144"/>
<icon density="hdpi" height="72" src="res/icon/android/72.png" width="72"/>
<icon density="mdpi" height="48" src="res/icon/android/48.png" width="48"/>
<splash density="hdpi" src="res/screen/android/screen-hdpi-portrait.png"/>
<splash density="port-hdpi" src="res/screen/android/screen-hdpi-portrait.png"/>
<splash density="ldpi" src="res/screen/android/screen-ldpi-portrait.png"/>
<splash density="port-ldpi" src="res/screen/android/screen-ldpi-portrait.png"/>
<splash density="mdpi" src="res/screen/android/screen-mdpi-portrait.png"/>
<splash density="port-mdpi" src="res/screen/android/screen-mdpi-portrait.png"/>
<splash density="xhdpi" src="res/screen/android/screen-xhdpi-portrait.png"/>
<splash density="port-xhdpi" src="res/screen/android/screen-xhdpi-portrait.png"/>
</platform>
<platform name="ios">
<allow-intent href="itms:*"/>
<allow-intent href="itms-apps:*"/>
</platform>
</widget>
package.json:
--- Start of Cordova JSON Snippet ---
{
"plugins": {
"cordova-plugin-geolocation": {
"GPS_REQUIRED": "true"
},
"cordova-plugin-email-composer": {},
"info.protonet.imageresizer": {},
"cordova-plugin-simple-image-resizer": {
"ANDROID_EXIFINTERFACES_VERSION": "27.+"
},
"cordova-plugin-file-transfer": {},
"cordova-plugin-file": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-screen-orientation": {},
"cordova-plugin-device": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-network-information": {},
"cordova-plugin-compat": {},
"cordova-pdf-generator": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-is-debug": {},
"cordova-plugin-app-version": {},
"cordova-plugin-camera": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"cordova-plugin-mobile-ocr": {}
},
"platforms": [
"browser",
"android",
"ios"
]
}
--- End of Cordova JSON Snippet ---
Command or Code
cordova build ios
Environment, Platform, Device
iOS
Version information
macOS, standard cordova
Checklist
- I searched for existing GitHub issues
- I updated all Cordova tooling to most recent version
- I included all the necessary information above
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (5 by maintainers)
cordova plugin add https://github.com/apache/cordova-plugin-file-transfer.git#master
BTW, @klochko7 did you remove the old plugin version?
Hi @jfoclpf thank you for this HOT fix. I was facing the same issue but after removing my current plugin then install
cordova plugin add https://github.com/apache/cordova-plugin-file-transfer.git#master
version fixed my issue on IOS.@timbru31 It looks like they are using the npm released version.
The supplied printout of the
cordova info
command showcordova-plugin-file-transfer: 1.7.1
.If they were using the git’s main branch, it should show
2.0.0-dev
I blieve.I guess they can try the git repo version, since the npm release does not work with
cordova-ios@6.x
, as you pointed out.