cancel
Showing results for 
Search instead for 
Did you mean: 

Error when logging in - Fiori for iOS

0 Kudos

Hi,

I want to complete the openSAP-Course "SAP Fiori for iOS - Build Your First Native Mobile App" and I have a problem with logging in the first time.

I attached a screenshot of the code.

Here's the error message: Unexpectedly found nil while unwrapping an Optional value

The variable policy seems to be emptier than it should.

Do you have any ideas how to fix this?

Regards

Tobias

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

I fixed the problem after hours of trying different Xcode and SDK versions.

When the unwrapping happens after declaring passcodePolicy, it works.

aschlosser
Employee
Employee
0 Kudos

Tobias,

We saw other folks had the same problem during the course; https://open.sap.com/courses/ios2/sections/32nWofYNR6adhDYKkWnObk/question/35cf04bf-3dba-4c31-ae0d-7... is a mixed discussion of unrelated problems with configuration provider and passcode policy. It seemed to be a temporary issue with unidentified root cause. Hope this is true for you as well and things 'just start to work'. If you can share the Mobile Services instance that you're using, the server team could have another look into this problem too.

Thanks
Andreas

0 Kudos

Hi Andreas,

I reinstalled the app and since then I'm not able to get it working again it says "error while onboarding".

It seems the service is not available. Could you check that?

Regards

Tobias

aschlosser
Employee
Employee
0 Kudos

Things seem to be fine in general - can you share a bit more detail / console logs of your error situation, please?

Thanks
Andreas