问题
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.
- Make sure that you have linked your project with Foundation.framework and CFNetwork.framework
- Make sure the Foundation framework include is before CFNetwork.
- 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