Build14 not working when building

Hi, I’ve recently updated to beta14 and now when I build the proyect it doesn’t work (android and ios)

I don’t know what to do cause I only get a blank screen with a footer


Can you give some more information? Does it work when you use ionic serve and view it in a browser or do you get errors in the console?

It works using ionic serve and no errors in the console. thats weird

Using build 13 everything was all right.No errors and working on android and ios

Do you get any errors in logcat or xcode? And are you dynamically showing content by any chance?

Nothing wrong in logcat or xcode:

2015-01-16 18:41:04.500 QueDaDas[21143:696577] Apache Cordova native platform version 3.7.0 is starting.
2015-01-16 18:41:04.501 QueDaDas[21143:696577] Multi-tasking -> Device: YES, App: YES
2015-01-16 18:41:04.503 QueDaDas[21143:696577] Unlimited access to network resources
2015-01-16 18:41:04.830 QueDaDas[21143:696577] [CDVTimer][keyboard] 0.118971ms
2015-01-16 18:41:04.999 QueDaDas[21143:696577] [CDVTimer][socialsharing] 168.567002ms
2015-01-16 18:41:04.999 QueDaDas[21143:696577] [CDVTimer][TotalPluginStartup] 169.403970ms
2015-01-16 18:41:05.071 QueDaDas[21143:696577] Resetting plugins due to page load.
2015-01-16 18:41:05.544 QueDaDas[21143:696577] Finished load of: file:///Users/daniellopezmesa/Library/Developer/CoreSimulator/Devices/46A91D53-47B9-47B8-8A8E-A49F3A90A18A/data/Containers/Bundle/Application/D7D4FD68-177F-4D3F-BBE2-46FEB728DEFB/

Here is a screenshot:

And my index.html:

<ion-footer-bar align-title="left" class="bar-stable">
  <h1 class="title">Advertise Here!</h1>
<!-- your app's js -->
<script id="templates/form-errors.html" type="text/ng-template">
<div class="form-error" ng-message="maxlength">This field is must be less than 50 characters</div>
  <div class="form-error" ng-message="required">This field is required.</div>
  <div class="form-error" ng-message="minlength">This field is must be at least 5 characters.</div>
<script src="js/services.js"></script>
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>

And yes, I show dynamic content once the user is log in

Okay so how are you declaring your views? Do you have it wrapped in an ion-view? There can be a number of things going wrong. I would suggest creating one of the starter apps from the command line and comparing what is going on there with your code.

it’s a huge app that was working with build 13 (until yesterday) and now… I think I will move back to 13 and start from scratch when the app is finished


I’m not saying to start from scratch. I’m saying create a starter app and compare the way it initializes states and views, because it seems like your app isn’t including the html for the view. If it is set up correctly in the browser but not on the device it is usually a problem with finding the html. The browser can find html files better than the device, so maybe you are referencing them like www/templates/home.html when it should be templates/home.html or something of the sort.

This is my app.js

.state(‘app’, {
url: “/app”,
abstract: true,
templateUrl: “templates/menu.html”,
controller: ‘MenuCtrl’

.state('login', {
  url: "/login",
  templateUrl: "templates/login.html",
  controller: 'LoginCtrl'

.state('signup', {
  url: "/signup",
  templateUrl: "templates/signup.html",
  controller: 'SignUpCtrl'

When the app starts the index.html loads the body and the first state will be ‘login’, but nothing happens

I really appreciate your help

If you are using SASS, make sure and recompile. That was my main issue when going to Beta14.

Do you have a fallback in your app.js?


Or how are you directing to the state?

Finally I’ve found what was wrong: both login and signup states must be declared before the menu state.
Thanks :slight_smile:

Now I have another problem:

Any help would be appreciated