Skip to Content
avatar image
Former Member

Error when logging in - Fiori for iOS

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 16 at 07:44 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

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

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

    When the unwrapping happens after declaring passcodePolicy, it works.

    Add comment
    10|10000 characters needed characters exceeded