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

Issue when changing environment from Sandbox to Production in SalesforceMobileSDK-iOS #3788

Open
dheeraj-bartwal opened this issue Dec 24, 2024 · 1 comment

Comments

@dheeraj-bartwal
Copy link

I am using the SalesforceMobileSDK-iOS, and everything works fine initial run. However, when I change the environment to Production by tapping the gear icon on the login screen, the app crash.
The app crashes with the following error:

Steps to reproduce:

  1. Launch the app.

  2. On Login Screen Tap the gear icon and change the environment to Production.

  3. The app crashes with the following error:
    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKeyedSubscript:]: key cannot be nil'

  4. Version of Mobile SDK Used: 11.1.0

  5. Issue found in Native App or Hybrid App: Native iOS App (Swift)

  6. OS Version: 17.0

  7. Device: Simulator iphone 15 Pro.

  8. Actual behavior: The app crashes with an uncaught exception when trying to set a nil value in a dictionary, likely due to missing or incorrect configuration for the Production environment.

  9. Expected Behavior: The app should successfully switch to Production without crashing.

  10. Error Log: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKeyedSubscript:]: key cannot be nil'

@bbirman
Copy link
Member

bbirman commented Dec 24, 2024

Could you try our latest release, 12.2.0, to see if the crash is still there? And if it is, can you see what the crashing line of code is?

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