forcedotcom / SalesforceMobileSDK-iOS

iOS SDK for Salesforce
Other
538 stars 419 forks source link

Mobile App Crash on KeyChainHelper Class - Salesforce Hybrid Remote SDK v12.0.1 #3749

Open VenkataramanK opened 1 month ago

VenkataramanK commented 1 month ago

Please fill out the following details:

  1. Version of Mobile SDK Used: v11.1.0 & v12.0.1
  2. Issue found in Native App or Hybrid App: Hybrid (Remote)
  3. OS Version: 17.4.1(iOS) & 17.5.1(iOS) & Multiple OS Versions
  4. Device: iPad14, 6 & iPad8, 12 & Multiple Other Device models
  5. Steps to reproduce: Clicking icon of the application, app crashes
  6. Actual behavior: Clicking icon of the application, displays iPad's lock screen. On entering ping app got crashed.
  7. Expected Behavior: Clicking icon of the application, displaying home screen after biometric authentication
  8. Error Log: Attached Crash Logs from multiple Mobile SDK [Versions 11.1.0 & 12.0.1] Crashlog_V11.1.0.docx Crashlog_V12.0.1.docx

https://github.com/user-attachments/assets/3487fabe-e61d-4fe8-a8e2-c8d56e5caa55

Already raised this issue with v11.1.0 & it's happening in v12.0.1 as well. Previously raised issue url is given below. Existing Issue: https://github.com/forcedotcom/SalesforceMobileSDK-iOS/issues/3714

Additionally, we noted a method [[SFScreenLockManagerInternal shared] checkForScreenLockUsers] called after [SFSDKSalesforceSDKUpgradeManager upgrade]. Whether the iPad lock screen shows because of this implementation?

bbirman commented 1 month ago

@VenkataramanK does your app store anything in the keychain outside of what Mobile SDK automatically does? And if so what access control is set for them? Also, do you happen to have any device/console logs aside from the crash log?

VenkataramanK commented 1 month ago

@bbirman : Thanks for your attention!!!

We don't have any requirement to store in keychain from application aspect. Only SDK based keychain is live. Also, it's only happening in Production environment for significant number of people. we can't reproduce this crash in our lower environments.

Note:

  1. Previously our app used Salesforce Hybrid SDK V9.1, later we moved to V11.1 & V12.0.1. We suspect any Keychain values mismatch may cause this issue.
  2. Our application is Enterprise app can be downloaded from our internal Appstore.