Giter VIP home page Giter VIP logo

Comments (60)

devsontx avatar devsontx commented on June 29, 2024 33

This works for me. Change the target and debug/release build type to suit your needs.
cordova emulate ios --debug --target "iPhone-X,com.apple.CoreSimulator.SimRuntime.iOS-12-2" --buildFlag='-UseModernBuildSystem=0'

from ios-sim.

bbb81 avatar bbb81 commented on June 29, 2024 19

Since the update to iOS 12.2 / Xcode 10.2 (after Apple keynote on Monday 25th of March) cordova is not able to find and deploy to a "defined" simulator:

**BUILD SUCCEEDED **
No target specified for emulator. Deploying to undefined simulator
app:cordova-conf Updated Cordova config.xml +2ms

...and nothing happens...

Deploying onto a connected physical iOS device is possible without any problems... strange

I checked this:

  • ios-sim showdevicetypes shows up all devices as expected
  • xcrun simctl list shows up all devices as expected
  • but: cordova run --list shows only empty lists!

Specs:

  • Xcode 10.2 Build version 10E125
  • ios-sim/9.0.0-dev.1
  • node-v10.15.0
  • darwin-x64
  • Mac OS X 10.14.3 18D109
  • Cordova 9.0.0
  • Quasar Framework 1.0.0-beta.13

from ios-sim.

leonardomontes avatar leonardomontes commented on June 29, 2024 11

with my Ionic 3 project:

ionic cordova run ios -l -c -s --target="iPhone-X,com.apple.CoreSimulator.SimRuntime.iOS-12-2" -- --buildFlag="-UseModernBuildSystem=0"

works fine... I'm using ios-sim 8 though

from ios-sim.

crabbydavis avatar crabbydavis commented on June 29, 2024 8

@shazron Just installed the latest ios-sim@next but I'm not getting any available virtual ios devices when I run cordova run --list. Here's my ionic info

Ionic:
ionic (Ionic CLI) : 4.1.1
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:
cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : android 8.0.0, ios 5.0.0
Cordova Plugins : cordova-plugin-ionic-webview 3.1.2, (and 37 other plugins)

System:
ios-deploy : 1.9.4
ios-sim : ios-sim/9.0.0-dev.2 darwin-x64 node-v10.9.0
NodeJS : v10.9.0 (/Users/crabbydavis/.nvm/versions/node/v10.9.0/bin/node)
npm : 6.4.1
OS : macOS
Xcode : Xcode 10.2 Build version 10E125

from ios-sim.

shazron avatar shazron commented on June 29, 2024 8

Preparing an 8.0.1 release. Also I realize that my workaround instructions were faulty. It should be:

For the workaround, try in the root of your cordova app after each time the ios platform is added:

cd platforms/ios/cordova
npm install ios-sim

Note that only do this once I release the 8.0.1 patch

from ios-sim.

shazron avatar shazron commented on June 29, 2024 7

Ok I've published a new ios-sim@next version (dev.4) that is fully cordova compatible.
I tested:

$ cordova run --list
$ cordova run ios --emulator --target "iPhone-X, 12.2"
$ cordova emulate ios --target "iPhone-X, 12.2"

For the workaround, try in the root of your cordova app after each time the ios platform is added:

cd platforms/ios
npm install ios-sim@next

If people can test with that, that will be good. I've tested all the commands with ios-sim stand-alone, seems ok. I still need to complete 100% coverage of the tests.

from ios-sim.

ewwwgiddings avatar ewwwgiddings commented on June 29, 2024 3

Same issue after updating to Xcode 10.2

Edit: Downgraded to 10.1 with same issue.

If I run xcrun simctl list it gives me all the simulators installed.
If I run ios-sim showdevicetypes it gives me nothing.
If I run ionic cordova emulate ios -l -- --buildFlag='-UseModernBuildSystem=0' --target='iPad-Air-2, 12.1' then it gives me: Device id for device name "iPad Air 2" and runtime "iOS 12.1" could not be found, or is not available.

If I run it from Xcode then it opens up fine.

I used Xcode 10.2 and 10.1 and tried various different versions of:
"cordova": "^9.0.0",
"cordova-ios": "^5.0.0",
"ios-sim": "^9.0.0-dev.1",

from ios-sim.

valerii-kovalov avatar valerii-kovalov commented on June 29, 2024 3

@crabbydavis
Run app from Xcode - this is works fine for now.

from ios-sim.

ewwwgiddings avatar ewwwgiddings commented on June 29, 2024 2

@valeriy-kovalev @crabbydavis I don't think XCode allows for livereload when you run it from there. Maybe I'm wrong but that's my understanding.

Best workaround for me has been to use a device instead of an emulator. Plug device in and use 'run' instead of 'emulate' and this allows livereload if needed.

from ios-sim.

alexpvieira avatar alexpvieira commented on June 29, 2024 2

Tried with the npm install ios-sim@next and got the following error:

No target specified for emulator. Deploying to iPhone-XR, 12.2 simulator
Error: spawn /Users/alex/Take5/etraining-vue/src-cordova/node_modules/ios-sim/src/bin/ios-sim ENOENT

Going to the folder i checked that the src doesn't have any bin folder inside. The above folder has a bin in it. I tried to copy it to the src folder and the error was gone, but the emulator never starts.

from ios-sim.

rayanwipes avatar rayanwipes commented on June 29, 2024 2

For the people looking for a quick fix to emulate with livereload :
https://forum.ionicframework.com/t/ios-sim-does-not-recognize-devices-after-xcode-10-2-update/160276/2?u=rboutaleb

Works perfect !

from ios-sim.

shazron avatar shazron commented on June 29, 2024 1

@jeansantana yes

@mf222 see my comment previously where I referenced a cordova-ios issue, this is the issue you are getting.

from ios-sim.

shazron avatar shazron commented on June 29, 2024 1

@ewwwgiddings I think what jeansantana is saying is "when it's done" at least that's how I read it

from ios-sim.

baotpham avatar baotpham commented on June 29, 2024 1

Running on real device is fine, but not on emulator.

from ios-sim.

leonardomontes avatar leonardomontes commented on June 29, 2024 1

... passing the runtime explicitly in this form seems to do the trick:

ios-sim start -d=iPhone-X,com.apple.CoreSimulator.SimRuntime.iOS-12-2

from ios-sim.

philipjbrowning avatar philipjbrowning commented on June 29, 2024

Same Problem for me. Here is my ionic info

Ionic:

ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.4
@ionic/app-scripts : 3.2.3

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 6.4.0, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic 5.2.1, cordova-plugin-ionic-webview 3.1.0, (and 16 other plugins)

System:

ios-deploy : 2.0.0
NodeJS : v10.9.0 (/usr/local/bin/node)
npm : 6.9.0
OS : macOS Mojave
Xcode : Xcode 10.2 Build version 10E125

from ios-sim.

jeansantana avatar jeansantana commented on June 29, 2024

Same problem here, my env is just like yours.

from ios-sim.

crabbydavis avatar crabbydavis commented on June 29, 2024

Has anyone been able to find a work-around until this gets fixed?

from ios-sim.

crabbydavis avatar crabbydavis commented on June 29, 2024

I'm working on a couple apps right now and one of them works when I run it from Xcode but the other one isn't pulling in any data. The service is throwing 200s as errors. Maybe it's just an issue with my api.
Thanks @valeriy-kovalev

from ios-sim.

shazron avatar shazron commented on June 29, 2024

@bbb81 cordova needs to update to the latest ios-sim. Which is unreleased as of yet until this Xcode 10.2 issue is resolved

@ewwwgiddings can you show your ios-sim version ios-sim --version since you didn't get any listing from showdevicetypes

Workaround, try in the root of your cordova app after each time the ios platform is added:

cd platforms/ios
npm install ios-sim@next

from ios-sim.

shazron avatar shazron commented on June 29, 2024

Sorry the workaround will not work, because of: apache/cordova-ios#567
I'll work on that after this issue is resolved

from ios-sim.

ewwwgiddings avatar ewwwgiddings commented on June 29, 2024

@shazron I'm a bit confused. I thought I've seen you mention to install ios-sim@next in multiple threads on here, but the issue you just linked to you said don't upgrade to ios-sim 9 which is @next

I'll check the --version of ios-sim tomorrow but until then my package.json is at "ios-sim": "^9.0.0-dev.1"

What are you suggesting I do? Sorry I'm confused right now...

from ios-sim.

shazron avatar shazron commented on June 29, 2024

I only released ios-sim@next for those that wanted the latest code now (next is a pre-release, a release candidate if you will). There hasn't been a formal release because it is not ready yet as I already explained in previous comments.

from ios-sim.

jeansantana avatar jeansantana commented on June 29, 2024

@shazron, so WHEN it's done, we can use the [email protected] with cordova CLI 9.0.0 (that will brings the [email protected]), and xCode 10.2, right?

from ios-sim.

mf222 avatar mf222 commented on June 29, 2024

I tried to open it with a empty new project and I'm having this error message iossim.getdevicetypes is not a function

This my ionic info output

Ionic:

   ionic (Ionic CLI)  : 4.3.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.3
   @ionic/app-scripts : 3.2.1

Cordova:

   cordova (Cordova CLI) : 9.0.0
   Cordova Platforms     : ios 5.0.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 4 other plugins)

System:

   ios-deploy : 1.9.4
   ios-sim    : ios-sim/9.0.0-dev.1 darwin-x64 node-v11.1.0
   NodeJS     : v11.1.0 (/usr/local/Cellar/node/11.1.0/bin/node)
   npm        : 6.9.0
   OS         : macOS
   Xcode      : Xcode 10.2 Build version 10E125

from ios-sim.

ewwwgiddings avatar ewwwgiddings commented on June 29, 2024

@mf222 use showdevicetypes not getdevicetypes

from ios-sim.

mf222 avatar mf222 commented on June 29, 2024

@ewwwgiddings thanks, but I think I didn't explain myself well, I wasn't trying to run ios-sim showdevicetypes. When I make ionic emulate ios with the specs I mentioned, the script fails with the following error: iossim.getdevicetypes is not a function.

from ios-sim.

ewwwgiddings avatar ewwwgiddings commented on June 29, 2024

@shazron you're confusing me. You told me not to use 9.0 because the only way to get 9.0 is by using ios-sim@next, but now you have just said to @jeansantana to use 9.0 and it is done? Am I missing something?

from ios-sim.

Adza93 avatar Adza93 commented on June 29, 2024

@shazron Thanks for your effort to fix this! :)

Your quick fix along with ios-sim 8.0.0 and available_runtimes[ runtime.identifier] = (runtime.availability === '(available)'); seems to resolve issues with console auto starting (emulating) iOS devices.

However I am now experiencing issue that Safari Web inspector does not get debuggable code. Safari recognizes application and ionic web server instance as runnable, however when you click on it you get empty web inspector.

Am I missing something? Thanks for help!

from ios-sim.

shazron avatar shazron commented on June 29, 2024

Ok I've published a new ios-sim@next version that is cordova compatible, however cordova run ios --emulator has an error, but you can do cordova run --list
For the workaround, try in the root of your cordova app after each time the ios platform is added:

cd platforms/ios
npm install ios-sim@next

If people can test with that, that will be good.

from ios-sim.

shazron avatar shazron commented on June 29, 2024

@Adza93 no idea yet, will get to it after

Others: needless to say this release is not complete yet, I have yet to still debug start, install, launch

from ios-sim.

Adza93 avatar Adza93 commented on June 29, 2024

@shazron I have managed to understand what is going on with iOS 12.2 and Web debugger in Safari (generally debugging).

It looks like latest Safari 12.0.3 (14606.4.5) is not in sync with iOS 12.2 Web components needed to establish debugger connection to web server.

When I try to debug simulators or real devices with iOS version lower than 12.2 (Tried on iOS 11 and 12.0.X) debugging works.

Current solution for iOS 12.2 is to use Safari Technology Preview (Release 78 (Safari 12.2, WebKit 14608.1.9.1)), where Web debugging works as it should. Other solution is not to use iOS 12.2 Simulators and stick with Safari.

from ios-sim.

fpassa avatar fpassa commented on June 29, 2024

Hi,
With the workaround install, I was able to get the list of devices by invoking:
`cordova run --list

Available ios devices:
Available ios virtual devices:
ios-sim.getdevicetypes is deprecated, use ShowDeviceTypesCommand instead.
Apple-Watch-38mm, watchOS 3.2
Apple-Watch-38mm, watchOS 4.2
Apple-Watch-42mm, watchOS 3.2
Apple-Watch-42mm, watchOS 4.2
Apple-Watch-Series-2-38mm, watchOS 3.2
Apple-Watch-Series-2-38mm, watchOS 4.2
Apple-Watch-Series-2-38mm, watchOS 5.2
Apple-Watch-Series-2-42mm, watchOS 3.2
Apple-Watch-Series-2-42mm, watchOS 4.2
Apple-Watch-Series-2-42mm, watchOS 5.2
Apple-Watch-Series-3-38mm, watchOS 4.2
Apple-Watch-Series-3-38mm, watchOS 5.2
Apple-Watch-Series-3-42mm, watchOS 4.2
Apple-Watch-Series-3-42mm, watchOS 5.2
Apple-Watch-Series-4-40mm, watchOS 5.2
Apple-Watch-Series-4-44mm, watchOS 5.2
iPhone-5s, 11.3
iPhone-5s, 12.2
iPhone-5s, 10.0
iPhone-5s, 9.0
iPhone-6, 11.3
iPhone-6, 12.2
iPhone-6, 10.0
iPhone-6, 9.0
iPhone-6-Plus, 11.3
iPhone-6-Plus, 12.2
iPhone-6-Plus, 10.0
iPhone-6-Plus, 9.0
iPhone-6s, 11.3
iPhone-6s, 12.2
iPhone-6s, 10.0
iPhone-6s, 9.0
iPhone-6s-Plus, 11.3
iPhone-6s-Plus, 12.2
iPhone-6s-Plus, 10.0
iPhone-6s-Plus, 9.0
iPhone-7, 11.3
iPhone-7, 12.2
iPhone-7-Plus, 11.3
iPhone-7-Plus, 12.2
iPhone-8, 11.3
iPhone-8, 12.2
iPhone-8-Plus, 11.3
iPhone-8-Plus, 12.2
iPhone-SE, 11.3
iPhone-SE, 12.2
iPhone-SE, 10.0
iPhone-X, 11.3
iPhone-X, 12.2
iPad-Air, 11.3
iPad-Air, 12.2
iPad-Air, 10.0
iPad-Air, 9.0
iPad-Air-2, 11.3
iPad-Air-2, 12.2
iPad-Air-2, 10.0
iPad-Air-2, 9.0
iPad--5th-generation-, 11.3
iPad--5th-generation-, 12.2
iPad-Pro--9-7-inch-, 11.3
iPad-Pro--9-7-inch-, 12.2
iPad-Pro, 11.3
iPad-Pro, 12.2
iPad-Pro--12-9-inch---2nd-generation-, 11.3
iPad-Pro--12-9-inch---2nd-generation-, 12.2
iPad-Pro--10-5-inch-, 11.3
iPad-Pro--10-5-inch-, 12.2
Apple-TV-1080p, tvOS 10.0
Apple-TV-1080p, tvOS 12.2
Apple-TV-1080p, tvOS 11.3
iPhone-XS, 12.2
iPhone-XS-Max, 12.2
iPad--6th-generation-, 12.2
iPad-Pro--11-inch-, 12.2
iPad-Pro--12-9-inch---3rd-generation-, 12.2
iPhone-XR, 12.2
iPad-Air--3rd-generation-, 12.2
iPhone-5, 10.0
iPhone-5, 9.0
iPad-Pro--9-7-inch-, 10.0
iPad-Pro, 10.0
Apple-TV-4K-4K, tvOS 12.2
Apple-TV-4K-4K, tvOS 11.3
Apple-TV-4K-1080p, tvOS 12.2
Apple-TV-4K-1080p, tvOS 11.3
iPhone-4s, 9.0
iPad-2, 9.0
iPad-Retina, 9.0
Apple-Watch-38mm, watchOS 3.2
Apple-Watch-38mm, watchOS 4.2
Apple-Watch-42mm, watchOS 3.2
Apple-Watch-42mm, watchOS 4.2
Apple-Watch-Series-2-38mm, watchOS 3.2
Apple-Watch-Series-2-38mm, watchOS 4.2
Apple-Watch-Series-2-38mm, watchOS 5.2
Apple-Watch-Series-2-42mm, watchOS 3.2
Apple-Watch-Series-2-42mm, watchOS 4.2
Apple-Watch-Series-2-42mm, watchOS 5.2
Apple-Watch-Series-3-38mm, watchOS 4.2
Apple-Watch-Series-3-38mm, watchOS 5.2
Apple-Watch-Series-3-42mm, watchOS 4.2
Apple-Watch-Series-3-42mm, watchOS 5.2
Apple-Watch-Series-4-40mm, watchOS 5.2
Apple-Watch-Series-4-44mm, watchOS 5.2
iPhone-5s, 11.3
iPhone-5s, 12.2
iPhone-5s, 10.0
iPhone-5s, 9.0
iPhone-6, 11.3
iPhone-6, 12.2
iPhone-6, 10.0
iPhone-6, 9.0
iPhone-6-Plus, 11.3
iPhone-6-Plus, 12.2
iPhone-6-Plus, 10.0
iPhone-6-Plus, 9.0
iPhone-6s, 11.3
iPhone-6s, 12.2
iPhone-6s, 10.0
iPhone-6s, 9.0
iPhone-6s-Plus, 11.3
iPhone-6s-Plus, 12.2
iPhone-6s-Plus, 10.0
iPhone-6s-Plus, 9.0
iPhone-7, 11.3
iPhone-7, 12.2
iPhone-7-Plus, 11.3
iPhone-7-Plus, 12.2
iPhone-8, 11.3
iPhone-8, 12.2
iPhone-8-Plus, 11.3
iPhone-8-Plus, 12.2
iPhone-SE, 11.3
iPhone-SE, 12.2
iPhone-SE, 10.0
iPhone-X, 11.3
iPhone-X, 12.2
iPad-Air, 11.3
iPad-Air, 12.2
iPad-Air, 10.0
iPad-Air, 9.0
iPad-Air-2, 11.3
iPad-Air-2, 12.2
iPad-Air-2, 10.0
iPad-Air-2, 9.0
iPad--5th-generation-, 11.3
iPad--5th-generation-, 12.2
iPad-Pro--9-7-inch-, 11.3
iPad-Pro--9-7-inch-, 12.2
iPad-Pro, 11.3
iPad-Pro, 12.2
iPad-Pro--12-9-inch---2nd-generation-, 11.3
iPad-Pro--12-9-inch---2nd-generation-, 12.2
iPad-Pro--10-5-inch-, 11.3
iPad-Pro--10-5-inch-, 12.2
Apple-TV-1080p, tvOS 10.0
Apple-TV-1080p, tvOS 12.2
Apple-TV-1080p, tvOS 11.3
iPhone-XS, 12.2
iPhone-XS-Max, 12.2
iPad--6th-generation-, 12.2
iPad-Pro--11-inch-, 12.2
iPad-Pro--12-9-inch---3rd-generation-, 12.2
iPhone-XR, 12.2
iPad-Air--3rd-generation-, 12.2
iPhone-5, 10.0
iPhone-5, 9.0
iPad-Pro--9-7-inch-, 10.0
iPad-Pro, 10.0
Apple-TV-4K-4K, tvOS 12.2
Apple-TV-4K-4K, tvOS 11.3
Apple-TV-4K-1080p, tvOS 12.2
Apple-TV-4K-1080p, tvOS 11.3
iPhone-4s, 9.0
iPad-2, 9.0
iPad-Retina, 9.0`

However, when attempting to use the run command for my ionic project with:
ionic cordova run --target="iPhone-X

There is an issue as follow:
`...
** BUILD SUCCEEDED **

Command finished with error code 0: xcodebuild -workspace,Quizionic4.xcworkspace,-scheme,Quizionic4,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/flavio/Quizionic4/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/flavio/Quizionic4/platforms/ios/build/sharedpch,-UseModernBuildSystem=0
No scripts found for hook "before_deploy".
Error: spawn /Users/flavio/Quizionic4/node_modules/ios-sim/src/bin/ios-sim ENOENT
[ERROR] An error occurred while running subprocess cordova.

    cordova run ios --verbose --target iPhone-X exited with exit code 1.
    
    Re-running this command with the --verbose flag may provide more information.

ionic:utils-process onBeforeExit handler: process.exit received +0ms
ionic:utils-process onBeforeExit handler: running 2 functions +0ms
ionic:utils-process onBeforeExit handler: exiting (exit code 1) +25ms`

Any idea?

from ios-sim.

crabbydavis avatar crabbydavis commented on June 29, 2024

@fpassa can you post your ionic info?

from ios-sim.

felimoles avatar felimoles commented on June 29, 2024

run from xCode, It takes a few days to fix this :/ (the prev xcode version same problem).

me try solve this in the prev version of xcode:

reinstall xcode
reinstall ionic
reinstall node
reinstall cordova

Nothing worked. so sad

from ios-sim.

shazron avatar shazron commented on June 29, 2024

@fpassa @alexpvieira yes, i mentioned that starting the emulator will not work in my comment #253 (comment)

I'm writing tests as I go along, so that's why it's taking longer. The previous versions did not have tests.

from ios-sim.

SCasarotto avatar SCasarotto commented on June 29, 2024

I don't know if this helps but the RN community ran into the same issue. I don't know how ios-sim handles this but thought I would share some of their discussion on the issue. react-native-community/cli#138

from ios-sim.

leonardomontes avatar leonardomontes commented on June 29, 2024

... debugging with command line "iOS-sim start -d="iPhone-X" with ios-sim@next

helpers.js line 248:
ret_obj.runtime has value => "iOS 12.2"
list.devices has values starting with com.apple.CoreSimulator...

so it will not match any of those values...

image

from ios-sim.

shazron avatar shazron commented on June 29, 2024

thanks! - yes there are several places in the code where we need to do fixDeviceGroup, I have been fixing them as I find them

from ios-sim.

Adza93 avatar Adza93 commented on June 29, 2024

@shazron it is not working for me. I have updated ios-sim to latest @next.

I get the error message
Device id for device name "iPhone 7" and runtime "iOS 12.2" could not be found, or is not available.
[ERROR] An error occurred while running cordova run ios --target "iPhone-7, 12.2" (exit code 1).

when I run ionic cordova run --list i get empty list
Available ios devices:

But when I try ios-sim showdevicetypes i get regular list
Apple-TV-1080p, tvOS 12.2
Apple-TV-4K-4K, tvOS 12.2
Apple-TV-4K-1080p, tvOS 12.2
.....
...
......
iPhone-5s, 11.4

from ios-sim.

Adza93 avatar Adza93 commented on June 29, 2024

My ionic info

`
@ionic/cli-utils : 1.19.3
ionic (Ionic CLI) : 3.20.1

global packages:

cordova (Cordova CLI) : 8.1.2 ([email protected]) 

local packages:

@ionic/app-scripts : 3.2.0
Cordova Platforms  : android 6.4.0 ios 4.3.1
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
ios-deploy        : 1.9.4 
ios-sim           : ios-sim/9.0.0-dev.4 darwin-x64 node-v10.13.0 
Node              : v10.13.0
npm               : 6.4.1 
OS                : macOS
Xcode             : Xcode 10.2 Build version 10E125 

Environment Variables:
`

from ios-sim.

doingfr avatar doingfr commented on June 29, 2024

Based on previous answered, I succeed in launching my app on an iPad with this command

cordova run ios --target="iPad-Air-2,com.apple.CoreSimulator.SimRuntime.iOS-12-2" --buildFlag="-UseModernBuildSystem=0"

from ios-sim.

crabbydavis avatar crabbydavis commented on June 29, 2024

@devsontx Have you gotten live reload to work?

from ios-sim.

crabbydavis avatar crabbydavis commented on June 29, 2024

Going down from ios-sim 9.0.0-dev.4 to 8 was the trick to get live reload working for me again. Thanks @leonardomontes !!

from ios-sim.

leonardomontes avatar leonardomontes commented on June 29, 2024

... although live-reload seems to work, I'm experiencing issues with it:

  1. Developer Tools Inspector doesn't show any code / html / css...

... anyone else experiencing this?

Going to try and downgrade XCode...

from ios-sim.

shazron avatar shazron commented on June 29, 2024

@Adza93 Hmm, I get the right info. Did you install ios-sim according to my instructions, how did you install it? what does xcrun simctl list --json show?

Note that I can only test on Cordova, not Ionic.

from ios-sim.

shazron avatar shazron commented on June 29, 2024

If it was installed properly for Cordova, the first three lines should be this (assuming you don't have a device connected):

Available ios devices:
Available ios virtual devices:
ios-sim.getdevicetypes is deprecated, use ShowDeviceTypesCommand instead.

from ios-sim.

Adza93 avatar Adza93 commented on June 29, 2024

@shazron
I did upgrade of ios-sim@next at the root location of the project. After your comment I also did following steps

cd platforms/ios
npm install ios-sim@next

But it did not help.

output for xcrun simctl list --json

> aleksandar$ xcrun simctl list --json

{
"devicetypes" : [
{
"name" : "iPhone 4s",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 4s.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-4s"
},
{
"name" : "iPhone 5",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 5.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-5"
},
{
"name" : "iPhone 5s",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 5s.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-5s"
},
{
"name" : "iPhone 6",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 6.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6"
},
{
"name" : "iPhone 6 Plus",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 6 Plus.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus"
},
{
"name" : "iPhone 6s",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 6s.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s"
},
{
"name" : "iPhone 6s Plus",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 6s Plus.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus"
},
{
"name" : "iPhone 7",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 7.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7"
},
{
"name" : "iPhone 7 Plus",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 7 Plus.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus"
},
{
"name" : "iPhone 8",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 8.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8"
},
{
"name" : "iPhone 8 Plus",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 8 Plus.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus"
},
{
"name" : "iPhone SE",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone SE.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE"
},
{
"name" : "iPhone X",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone X.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-X"
},
{
"name" : "iPhone Xs",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone Xs.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS"
},
{
"name" : "iPhone Xs Max",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone Xs Max.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS-Max"
},
{
"name" : "iPhone Xʀ",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone Xʀ.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XR"
},
{
"name" : "iPad mini (5th generation)",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad mini (5th generation).simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini--5th-generation-"
},
{
"name" : "iPad Air (3rd generation)",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad Air (3rd generation).simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air--3rd-generation-"
},
{
"name" : "iPad 2",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad 2.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-2"
},
{
"name" : "iPad Retina",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad Retina.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Retina"
},
{
"name" : "iPad Air",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad Air.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air"
},
{
"name" : "iPad mini 2",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad mini 2.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini-2"
},
{
"name" : "iPad mini 3",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad mini 3.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini-3"
},
{
"name" : "iPad mini 4",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad mini 4.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini-4"
},
{
"name" : "iPad Air 2",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad Air 2.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air-2"
},
{
"name" : "iPad (5th generation)",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad (5th generation).simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--5th-generation-"
},
{
"name" : "iPad Pro (9.7-inch)",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad Pro (9.7-inch).simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-"
},
{
"name" : "iPad Pro (12.9-inch)",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad Pro (12.9-inch).simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro"
},
{
"name" : "iPad Pro (12.9-inch) (2nd generation)",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad Pro (12.9-inch) (2nd generation).simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-"
},
{
"name" : "iPad Pro (10.5-inch)",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad Pro (10.5-inch).simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--10-5-inch-"
},
{
"name" : "iPad (6th generation)",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad (6th generation).simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--6th-generation-"
},
{
"name" : "iPad Pro (11-inch)",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad Pro (11-inch).simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--11-inch-"
},
{
"name" : "iPad Pro (12.9-inch) (3rd generation)",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPad Pro (12.9-inch) (3rd generation).simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---3rd-generation-"
},
{
"name" : "Apple TV",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/Apple TV.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p"
},
{
"name" : "Apple TV 4K",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/Apple TV 4K.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-4K"
},
{
"name" : "Apple TV 4K (at 1080p)",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/Apple TV 4K (at 1080p).simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-1080p"
},
{
"name" : "Apple Watch - 38mm",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/Apple Watch - 38mm.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-38mm"
},
{
"name" : "Apple Watch - 42mm",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/Apple Watch - 42mm.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-42mm"
},
{
"name" : "Apple Watch Series 2 - 38mm",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/Apple Watch Series 2 - 38mm.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-38mm"
},
{
"name" : "Apple Watch Series 2 - 42mm",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/Apple Watch Series 2 - 42mm.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-42mm"
},
{
"name" : "Apple Watch Series 3 - 38mm",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/Apple Watch Series 3 - 38mm.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-38mm"
},
{
"name" : "Apple Watch Series 3 - 42mm",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/Apple Watch Series 3 - 42mm.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-42mm"
},
{
"name" : "Apple Watch Series 4 - 40mm",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/Apple Watch Series 4 - 40mm.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-4-40mm"
},
{
"name" : "Apple Watch Series 4 - 44mm",
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/Apple Watch Series 4 - 44mm.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-4-44mm"
}
],
"runtimes" : [
{
"bundlePath" : "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 11.4.simruntime",
"availabilityError" : "",
"buildversion" : "15F79",
"availability" : "(available)",
"isAvailable" : true,
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-4",
"version" : "11.4",
"name" : "iOS 11.4"
},
{
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime",
"availabilityError" : "",
"buildversion" : "16E226",
"availability" : "(available)",
"isAvailable" : true,
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-12-2",
"version" : "12.2",
"name" : "iOS 12.2"
},
{
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/tvOS.simruntime",
"availabilityError" : "",
"buildversion" : "16L225",
"availability" : "(available)",
"isAvailable" : true,
"identifier" : "com.apple.CoreSimulator.SimRuntime.tvOS-12-2",
"version" : "12.2",
"name" : "tvOS 12.2"
},
{
"bundlePath" : "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/watchOS.simruntime",
"availabilityError" : "",
"buildversion" : "16T224",
"availability" : "(available)",
"isAvailable" : true,
"identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-5-2",
"version" : "5.2",
"name" : "watchOS 5.2"
}
],
"devices" : {
"com.apple.CoreSimulator.SimRuntime.tvOS-12-2" : [
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "Apple TV",
"udid" : "5077B8BB-D341-4581-9012-623F498645A3",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "Apple TV 4K",
"udid" : "02C31044-B231-40B9-B5DC-5E6CDD535155",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "Apple TV 4K (at 1080p)",
"udid" : "2D970F84-55C8-4E6F-8107-BE838ACE360E",
"availabilityError" : ""
}
],
"com.apple.CoreSimulator.SimRuntime.iOS-11-4" : [
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 5s",
"udid" : "D14B5BC1-6B56-46D1-ACF8-7382AE62865F",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 6",
"udid" : "67DC02EE-8430-402A-BA6B-8889243D01FD",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 6 Plus",
"udid" : "5BE62E87-414C-4FB6-A6E9-FB6BE3DA708E",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 6s",
"udid" : "CE701A47-9E62-4A2F-9138-60E300467007",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 6s Plus",
"udid" : "E1434DA4-86DD-490D-BFBE-032B08CC198C",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 7",
"udid" : "E50142B3-0B96-46CD-94D4-379A41FEFC3A",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 7 Plus",
"udid" : "3D1068C1-BA43-4031-A1F6-4695A3376664",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 8",
"udid" : "27B0DE6A-D934-4CFC-B9B1-979AA9AE3B23",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 8 Plus",
"udid" : "8D8AC611-39C6-4D9C-8F23-383E68976057",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone SE",
"udid" : "2C5FA1C7-8FD5-484C-A3C4-C65FFD0662A7",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone X",
"udid" : "79D2C934-E63B-445D-B2D6-966EE2198410",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Air",
"udid" : "6C3553EC-FE6F-4076-9267-702AF7860C00",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Air 2",
"udid" : "1EFCC014-2462-4901-885C-F5CCA128BAF4",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad (5th generation)",
"udid" : "CF05FD6F-5570-4E73-BCB4-0E10E7EFBE46",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Pro (9.7-inch)",
"udid" : "DE1FD48C-017F-4580-9F8F-94F8D577B97D",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Pro (12.9-inch)",
"udid" : "4E8D37E1-806E-48CF-A4B0-3E260078326F",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Pro (12.9-inch) (2nd generation)",
"udid" : "DFAB1558-332A-41E5-95E6-8A472BD84C2B",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Pro (10.5-inch)",
"udid" : "A70E541C-C797-4239-97C2-96219BA3622A",
"availabilityError" : ""
}
],
"com.apple.CoreSimulator.SimRuntime.watchOS-5-2" : [
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "Apple Watch Series 2 - 38mm",
"udid" : "7296C512-4612-4E9A-824C-B2924EDA862B",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "Apple Watch Series 2 - 42mm",
"udid" : "CB20D5F5-361C-4E3E-85E4-1826D5087520",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "Apple Watch Series 3 - 38mm",
"udid" : "BF7B87A5-BF08-49EE-A860-28A64F0C5B0A",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "Apple Watch Series 3 - 42mm",
"udid" : "60B74A2B-61C4-45DC-825A-D380072DD6DF",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "Apple Watch Series 4 - 40mm",
"udid" : "1CC0969E-7941-4C59-9831-EBD3E741A4D8",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "Apple Watch Series 4 - 44mm",
"udid" : "679EBA2F-3753-45D4-A16C-D12B6F9208F1",
"availabilityError" : ""
}
],
"com.apple.CoreSimulator.SimRuntime.iOS-12-2" : [
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 5s",
"udid" : "BE2D764F-72C0-401C-8E12-8E32BA502037",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 6",
"udid" : "F07425AE-7712-43B1-B987-8EEEFBE9908F",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 6 Plus",
"udid" : "59B39758-1EC4-4EF6-9A2E-0DD1F87ADC8E",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 6s",
"udid" : "18AB9159-BF51-4846-89A5-5D5A88194297",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 6s Plus",
"udid" : "B557EDB4-15F6-4B7F-AB71-FC5354689954",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 7",
"udid" : "2439EBDD-D458-48B4-B524-DA850C311775",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 7 Plus",
"udid" : "A3739703-A36A-44D9-B82E-62D3666CA853",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 8",
"udid" : "041E4CA5-7C33-4500-9438-119F247173BE",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 8 Plus",
"udid" : "707D8549-EF3E-454E-BC7A-593B3EC0E6D3",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone SE",
"udid" : "63BF90ED-E85C-4BC7-B441-AA082C43A83D",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone X",
"udid" : "3D7B6980-1783-491A-8F81-09FB3A83519E",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone Xs",
"udid" : "C101781E-C0B0-43E4-95F7-C8775B47364A",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone Xs Max",
"udid" : "24FF049A-41B2-4D50-BB04-049A0B2E8263",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone Xʀ",
"udid" : "F4C441F2-6A0A-4DA4-83E4-59E4ABC9681D",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Air (3rd generation)",
"udid" : "7198A0F4-B6A2-4512-BDAC-EA2041F46988",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Air",
"udid" : "8FBB55F1-BD4E-402C-A62F-0581DC475068",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Air 2",
"udid" : "618CC9E8-8650-48F7-82CA-CA14116B7F5A",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad (5th generation)",
"udid" : "A63454F5-C9A3-4CA0-9815-97D3DC2BE46B",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Pro (9.7-inch)",
"udid" : "0E69CDE8-E3DF-473F-AED1-3A30510D55CD",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Pro (12.9-inch)",
"udid" : "BD88CF91-D337-407F-BD39-38E78023E87B",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Pro (12.9-inch) (2nd generation)",
"udid" : "85C6DB40-30E9-4C97-BF73-13C5879BBBEC",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Pro (10.5-inch)",
"udid" : "33CDC48E-5DA3-4C94-875E-26BAC12B9AF2",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad (6th generation)",
"udid" : "31C898B4-32EB-4ECD-99FA-E1451F2B691C",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Pro (11-inch)",
"udid" : "5CD62E06-A349-4DE0-A31E-2AAB6683CD33",
"availabilityError" : ""
},
{
"availability" : "(available)",
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPad Pro (12.9-inch) (3rd generation)",
"udid" : "70F10A2E-07A5-45A7-A5B8-4B27BB682544",
"availabilityError" : ""
}
]
},
"pairs" : {
"981506FB-BEA1-4CA0-B26E-AC0E11BF4206" : {
"watch" : {
"name" : "Apple Watch Series 4 - 44mm",
"udid" : "679EBA2F-3753-45D4-A16C-D12B6F9208F1",
"state" : "Shutdown"
},
"phone" : {
"name" : "iPhone Xs Max",
"udid" : "24FF049A-41B2-4D50-BB04-049A0B2E8263",
"state" : "Shutdown"
},
"state" : "(active, disconnected)"
},
"D7CE648D-BC4A-4FE9-86FE-CD5AA60EEE7D" : {
"watch" : {
"name" : "Apple Watch Series 4 - 40mm",
"udid" : "1CC0969E-7941-4C59-9831-EBD3E741A4D8",
"state" : "Shutdown"
},
"phone" : {
"name" : "iPhone Xs",
"udid" : "C101781E-C0B0-43E4-95F7-C8775B47364A",
"state" : "Shutdown"
},
"state" : "(active, disconnected)"
}
}
}

from ios-sim.

Adza93 avatar Adza93 commented on June 29, 2024

@shazron one more info, it works when i specify new naming convenction of CoresimulatorRuntime

so this command starts simulator as it should
ionic cordova run ios -l -c -s --target="iPhone-X,com.apple.CoreSimulator.mRuntime.iOS-12-2" -- --buildFlag="-UseModernBuildSystem=0"

but ios-sim showdevicetypes returns old "preffered" naming:

Aleksandars-MacBook-Pro-PETROL:mBillsIonic aleksandaradzic$ ios-sim showdevicetypes
Apple-TV-1080p, tvOS 12.2
Apple-TV-4K-4K, tvOS 12.2
Apple-TV-4K-1080p, tvOS 12.2
iPhone-5s, 11.4
iPhone-5s, 12.2
iPhone-6, 11.4
iPhone-6, 12.2
iPhone-6-Plus, 11.4
iPhone-6-Plus, 12.2
iPhone-6s, 11.4
iPhone-6s, 12.2
iPhone-6s-Plus, 11.4
iPhone-6s-Plus, 12.2
iPhone-7, 11.4
iPhone-7, 12.2
iPhone-7-Plus, 11.4
.....

Am I still missing something?

from ios-sim.

sertal70 avatar sertal70 commented on June 29, 2024

Just to confirm that @leonardomontes workaround did the job for me too, so I can continue using the stable ios-sim version.

from ios-sim.

shazron avatar shazron commented on June 29, 2024

@Adza93 yes, the proper @next version of ios-sim was not installed properly. I assure you this issue has been fixed in @next, it's probably an npm issue not installing it properly. Try npm uninstall ios-sim before installing it to see if it makes a difference. You should see the deprecation notice when running cordova run --list if it was installed properly. Try also to verify that the version of ios-sim in platforms/ios/node_modules is correct.

ios-sim showdevicetypes, if you installed ios-sim@next globally using the -g flag, should report the correct values as well.

from ios-sim.

sertal70 avatar sertal70 commented on June 29, 2024

@Adza93 the issue about Safari debugging not in sync with iOS 12.2 has been resolved by Apple with the latest macOS update 10.14.4 which contains the Safari update to version 12.1

from ios-sim.

shazron avatar shazron commented on June 29, 2024

For global install of @next, the version should be:

$ ios-sim --version
ios-sim/9.0.0-dev.4 darwin-x64 node-v8.15.1

from ios-sim.

baotpham avatar baotpham commented on June 29, 2024

I received this error:

Error: ENOENT: no such file or directory, stat '/Users/baothienpham/Library/Logs/CoreSimulator/ACD306CC-304E-47BC-8354-DC397C547C6A/system.log'

I also did install ios-sim@next.

from ios-sim.

shazron avatar shazron commented on June 29, 2024

@baotpham context? this happened after running which command

from ios-sim.

baotpham avatar baotpham commented on June 29, 2024

@shazron I ran

cordova emulate ios --debug --target "iPhone-X,com.apple.CoreSimulator.SimRuntime.iOS-12-2" --buildFlag='-UseModernBuildSystem=0'

and

cordova emulate ios --target="iPhone-X"

thanks for the help!

from ios-sim.

bbb81 avatar bbb81 commented on June 29, 2024

Thank you for your great support @shazron !

Everything is working fine now (as before the Xcode update)

quasar dev -m cordova -T ios opens a default simulator as expected.

Thank you for your hard work @shazron! :)

from ios-sim.

shazron avatar shazron commented on June 29, 2024

One snafu -- the ios-sim CLI now requires node 8. cordova supports node 6 and above, so it might be one source of problems. There is one place where I'm using the object spread operator, I'll have to find an alternative for node 6 so it runs in cordova with node 6. The joys of backward compatibility!

from ios-sim.

shazron avatar shazron commented on June 29, 2024

Looks like ios-sim 9 will not be compatible for Cordova if you have node 6. Thus I'm also preparing a ios-sim 8.x patch release as well for Cordova.

from ios-sim.

Kunj-Choksi avatar Kunj-Choksi commented on June 29, 2024

@shazron
No success in 2020.
Please check this one.

ios-sim version
ios-sim/9.0.0 darwin-x64 node-v13.12.0

Cordova version
10.0.0

Cordova iOS platform version
ios 5.1.1

I tried this cmd
sudo cordova emulate ios --debug --target "iPhone-SE--2nd-generation-, 13.5" --buildFlag='-UseModernBuildSystem=0'

Check the attached error image also.

Screenshot 2020-08-09 at 3 11 44 PM

Any hack to get over this error. Just tired of launching the app from Xcode every time : (.
Thanks in advance. Let me know if you need anything.

from ios-sim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.