fingerprintjs-ios icon indicating copy to clipboard operation
fingerprintjs-ios copied to clipboard

Arm64 support

Open alaegin opened this issue 1 year ago • 3 comments
trafficstars

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

alaegin avatar Aug 29 '24 08:08 alaegin

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:

  • Your Xcode version.
  • The exact steps that you followed to integrate the FingerprintJS library with your iOS app.

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.

mgutski avatar Aug 29 '24 10:08 mgutski

@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)
    }
}
  1. I'm trying to launch my app on iPhone 15 (17.2) emulator and the error occurs

alaegin avatar Aug 29 '24 10:08 alaegin

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.

mgutski avatar Aug 29 '24 11:08 mgutski

Closing as there are no further comments or questions from the issue's author.

mgutski avatar Nov 07 '24 12:11 mgutski