Open danish1023 opened 5 years ago
"SWIFT_VERSION" error on ios (phonegap build). Please help
@bitjson Error on Phonegap Build IOS: The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.
Please help.
For me helped to paste into config.xml
<preference name = "UseSwiftLanguageVersion" value = "4.2" />
For me helped to paste into config.xml
<preference name = "UseSwiftLanguageVersion" value = "4.2" />
Can you please be more specific? Here is the result I got after PGB building process failed:
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. Supported values are: 3.0, 4.0, 4.2. This setting can be set in the build settings editor.
Thanks WellBload!
Is there a swift 4 version out there? Otherwise, since I want to stick with Phonegap Build, what are my options? Thanks!
For PGB I added to config.xml
`
`
and plugin definition:
<plugin name="cordova-plugin-qrscanner" source="npm" />
PGP build passed successfully for iOS and Android and plugin works!
Which phonegap-version are you using?
cli-8.1.1
@WellBload
Can you please share your config.xml file so that we can identify where we are doing wrong, as we all are trying but failed.
Same phonegap version that I'm using... weird. Also, I don't understand why you specify swift 4.2 since the plugin requires swift 3. As @danish1023 suggested, can you please share your config file. Several of us are losing their minds right now. :) Thank you so much!!
This is iOS part of my config.xml:
<platform name="ios">
<preference name="phonegap-version" value="cli-8.1.1" />
<preference name="BackupWebStorage" value="cloud" />
<preference name="webviewbounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="SplashScreenDelay" value="10000" />
<preference name="SuppressesLongPressGesture" value="true" />
<preference name="EnableViewportScale" value="false" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="deployment-target" value="9.0.0" />
<preference name="UseSwiftLanguageVersion" value="4.2" />
</platform>
And plugins:
<!--Plugins-->
<plugin name="cordova-plugin-dialogs" source="npm" />
<plugin name="cordova-plugin-device" source="npm" />
<plugin name="cordova-plugin-device-orientation" source="npm" />
<plugin name="cordova-plugin-splashscreen" source="npm" />
<plugin name="cordova-plugin-network-information" source="npm" />
<plugin name="cordova-plugin-networkinterface" source="npm" />
<plugin name="cordova-plugin-whitelist" source="npm" />
<plugin name="cordova-plugin-android-gpsdetect" source="npm" />
<plugin name="cordova-plugin-inappbrowser" source="npm" />
<plugin spec="https://github.com/whiteoctober/cordova-plugin-app-version.git" source="git" />
<plugin name="cordova-plugin-geolocation" source="npm" />
<plugin name="cordova-plugin-statusbar" source="npm" />
<plugin name="cordova-plugin-qrscanner" source="npm" />
<plugin spec="https://github.com/fasjunior/cordova-plugin-fingerprint-aio.git" source="git" />
Good luck
Thank you @WellBload but I still couldn't make it work. Tired of it. So I'll switch to phonegap-plugin-barcodescanner. I appreciate your time!
Can Author or Anybody can make this plugin pgb compatible. Needed urgently. I can pay for this. Please help.