Posts

Showing posts with the label Ionic

Solved: Ionic ENOENT Invalid device state error when using sudo on Mac

I was trying to launch a sample app on the newly released Ionic 2 Release Canditate . When I ran the command sudo ionic run ios --emulator , I encountered an error similar to this one which I shorted for display here: An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=163): Invalid device state Error: ENOENT: no such file or directory, stat '/Users/.../Library/Logs/CoreSimulator/.../system.log' After searching the internet for solutions, I was able to overcome the error by taking the following steps: Install the latest update to Xcode. Run xcode-select --install to make sure that Xcode command line tools is installed (as recommended by Mike Hartington on the Ionic Github page .) Run sudo chown -R username /Users/username to update my permissions which makes it so that I don't have to run sudo when running ionic commands (as recommended by  Zac Vineyard on his blog .) Run ionic run ios --emulator (this time ...

Slo-Mo: Ionic 2 Alpha vs 1.1 Sliding Animation on iPhone

Image
The Ionic team announced the alpha version of Ionic 2 yesterday. According to the article , Ionic 2 has a "new animation system" as well as "dramatically improved performance". I recorded two videos in slow motion comparing the difference between sliding forward and back using the default templates for Ionic 1 and Ionic 2, as well as the built-in Settings app.  on the iPhone 6 running iOS 8.3 and the iPhone 4 running 7.1.2. For each test app, I ran ionic run ios --device  to install it onto the physical device. The things I noticed in Ionic 2 are: On the iPhone 6, the sliding animation seems to be less choppy than on Ionic 1. After tapping a list item there is a longer delay than in Ionic 1 before the new screen starts sliding into view. On the iPhone 4, there is a noticeable blank-out flicker before sliding in the new view. Watch my videos and see if you agree: iPhone 6 iPhone 4 For reference, here is the ionic info output for each of th...