ionic-team / ionic-v1

The repo for Ionic 1.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
193 stars 187 forks source link

Apple Silicon M1, sample tabs app crashes when run on iPhone X simulator (or other i86 platforms) #416

Closed viking2917 closed 3 years ago

viking2917 commented 3 years ago

Short description of the problem:

Create a new app using Xcode 12.4, on Apple Silicon M1 mac. After building the app, and running in an iPhoneX simulator, the app crashes on startup. Running in an Arm64 simulator (e.g. iPhone 12), works fine.

What behavior are you expecting?

The app should launch and run successfully.

Steps to reproduce:

  1. ionic start m1App tabs --type ionic1
  2. cd m1App
  3. ionic cordova platform add ios
  4. ionic cordova build ios
  5. open Xcode, Build, Run , the app will crash

Error occurs in CDVWKWebViewEngine.m, pluginInitialize

see attached screenshot of error.

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

Which Ionic Version? 1.x or 2.x

Ionic v1.

Run ionic info from terminal/cmd prompt: (paste output below)

Ionic:

Ionic CLI : 5.4.16 (/Users/markwatkins/.nvm/versions/node/v10.23.1/lib/node_modules/ionic) Ionic Framework : ionic1 1.3.4 @ionic/v1-toolkit : 1.0.22

Cordova:

Cordova CLI : 10.0.0 Cordova Platforms : ios 6.2.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 4 other plugins)

Utility:

cordova-res (update available: 0.15.3) : 0.15.2 native-run : 1.3.0

System:

Android SDK Tools : 26.1.1 (/Users/markwatkins/Library/Android/sdk) ios-deploy : 1.11.4 ios-sim : 8.0.2 NodeJS : v10.23.1 (/Users/markwatkins/.nvm/versions/node/v10.23.1/bin/node) npm : 6.14.10 OS : macOS Big Sur Xcode : Xcode 12.4 Build version 12D4e

Screen Shot 2021-05-03 at 3 11 02 PM

viking2917 commented 3 years ago

Hm. I deleted and recreated my iPhone X simulator, and the problem went away. Only thing I can think of is that my simulator was perhaps restored from a time Machine backup from the old architecture and was therefore invalid (or something). Will close this shortly if the problem does not recur.

viking2917 commented 3 years ago

Closing this, as recreating the simulator seems to have resolved it.