Ionic app freezes when run on iOS device but fine on Ionic serve


#1

Hi,

When I run my Ionic 2 Angular app using Ionic serve -l in the command line, it runs perfectly fine, no error or warnings in the console log. When I run Ionic cordova build ios and open the project in Xcode to test it on my iPad, the app freezes when I open <ion-select>. I have no idea why, it used to work fine before, it just stopped working on it’s own. The only difference is I added the Push native plugin but it has nothing to do with the select input field.

  <!-- Region Selection -->
  <ion-item>
    <ion-label>Region</ion-label>
    <ion-select name="selectedRegion" (ngModelChange)="setServerLocation($event)" [(ngModel)]="selectedRegion" cancelText="Cancel">
      <ion-option *ngFor="let Region of Regions" [value]="Region.uri">{{Region.uri}}</ion-option>
    </ion-select>
  </ion-item>

The console output I am getting in Xcode when I tap the select input field is:

2017-10-20 16:08:28.699 Keep Mobile[869:1730106] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/313F02AC-D4F4-47DB-AB4D-3B0B89E46CE7/Library/Cookies/Cookies.binarycookies
2017-10-20 16:08:29.100 Keep Mobile[869:1730106] Apache Cordova native platform version 4.4.0 is starting.
2017-10-20 16:08:29.103 Keep Mobile[869:1730106] Multi-tasking -> Device: YES, App: YES
2017-10-20 16:08:29.226 Keep Mobile[869:1730106] Using UIWebView
2017-10-20 16:08:29.232 Keep Mobile[869:1730106] [CDVTimer][handleopenurl] 0.423968ms
2017-10-20 16:08:29.245 Keep Mobile[869:1730106] [CDVTimer][intentandnavigationfilter] 12.285054ms
2017-10-20 16:08:29.246 Keep Mobile[869:1730106] [CDVTimer][gesturehandler] 0.410020ms
2017-10-20 16:08:29.251 Keep Mobile[869:1730106] VERSION LABEL: 0.1.8:1508527944:NO_DEPLOY_LABEL
2017-10-20 16:08:29.251 Keep Mobile[869:1730106] updating version label
2017-10-20 16:08:29.338 Keep Mobile[869:1730106] version is: 0.1.8
2017-10-20 16:08:29.340 Keep Mobile[869:1730106] uuid is: 
2017-10-20 16:08:29.340 Keep Mobile[869:1730106] channel is: Master
2017-10-20 16:08:29.340 Keep Mobile[869:1730106] JSON Error: (null)
2017-10-20 16:08:29.341 Keep Mobile[869:1730106] unable to check for updates
2017-10-20 16:08:29.344 Keep Mobile[869:1730106] [CDVTimer][ionicdeploy] 97.365975ms
2017-10-20 16:08:29.344 Keep Mobile[869:1730106] [CDVTimer][ioniccordovacommon] 0.440955ms
2017-10-20 16:08:29.383 Keep Mobile[869:1730106] [CDVTimer][splashscreen] 37.862003ms
2017-10-20 16:08:29.413 Keep Mobile[869:1730106] [CDVTimer][statusbar] 30.077994ms
2017-10-20 16:08:29.417 Keep Mobile[869:1730106] [CDVTimer][keyboard] 2.961993ms
2017-10-20 16:08:29.417 Keep Mobile[869:1730106] [CDVTimer][TotalPluginStartup] 185.639977ms
2017-10-20 16:08:29.709 Keep Mobile[869:1730106] createNotificationChecker
2017-10-20 16:08:29.709 Keep Mobile[869:1730106] not coldstart
2017-10-20 16:08:29.714 Keep Mobile[869:1730106] active
2017-10-20 16:08:29.715 Keep Mobile[869:1730106] PushPlugin skip clear badge
2017-10-20 16:08:30.098 Keep Mobile[869:1730106] Resetting plugins due to page load.
2017-10-20 16:08:30.100 Keep Mobile[869:1730106] uuid is: 
2017-10-20 16:08:30.100 Keep Mobile[869:1730106] ignore deploy
2017-10-20 16:08:30.100 Keep Mobile[869:1730106] ignore version: NO_DEPLOY_LABEL
2017-10-20 16:08:56.693 Keep Mobile[869:1730106] Finished load of: file:///var/containers/Bundle/Application/926DDBB2-4127-415B-8354-B63591B12D78/Keep%20Mobile.app/www/index.html
2017-10-20 16:08:57.102 Keep Mobile[869:1730106] THREAD WARNING: ['Device'] took '11.834961' ms. Plugin should use a background thread.
2017-10-20 16:08:57.451 Keep Mobile[869:1730106] Ionic Native: deviceready event fired after 24820 ms
2017-10-20 16:08:57.470 Keep Mobile[869:1730231] Push Plugin register called
2017-10-20 16:08:57.471 Keep Mobile[869:1730231] PushPlugin.register: setting badge to false
2017-10-20 16:08:57.471 Keep Mobile[869:1730231] PushPlugin.register: clear badge is set to 0
2017-10-20 16:08:57.472 Keep Mobile[869:1730231] PushPlugin.register: better button setup
2017-10-20 16:08:57.472 Keep Mobile[869:1730231] FCM Sender ID (null)
2017-10-20 16:08:57.473 Keep Mobile[869:1730231] Using APNS Notification
2017-10-20 16:09:00.083 Keep Mobile[869:1730106] active
2017-10-20 16:09:00.084 Keep Mobile[869:1730106] PushPlugin skip clear badge

Any help would be great. Thanks!