# Lock - iOS (Swift) offline crash

**URL:** <https://community.auth0.com/t/lock-ios-swift-offline-crash/8133>\
**Category:** Get Help\
**Tags:** swift, lock-for-ios, offline, lock, ios\
**Created:** [September 8, 2017, 3:22pm UTC](https://community.auth0.com/t/lock-ios-swift-offline-crash/8133 "2017-09-08T15:22:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![seriba607](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@seriba607](https://community.auth0.com/u/seriba607)\
**Post date:** [September 8, 2017, 3:22pm UTC](https://community.auth0.com/t/lock-ios-swift-offline-crash/8133/1 "2017-09-08T15:22:54Z")

</div>

Hello  
I use Lock in both my iOS and Android apps for auth and things are okay in online mode.

But when i disable my network connection and run the app:

Android =\> When the app is run in offline mode, a “retry page” is shown instead of the login page.

iOS (swift) =\> When the app is run in offline mode, it crashes.

Is there any param from the dash i should activate ?  
Any help would be appreciated. Thanks

LOG:

```
SLocalizedDescription=The Internet connection appears to be offline.} (CDNLoaderInteractor.swift:41)
fatal error: Something went wrong.
Please contact technical support.: file /.../Lock.swift/Lock/ConnectionLoadingPresenter.swift, line 44

```

---

<div class="post-metadata">

**Author:** ![walsh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/walsh/32/7074_2.png) [@walsh](https://community.auth0.com/u/walsh)\
**Post date:** [September 9, 2017, 4:07am UTC](https://community.auth0.com/t/lock-ios-swift-offline-crash/8133/2 "2017-09-09T04:07:02Z")

</div>

This is an assertion for developers will only happen in **DEBUG** , in **PRODUCTION** you will see the soft error for the end user with the `Retry Page`.

---

<div class="post-metadata">

**Author:** ![seriba607](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@seriba607](https://community.auth0.com/u/seriba607)\
**Post date:** [September 11, 2017, 3:12pm UTC](https://community.auth0.com/t/lock-ios-swift-offline-crash/8133/3 "2017-09-11T15:12:48Z")

</div>

Indeed !  
It works in release mode.  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/lock-ios-swift-offline-crash/8133/4 "2018-03-02T05:56:24Z")

</div>


