I am trying to use this plugin:
Cordova Plugin Fingerprint All-In-One
It uses SWIFT. The documentation says: #Platforms
Android - Minimum SDK 23
iOS - XCode 9.2 or higher required
Please set <preference name="UseSwiftLanguageVersion" value="4.0" /> in your config.xml*
When I use VoltBuilder I get:
Build failed!
error: Value for SWIFT_VERSION cannot be empty. (in target 'Family_Medical_Diary' from project 'Family_Medical_Diary')
Build ID: b898bc19-02de-4c9f-b72d-1466db23098f<p><br><a class="btn btn-primary" href="https://apps.volt.build/b898bc19-02de-4c9f-b72d-1466db23098f/voltbuilder.log
If not, you may want to open an issue there. The author of the control is well known in the Cordova community. We’ll be happy to work with him to help find a resolution.
Same issue here: “UserError: error: Value for SWIFT_VERSION cannot be empty. (in target 'MyAppName' from project 'MyAppName')”
(My issue is triggered by a different plugin, but looks like the same underlying issue.)
After some googling, it seems this is fixed by providing cordova/xcode with a “build flag”.
I don’t see a way to specify this in config.xml, but looks like you can with a build.json in the project root. Unfortunately, I tried adding this build.json to my root… { "ios": { "debug": { "buildFlag": ["SWIFT_VERSION = 4.0", "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES"] }, "release": { "buildFlag": ["SWIFT_VERSION = 4.0", "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES"] } } }
…but I get the same error. Are build.json files like this in the project root supported (by Voltbuilder) in theory? Thanks!