Socket.io-client-swift: Could not complie with Objective C project - Xcode 9.4

Created on 8 Aug 2018  ·  5Comments  ·  Source: socketio/socket.io-client-swift

I installed socket.io-client-swift lib success from cocoapods (no errors) but then Xcode can not complie. Who can help me intergrated this lib into my objective c project. Thanks!

Most helpful comment

@MD04-TanTan I finally solved this problem. Here is my solution:
1 I go to Build Settings > Swift Language Version, and I set the swift version to 4.1
2 In Podfile I changed Socket.IO-Client-Swift version to 13.3.0 like this pod 'Socket.IO-Client-Swift', '~> 13.3.0'
3 pod update

All 5 comments

@MD04-TanTan I have the similar problem. But I could not complie with Swift project (Swift 4, Xcode 9.4.1). And I installed Socket.IO-Client-Swift (13.2.1). I wonder whether Socket.IO-Client-Swift (13.2.1) support Swift 4.

@MD04-TanTan I finally solved this problem. Here is my solution:
1 I go to Build Settings > Swift Language Version, and I set the swift version to 4.1
2 In Podfile I changed Socket.IO-Client-Swift version to 13.3.0 like this pod 'Socket.IO-Client-Swift', '~> 13.3.0'
3 pod update

@MD04-TanTan Is your problem solved?

@MD04-TanTan add use_frameworks! to Podfile

@huforrest : Thanks. This fixed the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

huangxiaolin0425 picture huangxiaolin0425  ·  6Comments

alionthego picture alionthego  ·  4Comments

heisian picture heisian  ·  4Comments

gaetanm picture gaetanm  ·  4Comments

astrike30 picture astrike30  ·  6Comments