I’ve been stumped with this one since last week. I recently completely rebuilt my iMac owing to it having too many versions of frameworks and things like nodejs, etc. At any rate, I have a clean iMac.
Having reinstalled node, Xcode, and all of the ionic components, etc. I now find that I cannot get my apps to run in the emulators.
ionic cordova emulate ios --list
and that gives me (amongst other emulators) the following iPad devices:
iPad-Air--3rd-generation-, 12.2 iPad-Air, 12.2 iPad-Air-2, 12.2 iPad--5th-generation-, 12.2 iPad-Pro--9-7-inch-, 12.2 iPad-Pro, 12.2 iPad-Pro--12-9-inch---2nd-generation-, 12.2 iPad-Pro--10-5-inch-, 12.2 iPad--6th-generation-, 12.2 <-- I use this one iPad-Pro--11-inch-, 12.2 iPad-Pro--12-9-inch---3rd-generation-, 12.2
As I’ve identified in that list, I use the iPad 6th generation emulator. I then run:
ionic cordova emulate ios --target="iPad--6th-generation-, 12.2"
After all of the masses of console output, finally, in the results, I get:
** BUILD SUCCEEDED ** Deploying to simulator Running command: /Users/tonyross/development-work/...path-to-files.../myappsname/node_modules/ios-sim/bin/ios-sim launch /Users/tonyross/development-work/...path-to-files.../myappsname/platforms/ios/build/emulator/myappsname.app --devicetypeid com.apple.CoreSimulator.SimDeviceType.iPad--6th-generation-, 12.2 --log /Users/tonyross/development-work/...path-to-files.../myappsname/platforms/ios/cordova/console.log --exit [ios-sim] Simulator already running. [ios-sim] An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested application An application bundle was not found at the provided path. Provide a valid path to the desired application bundle. [ios-sim] An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1): The request to open "com.bundleidhere.myapp" failed. The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.bundleidhere.myapp" is unknown to FrontBoard"). Underlying error (domain=FBSOpenApplicationErrorDomain, code=4): [ios-sim] The operation couldn’t be completed. Application "com.bundleidhere.myapp" is unknown to FrontBoard. Application "com.bundleidhere.myapp" is unknown to FrontBoard. [ios-sim] com.bundleidhere.myapp: -1 [ios-sim] logPath: /Users/tonyross/development-work/...path-to-files.../myappsname/platforms/ios/cordova/console.log Simulator successfully started via `ios-sim`.
As can be seen, the build succeeds, and the simulator starts but the app does not run.
It mentions “FrontBoard”…what is FrontBoard? When I search on this and these issues, I get links to support for both React Native and Flutter, neither of which are in use in this app.
Can anyone help? This seems to have just started recently. The ionic info for this is below:
Ionic: ionic (Ionic CLI) : 4.12.0 Ionic Framework : ionic-angular 3.9.6 @ionic/app-scripts : 3.2.4 Cordova: cordova (Cordova CLI) : 9.0.0 (firstname.lastname@example.org) Cordova Platforms : ios 5.0.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.4.1, (and 13 other plugins) System: ios-deploy : 1.9.4 ios-sim : 8.0.1 NodeJS : v10.16.0 (/usr/local/bin/node) npm : 6.9.0 OS : macOS Mojave Xcode : Xcode 10.2.1 Build version 10E1001
Thanks in advance for your time. I’ve been searching for a solution to this since last week.