xcode - ionic Failed to load webpage with error: Could not connect to the server -



xcode - ionic Failed to load webpage with error: Could not connect to the server -

i'm having issue ionic projects after updating xcode 6 , ios 8.

when trying run projects next error in xcode:

failed load webpage error: not connect server.

the total log is:

2014-10-11 14:08:29.468 test[23293:109668] apache cordova native platform version 3.6.3 starting. 2014-10-11 14:08:29.469 test[23293:109668] multi-tasking -> device: yes, app: yes 2014-10-11 14:08:29.495 test[23293:109668] unlimited access network resources 2014-10-11 14:08:29.866 test[23293:109668] [cdvtimer][keyboard] 0.079989ms 2014-10-11 14:08:29.866 test[23293:109668] [cdvtimer][totalpluginstartup] 0.284970ms 2014-10-11 14:08:30.721 test[23293:109668] resetting plugins due page load. 2014-10-11 14:08:30.764 test[23293:109668] failed load webpage error: not connect server.

even when trying update ionic , cordova , starting new project error keeps popping up.

i couldn't find threads particular error , i'm not sure if ios 8 compatibility issue or messed setup.

thanks!

edit:

a bit more info on what's in index.html , app.js

index.html:

<!doctype html> <html ng-app="app" ng-controller="appctrl"> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <!-- compiled css --> <link rel="stylesheet" type="text/css" href="assets/app-0.0.1.css" /> <!-- compiled javascript --> <script type="text/javascript" src="src/app/app.js"></script> <!-- cordova script (this 404 during development) --> <script src="cordova.js"></script> </head> <body > <ion-nav-view></ion-nav-view> <!-- load deferred scripts --> <!-- google maps --> <script src='http://maps.googleapis.com/maps/api/js?sensor=true&callback=googlemapsloaded' defer async></script> </body> </html>

and app.js (before compilation rest of files using ngbp):

angular.module( 'app', [ 'ionic', // mutual requirements 'templates-app', 'templates-common', // mutual components 'app.auth', // page modules 'app.businesses', 'app.business', 'app.search', 'app.branch', 'app.profile', 'app.feed', // other dependencies 'ui.router' ]) .config(['$stateprovider', '$urlrouterprovider', function myappconfig ($stateprovider, $urlrouterprovider) { $stateprovider .state('app', { url: "/app", abstract: true, templateurl: "menu/menu.tpl.html", controller: 'appctrl' }); $urlrouterprovider.otherwise( 'app/feed' ); }]) .run(['$ionicplatform', 'appauthservice', '$sessionstorage', function($ionicplatform, appauthservice, $sessionstorage) { // initialize ionic styles $ionicplatform.ready(function() { if(window.statusbar) { // org.apache.cordova.statusbar required statusbar.styledefault(); statusbar.stylelightcontent(); } }); // initialize app authentication service appauthservice.init(); // initialize session cache validation object $sessionstorage.updated = {}; }]) .controller( 'appctrl', ['$scope', '$location', function appctrl ($scope, $location) { }]) ;

i had same problem.

i opened ios project in platform folder via xcode, forgot codebase in xcode folder not date , hence broken.

to new code in xcode project utilize command:

ionic prepare ios

if problem rooted in same mine should help.

xcode cordova ios8 ionic-framework

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -