Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 10 网络请求错误 #1

Open
jiazufei opened this issue Mar 3, 2017 · 5 comments
Open

iOS 10 网络请求错误 #1

jiazufei opened this issue Mar 3, 2017 · 5 comments

Comments

@jiazufei
Copy link

jiazufei commented Mar 3, 2017

Request Path: http://mobile.ximalaya.com/mobile/discovery/v1/recommends, params {
channel = "and-f5";
device = ios;
includeActivity = true;
includeSpecial = true;
scale = 2;
version = "4.3.26.2";
}
2017-03-03 16:00:08.618373 XiMaLY[4507:1402842] {0, 0}
2017-03-03 16:00:08.785888 XiMaLY[4507:1402842] GET ERROR: {
NSErrorFailingURLKey = "http://mobile.ximalaya.com/mobile/discovery/v1/recommends?channel=and-f5&device=ios&includeActivity=true&includeSpecial=true&scale=2&version=4.3.26.2";
NSErrorFailingURLStringKey = "http://mobile.ximalaya.com/mobile/discovery/v1/recommends?channel=and-f5&device=ios&includeActivity=true&includeSpecial=true&scale=2&version=4.3.26.2";
NSLocalizedDescription = "The Internet connection appears to be offline.";
NSUnderlyingError = "Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}";
"_kCFStreamErrorCodeKey" = 50;
"_kCFStreamErrorDomainKey" = 1;
}

@HansRove
Copy link
Owner

HansRove commented Mar 4, 2017

NSLocalizedDescription = "The Internet connection appears to be offline.";

@HansRove
Copy link
Owner

HansRove commented Mar 4, 2017

那个问题是说明你没联网请求,我亲自在虚拟机跑了一下,首页是没有问题的。至于你那个问题我猜想可能是因为iOS10 bug之一, 初装软件无法联网问题。http://bbs.25pp.com/thread-486561-1-1.html 你看下这篇,我虚拟机是iOS10.2没问题

@jiazufei
Copy link
Author

jiazufei commented Mar 6, 2017

问题已经解决,谢谢

另外代码部分好像没有找到CoreData数据库实现部分?论文中提及了

@HansRove
Copy link
Owner

HansRove commented Mar 7, 2017

....那论文并不是我的,我去年的毕业论文也是基本参考它写的,我项目中的存储 只是用简单的plist文件存储,比如个人信息页的账号密码,还有下载的音乐等。。时间太久我也快忘记了,因为项目里面命名及其不规范也懒得维护了!!最近正在尝试RN 或者 Weex开发尝试

@jiazufei
Copy link
Author

好的,谢谢,我尝试的理解YYCache,看看能不能把首页数据缓存,然后把理论实现过程写在论文里,这样答辩讲一下理论实现可以吗?
最近RN 或者 Weex不是被苹果拒审了嘛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants