最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

swift - Reg: iOS 18.4, crash happens when we set false to the usesClassicLoadingMode of URLSessionConfiguration - Stack Overflow

programmeradmin1浏览0评论

crash happens when we set 'false' to the 'usesClassicLoadingMode' of URLSessionConfiguration in iOS 18.4,

let config = URLSessionConfiguration.default 
if #available(iOS 18.4, *) { 
   config.usesClassicLoadingMode = false 
}

Crash log:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFBoolean objectForKeyedSubscript:]: unrecognized selector sent to instance 0x1f655c390' *** First throw call stack: (0x188ae52ec 0x185f69a7c 0x188b4f67c 0x1889fcb84 0x1889fc4f0 0x191393bc8 0x1889ec8a0 0x1889ec6e4 0x191393ad0 0x191344dac 0x191344b58 0x107cfa064 0x107ce36d0 0x191343fcc 0x1891b3b18 0x1892dae58 0x189235c60 0x18921e270 0x18921d77c 0x18921a8ac 0x107ce0584 0x107cfa064 0x107ce891c 0x107ce95d8 0x107ceabcc 0x107cf5894 0x107cf4eb0 0x212f51660 0x212f4e9f8) terminating due to uncaught exception of type NSException

Can you please provide the resolution/fixing steps

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论