Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile error on Xcode 12 #799

Merged
merged 1 commit into from
Jul 19, 2020
Merged

Fix compile error on Xcode 12 #799

merged 1 commit into from
Jul 19, 2020

Conversation

amayers
Copy link
Contributor

@amayers amayers commented Jun 22, 2020

Now you can build on both Xcode 11.5 & 12.0 b1.

On 12, the unit tests would fail to compile because it wasn't finding the Starscream framework. So I added Starscream as a dependency of the test target.

In FoundationHTTPServerHandler the method is of type CFString, while getVerb is NSString. Looks like Xcode 12 doesn't like equality comparison between those types without a cast as NSString.

Now you can build on both Xcode 11.5 & 12.0 b1.

On 12, the unit tests would fail to compile because it wasn't finding the `Starscream` framework. So I added `Starscream` as a dependency of the test target.

In `FoundationHTTPServerHandler` the `method` is of type `CFString`, while `getVerb` is `NSString`. Looks like Xcode 12 doesn't like equality comparison between those types without a cast as `NSString`.
@atn
Copy link

atn commented Jul 1, 2020

Can someone merge this?

@amayers
Copy link
Contributor Author

amayers commented Jul 1, 2020

TBH the slow response to this simple PR caused me to reevaluate our needs, and I found that URLSessionWebSocketTask exists in iOS 13+ and is sufficient for our needs (originally we supported iOS 12). So I have removed this library from our app.

I totally get that it is likely a side project for someone, and so they must prioritize accordingly.

@rudyrichter
Copy link

@daltoniam the code change here looks good

Copy link

@jcbriones jcbriones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree we need this get updated.

@daltoniam daltoniam merged commit 4820831 into daltoniam:master Jul 19, 2020
@daltoniam
Copy link
Owner

Thanks!

@amayers amayers deleted the xcode12 branch July 19, 2020 18:20
@y25zhao
Copy link

y25zhao commented Jul 21, 2020

Hey guys, shouldn't we bump up the podspec version for this fix? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants