NiklasMerz / cordova-plugin-fingerprint-aio

Cordova Plugin for fingerprint sensors (and FaceID) with Android and iOS support
https://www.npmjs.com/package/cordova-plugin-fingerprint-aio
MIT License
323 stars 189 forks source link

In iOS phonegap build is error #140

Closed kalaiprakash93 closed 5 years ago

kalaiprakash93 commented 5 years ago

After added this plugin phonegap build is not successful.Please help me out of this. I have attached my config.xml file code.and errors. capture6

LOG URL : https://build.phonegap.com/apps/3435374/logs/ios/build/

`<?xml version='1.0' encoding='utf-8'?>

Device Features A basic Framework7 template for PhoneGap. Apache Cordova Team `
NiklasMerz commented 5 years ago

I never used phonegap build and I don´t know if it is compatibile.

Could you please post the log? The link does not work without authentication.

fasjunior commented 5 years ago

I'm having the same problem, compile for android but not for ios. I think Phonegap Build does not support the Swift language, other plugins that use this language are having the same problem: https://forums.adobe.com/message/10430720#10430720

Log:

**=== BUILD TARGET Dominus OF PROJECT Dominus WITH CONFIGURATION Release ===

Check dependencies 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. 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.

ARCHIVE FAILED

The following build commands failed: Check dependencies (1 failure) Error code 65 for command: xcodebuild with args: -xcconfig,/private/project/cordova/build-release.xcconfig,-workspace,Dominus.xcworkspace,-scheme,Dominus,-configuration,Release,-destination,generic/platform=iOS,-archivePath,Dominus.xcarchive,archive,CONFIGURATION_BUILD_DIR=/private/project/build/device,SHARED_PRECOMPS_DIR=/private/project/build/sharedpch,-UseModernBuildSystem=0**

NiklasMerz commented 5 years ago

Did you try <preference name="UseSwiftLanguageVersion" value="3.0" /> in you config.xml file?

This could help. Other swift versions may work, too.

fasjunior commented 5 years ago

Yes, but not working. I solved it in a different way, I include a bridge header in plugin.xml:

<platform name="ios">
...
<header-file src="src/ios/Bridging-Header.h" />
...
</platform>

And the Bridging-Header.h file consists of:

`// // Use this file to import your target's public headers that you would like to expose to Swift. //

import <Cordova/CDV.h>`

I made a fork of your project in mine and changed it: https://github.com/fasjunior/cordova-plugin-fingerprint-aio.git

NiklasMerz commented 5 years ago

Would you like to create a pull request? I could test this and the header shouldn´t hurt.

fasjunior commented 5 years ago

Ok