It was working fine in the simulator yesterday but now it's acting goofy. I happened to stumble on a way to get it working in the simulator though:
Normally to simulate the app on ios I run
$ ionic run ios
Which now shows the app but the "broken" version of it.
However, if I run
$ ionic run ios --livereload
Then my app works as expected! Unfortunately the ionic view app displays the broken version. Chrome (via ionic serve) shows the working version so I'm using that to develop now but I need to get this fixed. What's the troubleshooting process at this point?
Even though this worked on the web along with --livereload the issue all along was with a script href url.
The problem: The google maps js link was using "//path.to.us" so I had to manually prepend "http:" and viola.
Debugging this was terrible until I came up a good solution. Beware: this requires OS X or some serious hacking skills.
Here are the steps in order:
$ ionic build iosTheApp/platforms/ios/TheApp.xcodeproj in XcodeDebug > [Name of iOS device] > index.htmlconsole.logs from the beginning of the page load.This is awesome because now you can step through your code on an actual iOS device! I hope this will save some of you heaps of time. Best of luck!
Thanks to @sajclarke I found this article: https://developer.chrome.com/devtools/docs/remote-debugging