thegrizzlylabs / geniusscan-sdk-spm

Swift Package for the Genius Scan SDK
Other
0 stars 1 forks source link

Bump SDK Apple Swift version to 5.9 #5

Closed piotrekjeremicz closed 11 months ago

piotrekjeremicz commented 12 months ago

Hi,

Today I found a problem with GSSDKScanFlow import. I am getting an error that informs about to hight toolchain version. The message is presented on import GSSDKScanFlow line.

Failed to build module 'GSSDKScanFlow'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)', while this compiler is 'Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)'). Please select a toolchain which matches the SDK.

Currently, I am using macOS Sonoma and Xcode 15.0. Genius Scan is added to the project via Swift Package Manager.

Is it possible to build a framework with latest Swift toolchain? I will be glad for the answer.

bvirlet commented 12 months ago

Hi @piotrekjeremicz, I'm looking into this.

piotrekjeremicz commented 12 months ago

Thank you @bvirlet! Waiting for some results. 😊

bvirlet commented 12 months ago

Hi @piotrekjeremicz, just to confirm, you're pulling the latest version of the SDK?

bvirlet commented 12 months ago

Hi @piotrekjeremicz,

I was able to reproduce the problem in the demo project, but I had two errors:

image

As soon as I added the GSSDKOCR framework as a dependency of the project (see below), the error disappeared:

image

Can you let me know if it helps?

For the record:

bvirlet commented 11 months ago

Hi @piotrekjeremicz. Have you been able to verify the fix?

piotrekjeremicz commented 11 months ago

Hi @bvirlet . I apologize very much for the delay in replying. I have added GSSDKOCR library to the frameworks list and it seems to work.

I will confirm it till the end of the week. My goal is Genius Scan implementation in SwiftUI environment.

bvirlet commented 11 months ago

I will mark this as closed for now. Please reopen if the issue persists.