Starscream
Starscream copied to clipboard
xcode version 15.0 (15A240d) crashes on phones younger than iOS17
Describe the bug
clash:
let options = NWProtocolTCP.Options()
Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
same issue
I changed the deployment target version to iOS 13 (remove IPHONEOS_DEPLOYMENT_TARGET) and it's resolve the issue
Make sure you're on version 4.0.6. That version increments the iOS target version from 9 to 12.
NWProtocolTCP.Options requires iOS 12+ as a target when compiling in Xcode15
Make sure you're on version 4.0.6. That version increments the iOS target version from 9 to 12.
NWProtocolTCP.Options requires iOS 12+ as a target when compiling in Xcode15
podspec https://github.com/CocoaPods/Specs/blob/master/Specs/2/2/f/Starscream/4.0.6/Starscream.podspec.json
We are using SPM, but it appears to be the same issue. Minimum deployment target is set to iOS 13. Is this something that has to be changed?
I try fix it
first
public convenience init(request: URLRequest, certPinner: CertificatePinning? = FoundationSecurity(), compressionHandler: CompressionHandler? = nil, useCustomEngine: Bool = true) {
if #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *), !useCustomEngine {
self.init(request: request, engine: NativeEngine())
}
// don't use network transport engine
// else if #available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *) {
// self.init(request: request, engine: WSEngine(transport: TCPTransport(), certPinner: certPinner, compressionHandler: compressionHandler))
// }
else {
self.init(request: request, engine: WSEngine(transport: FoundationTransport(), certPinner: certPinner, compressionHandler: compressionHandler))
}
}
last
// initial socket object with useCustomEngine: false
self.socket = WebSocket(request: request,useCustomEngine: false)
我将部署目标版本更改为 iOS 13(删除IPHONEOS_DEPLOYMENT_TARGET),它解决了这个问题
![]()
But every time I re-use 'pod install', it goes back to the way it used to be.😂
我将部署目标版本更改为 iOS 13(删除IPHONEOS_DEPLOYMENT_TARGET),它解决了这个问题
![]()
But every time I re-use 'pod install', it goes back to the way it used to be.😂
there pics not display , the link is private
if you change code in pods , you can get origin code when you pod install
.
because pod install
will pull origin code , not you changed code