Support Topics Documentation Slack YouTube Blog

Socket.io-client-swift shows many errors when upgrading back endless


(Feras AlSaab) #1

Hi,

I am trying to upgrade to Backendless 5 and when i update using cocoa pods, my Xcode project no longer works. So in steps:

  • my Xcode project builds fine
  • using terminal i edit the pod file in my project and use pod install backendless
  • I try and build my project, it no longer works but the errors shown are in the socket.io-client-swift pod library.

Thanks

F


(Anton Govorushkin) #2

Hi Feras

Could you please send your project to support@backendless.com so we could trace the exact errors and advice on a fix. Thanks in advance

Anton


(Feras AlSaab) #3

Hi Anton,

Unfortunately I cannot send you our code. I will try and debug it in-house and if I can’t, would someone be available for a Skype call?

Best,

F


(Olga Danylova) #4

Hello,

Is your code written in Obj-C or Swift?
Please make sure your podfile looks like this:

target 'Application1' do

use_frameworks!
pod 'Backendless'

end

Unfortunately I can’t help without more information from your side.

Regards,
Olga


(Feras AlSaab) #5

Hi Olga,

It does and I think I have fixed the issue. Now I have a linker error and it is only there because of installing Backendless. We are debugging now.

Best,

Feras A.


(Feras AlSaab) #6

My code is in swift, Are you available to Skype so we can debug the problem together?


(Feras AlSaab) #7

This is the final error:

Undefined symbols for architecture arm64:
OBJC_CLASS$__TtC8SocketIO13SocketManager”, referenced from:
objc-class-ref in libbackendless.a(RTClient.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


(Olga Danylova) #8

We don’t provide Skype support.
Do you have Socket.IO connected in your frameworks (Xcode project -> Target -> Build Phases)?

Regards,
Olga


(Feras AlSaab) #9

yes I do. Do all versions of Backendless work with Swift 3.2? or are there versions that only work with Swift 4+?


(Olga Danylova) #10

Please use Swift 4+.
We have a dependency to Socket.IO which requires Swift 4+

Regards, Olga


(Feras AlSaab) #11

so It cannot be done using Swift 3?


(Olga Danylova) #12

As I know some errors may occur with Swift 3.
Just tried and I’m getting Socket-IO errors. However they disappear as soon as I set Swift version to 4 or higher.

Regards,
Olga