RaulGM
December 12, 2018, 7:51pm
1
Hello,
I just started a new project with the following ionic info
Ionic:
ionic (Ionic CLI) : 4.4.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.1
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.5, (and 5 other plugins)
System:
ios-deploy : 2.0.0
NodeJS : v11.0.0 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS
Xcode : Xcode 10.1 Build version 10B61
The problem comes when I try to try it on Xcode. The build is successful, even the splash screen comes up fine. But when the app really starts, an error occurs. Here is a picture of an iOS simulator:
The Xcode’s console goes like this:
Has anyone experienced this? I don’t know where to go from here.
Hello,
The easiest workaround for this problem is to add
<preference name="WKPort" value="12345" />
<allow-navigation href="http://localhost:12345/*"/>
to your config.xml inside the <platform name="ios">
tag.
Make sure to replace “12345” with a random port number of your desire, like “8181”.
The issue and the current workarounds are being discussed here:
Hello everybody.
After running ionic cordova run ios i see this error:
ERROR
Unable to load app
[19] [18]
/Users/sagrus/new/platforms/ios/cordova/console.log is empty
Please help me
RaulGM
January 16, 2019, 3:52pm
3
Now I have this error. Any ideas? I thought it was something about the launchimage or icons, but I redid everything and no luck.
dar[46442:3596673] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.
2019-01-16 11:47:31.808581-0400 myApp[46442:3596673] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/me/Library/Developer/CoreSimulator/Devices/CA5F90B5-2BD8-4E10-8348-6341194D0C50/data/Containers/Data/Application/44697F8D-D3F3-4440-B0A0-D06AEE4C35C6/Library/Cookies/com.myApp.myApp.binarycookies
2019-01-16 11:47:31.881789-0400 myApp[46442:3596673] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x7ff6f2d01f70> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000109f801bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x0000000108d98735 objc_exception_throw + 48
2 CoreFoundation 0x0000000109f7fd29 -[NSException raise] + 9
3 Foundation 0x00000001087c3de4 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292
4 UIKitCore 0x000000011676b573 -[UIRuntimeOutletConnection connect] + 109
5 CoreFoundation 0x0000000109f6bcfd -[NSArray makeObjectsPerformSelector:] + 317
6 UIKitCore 0x00000001167682b9 -[UINib instantiateWithOwner:options:] + 1814
7 UIKitCore 0x0000000116768d17 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 214
8 UIKitCore 0x0000000116afaeee -[UIApplication _loadMainNibFileNamed:bundle:] + 77
9 UIKitCore 0x0000000116afb50c -[UIApplication _loadMainInterfaceFile] + 272
10 UIKitCore 0x0000000116af9b25 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1357
11 UIKitCore 0x00000001163184e9 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866
12 UIKitCore 0x000000011632129c +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
13 UIKitCore 0x0000000116318126 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 233
14 UIKitCore 0x0000000116318ae0 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1085
15 UIKitCore 0x0000000116316cb5 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 795
16 UIKitCore 0x000000011631695f -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 435
17 UIKitCore 0x000000011631ba90 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 584
18 UIKitCore 0x000000011631c80e _performActionsWithDelayForTransitionContext + 100
19 UIKitCore 0x000000011631b7ef -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 221
20 UIKitCore 0x000000011632093a -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
21 UIKitCore 0x0000000116af844e -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515
22 UIKitCore 0x000000011669cd09 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 357
23 FrontBoardServices 0x00000001158be2da -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 448
24 FrontBoardServices 0x00000001158c9443 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 271
25 FrontBoardServices 0x00000001158c8b3a __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 53
26 libdispatch.dylib 0x0000000110f1d602 _dispatch_client_callout + 8
27 libdispatch.dylib 0x0000000110f20b78 _dispatch_block_invoke_direct + 301
28 FrontBoardServices 0x00000001158fdba8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
29 FrontBoardServices 0x00000001158fd860 -[FBSSerialQueue _performNext] + 457
30 FrontBoardServices 0x00000001158fde40 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
31 CoreFoundation 0x0000000109ee5721 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
32 CoreFoundation 0x0000000109ee4f93 __CFRunLoopDoSources0 + 243
33 CoreFoundation 0x0000000109edf63f __CFRunLoopRun + 1263
34 CoreFoundation 0x0000000109edee11 CFRunLoopRunSpecific + 625
35 GraphicsServices 0x000000010756f1dd GSEventRunModal + 62
36 UIKitCore 0x0000000116afb81d UIApplicationMain + 140
37 myApp 0x0000000106ac8c51 main + 65
38 libdyld.dylib 0x0000000110f93575 start + 1
39 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
RaulGM
January 16, 2019, 5:32pm
4
Just in any case someone run into the same problem, what I did is to change within general > Deployment Info > Main Interface
to CDVLaunchScreen and do the same within general > App Icons and Launch Images > Launch Screen File
to CDVLaunchScreen as well. If not, here is a question in StackOverflow with lots of possible answers: https://stackoverflow.com/questions/50701321/xcode-error-on-simulation-mgisdeviceoneoftype-is-not-supported-on-this-platform/54222323#54222323