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

xcode 8 errors #437

Closed
acMaia opened this issue Jul 27, 2016 · 54 comments
Closed

xcode 8 errors #437

acMaia opened this issue Jul 27, 2016 · 54 comments

Comments

@acMaia
Copy link

acMaia commented Jul 27, 2016

I just tried building my app using xcode 8 and got multiple erros in socket.io client.
Is there something I can do to build, or do I just need to wait?
screen shot 2016-07-27 at 14 51 36

@nuclearace
Copy link
Member

Try the swift3 branch

@parasdaff
Copy link

I have tried using swift3 branch but still facing issues.
screen shot 2016-08-03 at 2 40 23 pm

@nuclearace
Copy link
Member

I'm not sure, if you have Xcode setup right, and are on the swift3 branch, it should compile.

@parasdaff
Copy link

@nuclearace i am using the same branch, here is the pod i am using to pull from branch swift3
pod 'Socket.IO-Client-Swift',:git =>'https://github.com/socketio/socket.io-client-swift', :branch => 'swift3'

@nuclearace
Copy link
Member

I've never tried to use CocoaPods with betas, could be something related to that.

@jamescahall
Copy link

I'm getting 33 errors and 4 warnings myself and can't compile using the .swift files directly (no cocoa pods).

screen shot 2016-08-15 at 2 20 45 pm

screen shot 2016-08-15 at 2 21 02 pm

@nuclearace
Copy link
Member

Are you on the swift3 branch

@jamescahall
Copy link

Yes

@jamescahall
Copy link

Issue compiling in beta 6

@nuclearace
Copy link
Member

Oh I haven't updated it for that beta yet

@nuclearace
Copy link
Member

Downloading it now

@nuclearace
Copy link
Member

This might take awhile, swiftc seems to want to segfault on something now

@Pourias
Copy link

Pourias commented Aug 19, 2016

I have the same problem here.. (I'm using SWIFT3 branch Xcode8 IOS10) but keep getting all the errors which I think is Swift3 related. Loosk like its around error handling
screen shot 2016-08-19 at 12 50 42 pm

@nuclearace
Copy link
Member

I don't think your project is setup right.

@jamescahall
Copy link

When do you expect to have the compilation issues for Beta 6 resolved? We'd like to start prepping for iOS 10 release.

@nuclearace
Copy link
Member

It should work for the most part, except for websocket SSL.

https://github.com/socketio/socket.io-client-swift/blob/swift3/Source/WebSocket.swift#L310 Crashes swiftc, so you'll have to wait for betaX for them to fix that.

@nuclearace
Copy link
Member

nuclearace commented Aug 19, 2016

I also noticed that JSONSerialization is now turning Booleans into 0's and 1's, so some of the tests fail now. But until I read somewhere that this was intentional, and won't cause problems for sending json, I would be wary.

@nuclearace
Copy link
Member

On that note, it might be related to apple/swift#4366

@jamescahall
Copy link

Any update? We'd like to be able to prep for the next iOS release and have had to remove this library until it's fixed.

@nuclearace
Copy link
Member

The swift3 branch should compile on beta6.

@hellomayuko
Copy link

Sooo Xcode 8 GM is out today 😬 When can we expect this to be fixed and merged? I'd prefer not having to refer to a branch for this anymore.

@nuclearace
Copy link
Member

Depends, is swift 3 going to be released as default on Xcode 8? What about Swift 2.3?

@hellomayuko
Copy link

@nuclearace from https://developer.apple.com/swift/blog/?id=36

Swift 3 is the primary development language supported within Xcode 8

@williamgp
Copy link

Not compiling in Xcode 8 GM- getting a few of these errors:
Passing non-escaping parameter 'callback' to function expecting an @escaping closure

@nuclearace
Copy link
Member

@minoue10 Then when Xcode is released publicly it'll be merged into master and a new version will come out.

@jamescahall
Copy link

Developers need to submit apps before public versions are out. The GM is basically the public version.

@hellomayuko
Copy link

@nuclearace The GM for Xcode 8 was released yesterday: https://developer.apple.com/xcode/
Just wondering when we can expect a new version :) Love your library, I'd just like to be able to test my app on Xcode 8 and on iOS 10 simulators as soon as possible, since iOS 10 will be released to the public next Tuesday (9/13).

@nuclearace
Copy link
Member

nuclearace commented Sep 8, 2016

I'll also have to check and see if CocoaPods supports Xcode 8 yet. I'd hate to merge it now and then find out that I have to do some annoying stuff to tell CocoaPods where to find the right toolchain to build it.

@nuclearace
Copy link
Member

nuclearace commented Sep 8, 2016

And another minor thing is that I'll have to turn off travis-ci until they update. But I would have to do that regardless, last time it took them about a week or two to update to Xcode.

Edit: They already have the GM.

@nuclearace
Copy link
Member

Looks like they need to update xctools for Xcode8.

@Lukafin
Copy link

Lukafin commented Sep 13, 2016

I also can't build my project with SocketIO in Xcode 8 GM.

@nuclearace
Copy link
Member

nuclearace commented Sep 13, 2016

Are you on the development branch? I'll be dropping a new version when Xcode 8 is released proper.

@Lukafin
Copy link

Lukafin commented Sep 13, 2016

Now i tried with development branch, all the errors are gone, but now i get a new one:
"No such module SocketIOClientSwift" when calling "import SocketIOClientSwift" in my class.

I am using cocoapods version 1.0.0 (also tried with 1.1.0 RC1)

@hellomayuko
Copy link

hellomayuko commented Sep 13, 2016

@nuclearace what do you mean by

when Xcode 8 is released proper.

?
Xcode 8 is already out on the Mac App Store, so that's as proper as it's going to get, I think.

Also, Xcode 7 isn't compatible with iOS 10 devices (and iOS10 was released today), so I'd really like to move to Xcode 8 as soon as possible.

@nuclearace
Copy link
Member

When I wrote that it wasn't out yet. I'm downloading it now.

@williamgp
Copy link

At what point will the Swift 3 branch become the Master?

@Lukafin
Copy link

Lukafin commented Sep 14, 2016

Swift 3 branch doesn't exist anymore.

@clOudbb
Copy link

clOudbb commented Sep 14, 2016

Plz tell me , Should I use which branch in xcode 8 release version? thxxxx😁

@nuclearace
Copy link
Member

Swift 3 code is in development now. There'll probably be a new release today

@nuclearace
Copy link
Member

As I suspected would happen, CocoaPods sucks and is broken for Xcode 8.

@nuclearace
Copy link
Member

Figured out how to kerjiggle CocoaPods into pushing the new version.

@Lukafin
Copy link

Lukafin commented Sep 14, 2016

Have you pushed your latest changes to dev. branch yet?

@nuclearace
Copy link
Member

Yes

@Lukafin
Copy link

Lukafin commented Sep 14, 2016

I tried with the latest code and i get "module file was created by an older version of the compiler, rebuild and try again". So the error "No such module SocketIOClientSwift" is gone but i have a new one. Any idea?

@nuclearace
Copy link
Member

What Xcode are you on?

Also I had to use CocoaPods 1.1.0rc2. And it still messed up git remotes... I can't wait till the swift package manager is mature enough where I can drop CocoaPods.

@Lukafin
Copy link

Lukafin commented Sep 14, 2016

Xcode 8 (final).
I tried now with CocoaPods 1.1.0rc2 and it works.
And yes, i agree with you and cant wait until swift package manager is included in Xcode.

@harry1064
Copy link

I have update the SocketIOClientSwift to 8.0.0 and using Xcode 8 when i build the project i got this
screen shot 2016-09-16 at 5 13 49 pm

@DrBeak1
Copy link

DrBeak1 commented Sep 20, 2016

Just tried to switch today (xcode 8, cocoapods 1.1.0rc2, socketio 8.0.1) and getting 36 errors.
screen shot 2016-09-20 at 1 34 35 pm

Not sure what I did wrong ... I've read through this thread and many others. Nothing seems to work.

@vikiBenHaim1
Copy link

I have the same problem.
I tried to set SocketIOClientSwift target to use legacy swift language version without update swift version https://thatthinginswift.com/swift-2-xcode-8/,
not work too....

@nuclearace
Copy link
Member

If you want to use Swift 2.3 you'll have to use the swift2.3 branch.

@vikiBenHaim1
Copy link

Hi,
I downloaded the new Socket IO Client Swift version , and added the changes according the documentation and now it's worked.
Thanks.

@DrBeak1
Copy link

DrBeak1 commented Sep 21, 2016

@vikiBenHaim1 you were able to get things working using swift 3.0 (aka, master)?

@brianfang
Copy link

@vikiBenHaim1 What is documentation you referred so that you get things done ? thanks.

@ErMaheshwari
Copy link

Hi I am using latest socket-io for swift 3.0 , I am able to connect my local host, but when i am emiting the message , its not emiting.

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

No branches or pull requests