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

在8.1上崩溃 dyld: Symbol not found: _NSURLSessionTaskPriorityDefault #223

Closed
keepyounger opened this issue Sep 8, 2016 · 7 comments
Closed

Comments

@keepyounger
Copy link

日志如下
dyld: Symbol not found: _NSURLSessionTaskPriorityDefault
Referenced from: /Users/lixy/Library/Developer/CoreSimulator/Devices/8C39E637-60EC-4DE9-BE8C-D8B14E367D2D/data/Containers/Bundle/Application/B413FFCA-2A5A-47AE-AA35-F4B85B58E280/yfw.app/Frameworks/YTKNetwork.framework/YTKNetwork
Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation
in /Users/lixy/Library/Developer/CoreSimulator/Devices/8C39E637-60EC-4DE9-BE8C-D8B14E367D2D/data/Containers/Bundle/Application/B413FFCA-2A5A-47AE-AA35-F4B85B58E280/yfw.app/Frameworks/YTKNetwork.framework/YTKNetwork

@skyline75489
Copy link
Contributor

感谢反馈,看样子是苹果内部 Framework 的一个 bug。请问是使用 Carthage 还是 Pod 安装的?

@skyline75489
Copy link
Contributor

http://stackoverflow.com/questions/24043532/dyld-symbol-not-found-nsurlauthenticationmethodclientcertificate-when-trying

这里提供的解决方案是调整依赖 Framework 的顺序

@keepyounger
Copy link
Author

恩 找到解决方案了 添加 cfnetwork framework 到YTKNetwork (貌似添加到项目工程里面无效) 参考

@keepyounger
Copy link
Author

keepyounger commented Sep 8, 2016

谢谢,不过最好的解决方案,好像是在pod里面指明需要CFNetwork,和顺序并无关系
880b6128-a516-4e54-8125-f9dde0d332cc

@maojj maojj closed this as completed in d0a0638 Sep 9, 2016
@maojj
Copy link
Member

maojj commented Sep 9, 2016

下个版本 2.0.1 会带上。

@maojj
Copy link
Member

maojj commented Sep 12, 2016

2.0.1 已发, fixed

@wmfgithub
Copy link

我使用的是carthage 安装的,最新版本还是没有解决8.x真机崩溃的问题。_NSURLSessionTaskPriorityDefault
Referenced from: /private/var/mobile/Containers/Bundle/Application/9261DC58-1CD8-40BC-8BE7-FD5284A36E7F/chehou.app/Frameworks/YTKNetwork.framework/YTKNetwork
Expected in: /System/Library/Frameworks/Foundation.framework/Foundation
in /private/var/mobile/Containers/Bundle/Application/9261DC58-1CD8-40BC-8BE7-FD5284A36E7F/chehou.app/Frameworks/YTKNetwork.framework/YTKNetwork

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

4 participants