Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash Issue with TTLock SDK When Integrated with Dormakaba SDK #45

Open
parvez-geokey opened this issue Jan 22, 2025 · 3 comments
Open

Comments

@parvez-geokey
Copy link

parvez-geokey commented Jan 22, 2025

I am reaching out regarding a critical issue we are encountering with the TTLock SDK in our iOS application. After integrating the Dormakaba SDK alongside the TTLock SDK, the app crashes when performing any Bluetooth operation on TTLock devices.

Below are the details of the issue:

Steps to Reproduce:

  1. Add the Dormakaba SDK to the project.
  2. Perform any Bluetooth operation using the TTLock SDK (e.g., unlocking or reading lock status).
  3. The app crashes with the following error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_NSInlineData AES256DecryptWithKey:gIv:]: unrecognized selector sent to instance 0x150132a00'
*** First throw call stack:
(0x1b2b38870 0x1aae5bc00 0x1b2bc919c 0x1b2a7dff8 0x1b2bbeb10 0x107e26f30 0x107e02de8 0x107e27fd0 0x107e27f74 0x107df128c 0x107e059ec 0x107adf484 0x107adf520 0x107676e1c 0x107676c18 0x107827884 0x107827a4c 0x10782bcd4 0x107603a00 0x1076044c4 0x10731ea70 0x10732b180 0x107bb5b70 0x107bb3358 0x109644f50 0x109646b34 0x109656fec 0x109656ba0 0x1b2a8320c 0x1b2a7ff18 0x1b2a7f668 0x1f5e4a5ec 0x1b4e9c2b4 0x1b4e9b8f0 0x1b50c59c8 0x1073c5d2c 0x1073c5ca4 0x1073cbb80 0x1d54d2dcc)
libc++abi: terminating due to uncaught exception of type NSException

Impact:
This issue prevents us from performing any operations on TTLock devices when the Dormakaba SDK is integrated.

Environment Details:

TTLock SDK Version: 3.4.5
iOS Version: 17.1.2
Xcode Version: 16.0
Device Model: iPhone 11

Could you please assist us in identifying the root cause of this issue? Is there a known conflict between the TTLock SDK and Dormakaba SDK, or could it be related to specific dependencies?

Your guidance would be greatly appreciated as we rely heavily on the TTLock SDK for critical operations in our application. I have also attached the full crash log file for your reference.

Please let me know if you need any additional information or logs to help diagnose the issue.

Thank you for your support. Looking forward to your response.

Crash_logs.txt

@ttlock
Copy link
Owner

ttlock commented Jan 23, 2025

Important!
Find Target->Build Settings -> Linking -> Other Linker Flags ,add -ObjC(If it already exists, there is no need to add it.)

@parvez-geokey
Copy link
Author

Important! Find Target->Build Settings -> Linking -> Other Linker Flags ,add -ObjC(If it already exists, there is no need to add it.)

Thank you for your prompt response and suggestion to add -ObjC to the "Other Linker Flags" in the build settings. After adding it, we are now facing linker errors related to duplicate symbols in the LegicMobileSdk.framework as shown below:

duplicate symbol '_OBJC_IVAR_$_LegicSdkShtReaderFoundReport.mReaderOperationMode' in:
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[117](LegicSdkShtReaderFoundReport.o)
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[55](LegicSdkShtReaderFoundReport.o)
duplicate symbol '_OBJC_CLASS_$_LegicSdkBkcSystemParamName' in:
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[188](LegicSdkBkcSystemParamName.o)
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[14](LegicSdkBkcSystemParamName.o)
duplicate symbol '_OBJC_IVAR_$_LegicSdkShtRfInterfaces.mHceHwSupport' in:
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[165](LegicSdkShtRfInterfaces.o)
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[116](LegicSdkShtRfInterfaces.o)
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[46](LegicSdkShtRfInterfaces.o)
duplicate symbol '_OBJC_IVAR_$_LegicSdkShtFilename.mProjectId' in:
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[193](LegicSdkShtFilename.o)
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[105](LegicSdkShtFilename.o)
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[23](LegicSdkShtFilename.o)
duplicate symbol '_OBJC_METACLASS_$_LegicSdkBkcFileInfoWithMeta' in:
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[194](LegicSdkBkcFileInfoWithMeta.o)
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[10](LegicSdkBkcFileInfoWithMeta.o)
duplicate symbol '_OBJC_IVAR_$_LegicSdkShtRfInterfaces.mBleCentral' in:
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[165](LegicSdkShtRfInterfaces.o)
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[116](LegicSdkShtRfInterfaces.o)
    /Users/admin/Library/Developer/Xcode/DerivedData/App-abrovuypwlrfylgivodgsevjmwvw/Build/Products/Debug-iphoneos/LegicMobileSdk.framework/LegicMobileSdk[46](LegicSdkShtRfInterfaces.o)
ld: 132 duplicate symbols
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Note: The LegicMobileSdk.framework is an xcframework provided by Dormakaba.

We have confirmed that the framework is correctly integrated and that the -ObjC flag is added only once. Despite this, the build fails. Could you please provide further guidance or suggest a solution to resolve these linker conflicts?

Looking forward to your assistance.

@parvez-geokey
Copy link
Author

Important! Find Target->Build Settings -> Linking -> Other Linker Flags ,add -ObjC(If it already exists, there is no need to add it.)

Following up on my earlier report about linker errors after adding the -ObjC flag. This issue is critical and blocking development.

Please let me know if further details are needed. Looking forward to your assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants