Hi,
I am trying to implement iOS SDK into the Swift project and I am getting an error library not found for -lCommLibiOS
I am using Pods and I tried both implementing SDK manually (which gives me the same error as pointed out here , when I utilize the provided solution I get: library not found for -lCommLibiOS ) and through Pods(gives me library not found for -lCommLibiOS straight away ).
What I tried so far :
*After experimenting for couple of hours, I found out that if I remove -ObjC and $(inherited) from Other Linker Flags in Build Settings and add CommLibiOS.a and backendless.a manually. Everything starts to work - (I suspect it might be caused by the Bridging header inside Backendless SDK Backendless-Bridging-Header.h, cause I already use one for my other files.) Unfortunately this also kills all my Pods like FacebookSDK etc… , so this is not a solution.
*Created a “test” Objective C project, same exact thing happening, the workaround above works too.
*Tried using both a normal and light SDK, when using normal I also get errors described here. (I am not going to use any streaming services, so light works fine for me)
Tried adding Library Search Path to CommLibiOS.a folder, same error.
*Tried building for both a simulator and a real device, same error.
Thanks a lot for reading through my problem and I do really want to get it resolved, as I am trying to move away from greedy Parse.
If you use the Backendless-Bridging-Header.h - you have to change the
“Objective-C Bridging Header” build setting to “${PODS_ROOT}/Headers/Public/Backendless-ios-SDK/Backendless-Bridging-Header.h”
If you use your own bridging header file you can simply add the line #import “Backendless.h”
If you need MediaService you also should add the line
Tomas, the SDK is open source. Why don’t you fork it, rewrite and show how it should be done? I’ll be glad to put alternative implementations right next to ours on the website.