Starscream: Minimum iOS version needs to increase

Created on 27 Jun 2021  路  13Comments  路  Source: daltoniam/Starscream

This library fails to build for device (It builds for simulator fine) in Xcode 13 (BETA 1&2).
The error is:

Failed to build module 'Network'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.5 (swiftlang-1300.0.20.4 clang-1300.0.21.1)', while this compiler is 'Apple Swift version 5.5 (swiftlang-1300.0.20.104 clang-1300.0.21.1)'). Please select a toolchain which matches the SDK.

This error goes away when you set the minimum iOS version to 11.0

Most helpful comment

@daltoniam @ddaddy I have created a PR and submitted it as well. Here is the link -> https://github.com/daltoniam/Starscream/pull/897

Meanwhile if anyone wants to use the library until the PR is accepted, you can do it by following the below given instructions.

Cocoapods -

pod 'Starscream', '~> 4.0.0', :git => 'https://github.com/rizwan95/Starscream.git'
SPM -

dependencies: [
    .Package(url: "https://github.com/rizwan95/Starscream.git", majorVersion: 4)
]

All 13 comments

@daltoniam @ddaddy I have created a PR and submitted it as well. Here is the link -> https://github.com/daltoniam/Starscream/pull/897

Meanwhile if anyone wants to use the library until the PR is accepted, you can do it by following the below given instructions.

Cocoapods -

pod 'Starscream', '~> 4.0.0', :git => 'https://github.com/rizwan95/Starscream.git'
SPM -

dependencies: [
    .Package(url: "https://github.com/rizwan95/Starscream.git", majorVersion: 4)
]

I don't understand the link between the error message and the minimum iOS version. Can someone explain to me?
Isn't that just an Xcode bug?

Yes it could be an Xcode bug, and I have filed a bug report with Apple (FB9296596)
If it gets fixed, great. If not, then the minimum iOS version will need to be increased.

According to Apple, it is not a bug, but it is a feature. Check this link https://github.com/SwiftKickMobile/SwiftMessages/issues/471#issuecomment-879971936 for more information about the issue.

Although it's a _feature_ to not allow the availability check, I'd say it's a bug that they have an availability check in the Network framework.

My bug report suggested this might be fixed in Beta 5, but it's not 馃檮

My bug report suggested this might be fixed in Beta 5, but it's not 馃檮

Yes, I try but it's not, Do you have any idea to fix it?
I really want to use Xcode 13 because it's a faster, swift 5.5 async-await feature. but I can't build and I hope we can fix it soon.

Use a minimum iOS version of 11.0, or don't use Xcode 13 beta's.

This seems to be fixed in Xcode 13 Release Candidate :)

This seems to be fixed in Xcode 13 Release Candidate :)

Really? 馃ぃ馃ぃ馃ぃ馃ぃ

This seems to be fixed in Xcode 13 Release Candidate :)

馃槀馃槀 I can't believe it!

Yeh, they did tell me it was fixed in iOS 15 beta 6, but we never got a new Xcode after beta 5 to test it.

Yeh, they did tell me it was fixed in iOS 15 beta 6, but we never got a new Xcode after beta 5 to test it.

confirmed, It's solved 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CRoig picture CRoig  路  6Comments

xjimi picture xjimi  路  4Comments

LondonAtlas picture LondonAtlas  路  3Comments

Dezabro picture Dezabro  路  3Comments

felipeflorencio picture felipeflorencio  路  4Comments