+ Start a Discussion
Jyoti Singh 9Jyoti Singh 9 

My app crashes when coming from background to foreground

Stack trace is

-[__NSCFString timeIntervalSinceReferenceDate]: unrecognized selector sent to instance 
0 CoreFoundation + 130
1 libobjc.A.dylib objc_exception_throw + 38
2 CoreFoundation + 202
3 CoreFoundation + 706
4 CoreFoundation _CF_forwarding_prep_0 + 24
5 CoreFoundation + 44 
6 MyApp +[SFSecurityLockout inactivityExpired] + 100
7 MyApp +[SFSecurityLockout validateTimer] + 60 
8 MyApp -[SalesforceSDKManager handleAppForeground:] + 1060

I am on latest mobile sdk for ios. How to solve this?
Best Answer chosen by Jyoti Singh 9
Gaurav KheterpalGaurav Kheterpal
This has atually been reported on the github repo as a bug (https://github.com/forcedotcom/SalesforceMobileSDK-iOS/issues/874).

I myself experienced it with 3.0.0 but it no longer occurs with 3.1.0 (it came out last week) - you may want to upgrade and see if it resolves the issue.
 

All Answers

Gaurav KheterpalGaurav Kheterpal
This has atually been reported on the github repo as a bug (https://github.com/forcedotcom/SalesforceMobileSDK-iOS/issues/874).

I myself experienced it with 3.0.0 but it no longer occurs with 3.1.0 (it came out last week) - you may want to upgrade and see if it resolves the issue.
 
This was selected as the best answer
Jyoti Singh 9Jyoti Singh 9
Thanks for help. I will follow on bug link