Swift - App getting crashed in IOS 8.4 on launch with error _NSURLSessionTaskPriorityDefault

半城伤御伤魂 提交于 2019-12-11 12:15:54

问题


App is getting crashed on launch, with error log

dyld: Symbol not found: _NSURLSessionTaskPriorityDefault Referenced from: /private/var/mobile/Containers/Bundle/Application/E302B99F-08D3-45C0-A8ED-F500052FF375/AppName.app/AppName Expected in: /System/Library/Frameworks/Foundation.framework/Foundation in /private/var/mobile/Containers/Bundle/Application/E302B99F-08D3-45C0-A8ED-F500052FF375/AppName.app/AppName

IOS Target Version : 8.0 Swift : version 2.2

Device: Iphone 6 Device Version 8.4


回答1:


I found the solution.

  1. Make sure that you have linked your project with Foundation.framework and CFNetwork.framework
  2. Make sure the Foundation framework include is before CFNetwork.
  3. If you already have this configuration in your project then once un-link these frameworks, clean your project and link them again.

My project has been working well after this, hope yours does as well.



来源:https://stackoverflow.com/questions/37225871/swift-app-getting-crashed-in-ios-8-4-on-launch-with-error-nsurlsessiontaskpri

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!