socketio / socket.io-client-swift

Other
5.22k stars 843 forks source link

Can't build objective-c project #1160

Closed IvanOnishchenko closed 5 years ago

IvanOnishchenko commented 5 years ago

I added pod 'Socket.IO-Client-Swift', '~> 14.0.0' to my Objective-C project. When I try build project I get error: linker command failed with exit code 1 Log: ld: warning: Could not find auto-linked library 'swiftCoreFoundation' ld: warning: Could not find auto-linked library 'swiftDarwin' ld: warning: Could not find auto-linked library 'swiftUIKit' ld: warning: Could not find auto-linked library 'swiftQuartzCore' ld: warning: Could not find auto-linked library 'swiftCore' ld: warning: Could not find auto-linked library 'swiftCoreGraphics' ld: warning: Could not find auto-linked library 'swiftSwiftOnoneSupport' ld: warning: Could not find auto-linked library 'swiftMetal' ld: warning: Could not find auto-linked library 'swiftFoundation' ld: warning: Could not find auto-linked library 'swiftObjectiveC' ld: warning: Could not find auto-linked library 'swiftDispatch' ld: warning: Could not find auto-linked library 'swiftCoreImage' Undefined symbols for architecture x86_64: "(extension in Foundation):Swift.StringProtocol< where A.Index == Swift.String.Index>.addingPercentEncoding(withAllowedCharacters: Foundation.CharacterSet) -> Swift.String?", referenced from: (extension in SocketIO):Swift.String.urlEncode() -> Swift.String? in libSocket.IO-Client-Swift.a(SocketExtensions.o) "Foundation.CharacterSet.init(charactersIn: Swift.String) -> Foundation.CharacterSet", referenced from: static (extension in SocketIO):Foundation.CharacterSet.allowedURLCharacterSet.getter : Foundation.CharacterSet in libSocket.IO-Client-Swift.a(SocketExtensions.o) "Foundation.CharacterSet.inverted.getter : Foundation.CharacterSet", referenced from: static (extension in SocketIO):Foundation.CharacterSet.allowedURLCharacterSet.getter : Foundation.CharacterSet in libSocket.IO-Client-Swift.a(SocketExtensions.o) "Foundation._convertNSErrorToError(__C.NSError?) -> Swift.Error", referenced from: (extension in SocketIO):Swift.Array.toJSON() throws -> Foundation.Data in libSocket.IO-Client-Swift.a(SocketExtensions.o) (extension in SocketIO):Swift.String.toArray() throws -> [Any] in libSocket.IO-Client-Swift.a(SocketExtensions.o) (extension in SocketIO):Swift.String.toDictionary() throws -> [Swift.String : Any] in libSocket.IO- ...

"static Foundation.UUID._unconditionallyBridgeFromObjectiveC(__C.NSUUID?) -> Foundation.UUID", referenced from: @objc SocketIO.SocketIOClient.off(id: Foundation.UUID) -> () in libSocket.IO-Client-Swift.a(SocketIOClient.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

IvanOnishchenko commented 5 years ago

Forgot add to pod file "use_frameworks!"