forcedotcom / SalesforceMobileSDK-iOS-Specs

BSD 3-Clause "New" or "Revised" License
3 stars 20 forks source link

Unable to open Salesforce Login screen after Logging out #38

Closed rabindralaheri99 closed 1 week ago

rabindralaheri99 commented 3 months ago

We have an app in Objective-C for iPad which is a very old one. For a few months, we have been receiving issues from a few users. They are not able to log into the app. This issue is not reproducible on our iPad. Below are the different observations on the opening of the login page.

Steps we followed on their iPad to fix this issue

We have integrated the SDK using pod 'SalesforceMobileSDK-iOS'.

wmathurin commented 3 months ago

What version of Mobile SDK are you using?

rabindralaheri99 commented 3 months ago

I checked the version using NSLog(@"%@",SALESFORCE_SDK_VERSION); it's 4.0.0

wmathurin commented 3 months ago

Mobile SDK 4.0 was released 9 years ago. Is upgrading the SDK used by your application an option?

rabindralaheri99 commented 3 months ago

I run pod update Still, the version is the same. Can you help me to know the process of upgrading the SDK?

wmathurin commented 3 months ago

You need to change your Podfile to point to a newer version. However I don't think it will be a seamless upgrade. A better way might be to download the latest forceios npm package, run it to create a new project and then move the code from your application into it.

rabindralaheri99 commented 2 months ago

I generated an objective-c project using "forceios create" command and copied my project directory to this new project. SFUserAccountManager which I am using in many parts of my code. But seems like SFUserAccountManager is no longer a valid class so now x-code is throwing "Use of undeclared identifier 'SFUserAccountManager'" compilation error everywhere.

also the #import <SalesforceSDKCore/SFAuthenticationManager.h> is no more working. Can you please let me know what is the alternate class here?

Thanks for all your help!

wmathurin commented 2 months ago

That class still exists. See https://github.com/forcedotcom/SalesforceMobileSDK-iOS/blob/dev/libs/SalesforceSDKCore/SalesforceSDKCore/Classes/UserAccount/SFUserAccountManager.h

wmathurin commented 1 week ago

I'm going to close that issue since it is not actually about a bug in the SDK. If you need more help on how to do something with Mobile SDK, please post on our Trailhead Community.