Troubleshooting

You will find here answers to common problems:

‘image not found’ error at launch.

Ensure you included the frameworks GSSDKCore.xcframework (and optionally GSSDKScanFlow.xcframework, GSSDKOCR.xcframework) in the Embedded Binaries section of your project.

Undefined symbols

ld: warning: ld: warning: ignoring file GSSDKOCR.framework/GSSDKOCR, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64 ignoring file GSSDKCore.framework/GSSDKCore, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64 …

The Genius Scan SDK doesn’t support ARM Mac at this time. This means that you cannot build it for the ARM simulator targets.

This issue generally doesn’t arise, as Mac ARM machines are not yet available. However, Xcode 12 beta 5 and up have a problem with SwiftUI Previews which seem to compile the preview for Mac ARM even though the preview runs on an x86 machine. To fix the problem, you need to exclude the arm64 architecture for simulator builds as shown below:

How to exclude the arm64 architecture from build settings

The ScanFlow UI is not localized

The ScanFlow UI supports around 20 languages and the device’s locale determines the language used for all strings: user guidance, menus, dialogs…

The framework will always use the localization of the main app, but if localization is not properly enabled for the app, then it will fall back to English.

Applications must be localized in XCode by adding each language to the project. Also, there must be at least one file localized in the XCode project for the language to be properly picked up.

© 2021 The Grizzly Labs, Inc. All rights reserved.