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

使用YTKNetwork在ios8.2、8.3、8.4的系统app启动不起来,app直接闪退 #303

Closed
4 tasks done
XcqRomance opened this issue Jan 5, 2017 · 7 comments
Closed
4 tasks done

Comments

@XcqRomance
Copy link

XcqRomance commented Jan 5, 2017

提出问题前请先确认完成了下列几项步骤 New Issue Checklist

  • 我已经阅读过 贡献指南 I have read and understood the CONTRIBUTING guide
  • 我已经阅读过 程序文档 I have read the Documentation
  • 我已经证实这个问题来源于 YTKNetwork 本身,而不是其所依赖的 AFNetworking I have confirmed that this issue is caused by YTKNetwork, not AFNetworking
  • 我已经在项目的 问题列表 中搜索过并且没有找到类似问题 I have searched for a similar issue in the project and found none

问题描述 Issue Description

您好,我们app新建的swfit项目是用YTKNetwork作为网络请求的的库,使用carthage集成进来,然后在ios8.2、8.3、8.4的系统模拟器app启动就闪退,而9.0以上的系统运行都没有问题,我们app支持的最低部署版本时8.2的系统,Xcode的奔溃日志信息时下面的内容:
dyld: Symbol not found: _NSURLSessionTaskPriorityDefault
Referenced from: /Users/romance/Library/Developer/CoreSimulator/Devices/6D9D54BE-C804-4D1A-B9BF-5A91AE51D41E/data/Containers/Bundle/Application/D21360C5-B815-4E43-BA22-1A1351CD8059/FCSBookRoomDemo.app/Frameworks/YTKNetwork.framework/YTKNetwork
Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation
in /Users/romance/Library/Developer/CoreSimulator/Devices/6D9D54BE-C804-4D1A-B9BF-5A91AE51D41E/data/Containers/Bundle/Application/D21360C5-B815-4E43-BA22-1A1351CD8059/FCSBookRoomDemo.app/Frameworks/YTKNetwork.framework/YTKNetwork
项目上线紧急问题,希望能给解决方案!(我们公司测试机只有9.0的设备,以上测试的信息时在模拟器上的,出现这个问题是在项目上线后大量的苹果用户8.3、8.4系统的用户反馈安装app就直接闪退,我们就一个一个查,因为新提交的版本才加入这个网络请求的库,最后锁定的这个问题)

@skyline75489
Copy link
Contributor

See #223 升级到新版本

@XcqRomance
Copy link
Author

我这个是最新的版本,都已经是2.0.3的版本了 @skyline75489

@skyline75489
Copy link
Contributor

使用 Carthage 集成目前这个问题没有好的解决办法,可以改用 Pod 集成,或者修改源码,去掉 priority 有关内容

@XcqRomance
Copy link
Author

谢谢,我通过修改源代码已经解决了8.0+系统的奔溃问题!

@lancy lancy closed this as completed Feb 13, 2017
@yiwei19850813
Copy link

@skyline75489 真心奇怪了,想知道为什么Carthage不能够解决,而用pod可以呢。。。说是新增CFNetwork.framework,但是并没有什么用

@calvingit
Copy link

难道是?:carthage已经编译好了framework,在工程里面即使添加了CFNetwork,但是只是在自己的工程里链接,YTKNetwork.framework找不到;而pod是源码编译,能够链接上

@XcqRomance
Copy link
Author

XcqRomance commented Aug 10, 2017 via email

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

5 participants