fingerprintjs / fingerprintjs-ios

iOS library for device fingerprinting. Does not require server APIs to work, fully client-side operation. MIT license, no restrictions on usage in production.
https://fingerprint.com/github/
MIT License
85 stars 22 forks source link

Arm64 support #50

Open alaegin opened 2 weeks ago

alaegin commented 2 weeks ago

Hello!

Thank you for this library.

I want to request arm64 support to run the app using FingerprintJS on emulator. For now it's not possible because of the error.

image

mgutski commented 2 weeks ago

Hello @alaegin,

The FingerprintJS library does support both simulated and real arm64 devices. I can confirm that it works with our sample project without any issues. With that said, the error that you encountered is rather unusual and I definitely need more details to help you pinpoint the root cause of the issue.

To provide further assistance, I need you to share the following:

Regardless of the above, if you haven't done so already, try to clean build folder and derived data for your project, as it often helps to resolve odd build errors in Xcode.

alaegin commented 2 weeks ago

@mgutski Hello!

Thank you for response.

Xcode version is 15.3

Steps:

  1. I added pod to my Podfile pod 'FingerprintJS', '1.5.0'
  2. I integrated the library like this:
    
    import FingerprintJS
    import Foundation
    import shared

class FingerprintProviderImpl: IOSDeviceFingerprintProvider { lazy var fingerprinter: Fingerprinter = { let configuration = Configuration(version: .v5, stabilityLevel: .optimal, algorithm: .sha256) let fingerprinter = FingerprinterFactory.getInstance(configuration) return fingerprinter }()

func getDeviceFingerprint(callback: @escaping (String?) -> Void) {
    fingerprinter.getFingerprint(callback)
}

func getDeviceId(callback: @escaping (String?) -> Void) {
    fingerprinter.getDeviceId(callback)
}

}


3. I'm trying to launch my app on iPhone 15 (17.2) emulator and the error occurs
mgutski commented 2 weeks ago

That's strange, have you tried clean building the project?

The sample project that I mentioned also uses CocoaPods. Are you able to reproduce the error with that project? If so, please share your CocoaPods version.