Skip to Content
0

Error when logging in - Fiori for iOS

Feb 15 at 04:04 PM

74

avatar image
Former Member

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

problem.jpg (262.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Andreas Schlosser
Feb 16 at 07:44 AM
0

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-727b7ef0aa51?question_search_string=policy 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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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

Thanks
Andreas

0
avatar image
Former Member Feb 16 at 11:20 AM
0

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

When the unwrapping happens after declaring passcodePolicy, it works.


solution.jpg (34.1 kB)
Share
10 |10000 characters needed characters left characters exceeded