मैं Xcode 6 और iOS 8.आयनिक त्रुटि के साथ वेबपृष्ठ को लोड करने में विफल: सर्वर
को अपडेट करते समय परियोजनाओं मैं में त्रुटि निम्न मिल चलाने के लिए कोशिश कर के बाद आयोनिक परियोजनाओं के साथ समस्या हो रही है करने के लिए कनेक्ट नहीं कर सका Xcode:
Failed to load webpage with error: Could not connect to the server.
पूर्ण लॉग है:
2014-10-11 14:08:29.468 test[23293:109668] Apache Cordova native platform version 3.6.3 is 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 to 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 to page load.
2014-10-11 14:08:30.764 test[23293:109668] Failed to load webpage with error: Could not connect to the server.
यहां तक कि जब ईओण और कॉर्डोबा अपडेट करने का प्रयास और एक नई परियोजना अप पॉपिंग इस त्रुटि रहता है शुरू।
मुझे इस विशेष त्रुटि के साथ कोई धागा नहीं मिला और मुझे यकीन नहीं है कि यह आईओएस 8 संगतता मुद्दा है या मेरे सेटअप के साथ कुछ गड़बड़ है।
धन्यवाद!
संपादित करें:
<!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 will be a 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>
और app.js (बाकी के साथ संकलन से पहले: क्या index.html में है और app.js
index.html पर
थोड़ा और अधिक जानकारी एनजीबीपी का उपयोग कर फाइलों में से):
angular.module('app', [
'ionic',
// Common requirements
'templates-app',
'templates-common',
// Common Components
'app.auth',
// All 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 a session cache validation object
$sessionStorage.updated = {};
}])
.controller('AppCtrl', ['$scope', '$location', function AppCtrl ($scope, $location) {
}])
;
क्या आपने सत्यापित किया है कि जिस सर्वर से आप कनेक्ट करना चाहते हैं वह भी उपलब्ध है? –
आपको हमें यह दिखाने की ज़रूरत है कि आपका 'index.html' कैसे कोड किया गया है। अधिक जानकारी प्रदान करने की आवश्यकता है? – frank
@ScottHunter मेरे पास है, भले ही यह उपलब्ध न हो और ऐप के संसाधन स्थानीय आयनिक अभी भी लोड हो जाएं, है ना? – BarakChamo