离子IOS应用程序NSURLConnection错误1100 [英] Ionic IOS app NSURLConnection error 1100

查看:299
本文介绍了离子IOS应用程序NSURLConnection错误1100的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将我的离子应用程序作为ios本机应用程序运行,并且遇到一个奇怪的URL连接错误,该错误阻止数据填充到我的应用程序视图中.当我以iphone的形式在网络浏览器中运行该应用程序时,它可以正常运行并填充,但是在本机ios上运行时,它并没有使用API​​数据按预期填充页面.我已经检查了控制台,实际上已经调用了API,但是xcode控制台正在打印出填充页面数据的2个API调用的以下内容:

I am trying to run my ionic app as a ios native app and am getting a strange URL connection error that is preventing the data from being populated on my app's view. When I run the App in the web browser as an iphone it runs and populates fine, but when running it on the native ios it doesn't populate the page as expected using the API data. I have checked the console and the API is in fact being called, but the xcode console is printing out the following for the 2 API calls which populate the page's data:

2018-02-19 11:30:21.199933-0500 MyApp[1429:350591] NSURLConnection finished with error - code -1100
2018-02-19 11:30:21.202556-0500 MyApp[1429:350591] NSURLConnection finished with error - code -1100

我已经看到并看到代码-1100通常是一个找不到文件的问题类型,但是我不确定这将如何发生,因为它只是通过API调用返回数据,然后以离子卡格式存储.

I have looked and seen that code -1100 is typically a file not found type of issue, but I am unsure of how this would be happening, as it is just an API call being made to return the data, which is then being stored in an ionic card format.

推荐答案

您可以尝试以下步骤:

1) Delete node modules,plugins folder
2) ionic cordova platform remove ios
3) npm install
4) ionic cordova platform add ios
5) ionic cordova build ios

这篇关于离子IOS应用程序NSURLConnection错误1100的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆