-
Notifications
You must be signed in to change notification settings - Fork 254
List empty of devices simulator with Xcode 10.2 #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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:
...and nothing happens... Deploying onto a connected physical iOS device is possible without any problems... strange I checked this:
Specs:
|
Same Problem for me. Here is my ionic info Ionic: ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic) Cordova: cordova (Cordova CLI) : 8.0.0 System: ios-deploy : 2.0.0 |
Same problem here, my env is just like yours. |
Same issue after updating to Xcode 10.2 Edit: Downgraded to 10.1 with same issue. If I run 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: |
Has anyone been able to find a work-around until this gets fixed? |
@crabbydavis |
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. |
@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. |
@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 Workaround, try in the root of your cordova app after each time the cd platforms/ios
npm install ios-sim@next |
Sorry the workaround will not work, because of: apache/cordova-ios#567 |
@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 What are you suggesting I do? Sorry I'm confused right now... |
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. |
@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? |
I tried to open it with a empty new project and I'm having this error message This my
|
@mf222 use showdevicetypes not getdevicetypes |
@ewwwgiddings thanks, but I think I didn't explain myself well, I wasn't trying to run |
@jeansantana yes @mf222 see my comment previously where I referenced a cordova-ios issue, this is the issue you are getting. |
@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? |
@ewwwgiddings I think what jeansantana is saying is "when it's done" at least that's how I read it |
@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! |
Ok I've published a new ios-sim@next version that is cordova compatible, however cd platforms/ios
npm install ios-sim@next If people can test with that, that will be good. |
@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 |
@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. |
@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: Cordova: System: |
Hi, Available ios devices: However, when attempting to use the run command for my ionic project with: There is an issue as follow: 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
ionic:utils-process onBeforeExit handler: process.exit received +0ms Any idea? |
@fpassa can you post your ionic info? |
Tried with the
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. |
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 Nothing worked. so sad |
Running on real device is fine, but not on emulator. |
This works for me. Change the target and debug/release build type to suit your needs. |
Ok I've published a new ios-sim@next version (dev.4) that is fully cordova compatible.
For the workaround, try in the root of your cordova app after each time the 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. |
@shazron it is not working for me. I have updated ios-sim to latest @next. I get the error message when I run ionic cordova run --list i get empty list But when I try ios-sim showdevicetypes i get regular list |
My ionic info ` global packages:
local packages:
System:
Environment Variables: |
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" |
@devsontx Have you gotten live reload to work? |
with my Ionic 3 project:
works fine... I'm using ios-sim 8 though |
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 !! |
... although live-reload seems to work, I'm experiencing issues with it:
... anyone else experiencing this? Going to try and downgrade XCode... |
@Adza93 Hmm, I get the right info. Did you install ios-sim according to my instructions, how did you install it? what does Note that I can only test on Cordova, not Ionic. |
If it was installed properly for Cordova, the first three lines should be this (assuming you don't have a device connected):
|
@shazron cd platforms/ios But it did not help. output for xcrun simctl list --json > aleksandar$ xcrun simctl list --json{ |
@shazron one more info, it works when i specify new naming convenction of CoresimulatorRuntime so this command starts simulator as it should but ios-sim showdevicetypes returns old "preffered" naming:
Am I still missing something? |
Just to confirm that @leonardomontes workaround did the job for me too, so I can continue using the stable ios-sim version. |
@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
|
@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 |
For global install of @next, the version should be:
|
I received this error:
I also did install |
@baotpham context? this happened after running which command |
@shazron I ran
and
thanks for the help! |
One snafu -- the ios-sim CLI now requires |
Looks like |
Preparing an For the workaround, try in the root of your cordova app after each time the ios platform is added:
Note that only do this once I release the 8.0.1 patch |
@shazron ios-sim version Cordova version Cordova iOS platform version I tried this cmd Check the attached error image also. Any hack to get over this error. Just tired of launching the app from Xcode every time : (. |
See related #234
The text was updated successfully, but these errors were encountered: