Starscream icon indicating copy to clipboard operation
Starscream copied to clipboard

xcode version 15.0 (15A240d) crashes on phones younger than iOS17

Open ShaoAsher opened this issue 1 year ago • 8 comments

Describe the bug

clash:

let options = NWProtocolTCP.Options()

Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

ShaoAsher avatar Oct 01 '23 18:10 ShaoAsher

same issue

GoodbyeFox avatar Oct 04 '23 03:10 GoodbyeFox

I changed the deployment target version to iOS 13 (remove IPHONEOS_DEPLOYMENT_TARGET) and it's resolve the issue Снимок экрана 2023-10-04 в 08 46 30 Снимок экрана 2023-10-04 в 09 04 30

ksv57rus avatar Oct 04 '23 05:10 ksv57rus

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

adamsousa avatar Oct 04 '23 19:10 adamsousa

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

Снимок экрана 2023-10-05 в 08 27 50

ksv57rus avatar Oct 05 '23 05:10 ksv57rus

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?

fousa avatar Oct 23 '23 08:10 fousa

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)

Charlotte3240 avatar Oct 31 '23 05:10 Charlotte3240

我将部署目标版本更改为 iOS 13(删除IPHONEOS_DEPLOYMENT_TARGET),它解决了这个问题 Снимок экрана 2023-10-04 в 08 46 30 Снимок экрана 2023-10-04 в 09 04 30

But every time I re-use 'pod install', it goes back to the way it used to be.😂

song1404574145 avatar Dec 06 '23 02:12 song1404574145

我将部署目标版本更改为 iOS 13(删除IPHONEOS_DEPLOYMENT_TARGET),它解决了这个问题 Снимок экрана 2023-10-04 в 08 46 30 Снимок экрана 2023-10-04 в 09 04 30

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

Charlotte3240 avatar Dec 06 '23 03:12 Charlotte3240