Manual project configuration - IOS

Hi guys
im trying to integrate the ios sdk into an existing app (using these instructions: https://backendless.com/documentation/data/ios/data_setup.htm) but when building i get the following errors:

iphone 5 simulator:
Undefined symbols for architecture i386:
OBJC_CLASS$_NSEntityDescription”, referenced from:
objc-class-ref in CommLibiOS.a(Types.o)
"OBJC_CLASS$NSManagedObject", referenced from:
objc-class-ref in backendless.a(PersistenceService.o)
l_OBJC
$CATEGORY_NSManagedObject$_AMF in backendless.a(PersistenceService.o)
objc-class-ref in CommLibiOS.a(Types.o)
OBJC_CLASS$_MKCircleView”, referenced from:
objc-class-ref in backendless.a(BEMapView.o)
OBJC_CLASS$_NSFetchRequest”, referenced from:
objc-class-ref in backendless.a(PersistenceService.o)
OBJC_CLASS$_MKCircleRenderer”, referenced from:
objc-class-ref in backendless.a(BEMapView.o)
OBJC_CLASS$_MKCircle”, referenced from:
objc-class-ref in backendless.a(BEMapView.o)
OBJC_CLASS$_MKPinAnnotationView”, referenced from:
objc-class-ref in backendless.a(BEMapView.o)
OBJC_METACLASS$_MKMapView”, referenced from:
OBJC_METACLASS$_BEMapView in backendless.a(BEMapView.o)
OBJC_CLASS$_SFSafariViewController”, referenced from:
objc-class-ref in backendless.a(UserService.o)
OBJC_CLASS$_MKMapView”, referenced from:
OBJC_CLASS$_BEMapView in backendless.a(BEMapView.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

iphone 6 simulator:
Undefined symbols for architecture x86_64:
OBJC_CLASS$_NSEntityDescription”, referenced from:
objc-class-ref in CommLibiOS.a(Types.o)
"OBJC_CLASS$NSManagedObject", referenced from:
objc-class-ref in backendless.a(PersistenceService.o)
l_OBJC
$CATEGORY_NSManagedObject$_AMF in backendless.a(PersistenceService.o)
objc-class-ref in CommLibiOS.a(Types.o)
OBJC_CLASS$_MKCircleView”, referenced from:
objc-class-ref in backendless.a(BEMapView.o)
OBJC_CLASS$_NSFetchRequest”, referenced from:
objc-class-ref in backendless.a(PersistenceService.o)
OBJC_CLASS$_MKCircleRenderer”, referenced from:
objc-class-ref in backendless.a(BEMapView.o)
OBJC_CLASS$_MKCircle”, referenced from:
objc-class-ref in backendless.a(BEMapView.o)
OBJC_CLASS$_MKPinAnnotationView”, referenced from:
objc-class-ref in backendless.a(BEMapView.o)
OBJC_METACLASS$_MKMapView”, referenced from:
OBJC_METACLASS$_BEMapView in backendless.a(BEMapView.o)
OBJC_CLASS$_SFSafariViewController”, referenced from:
objc-class-ref in backendless.a(UserService.o)
OBJC_CLASS$_MKMapView”, referenced from:
OBJC_CLASS$_BEMapView in backendless.a(BEMapView.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

physical iphone 4s:
Undefined symbols for architecture armv7:
OBJC_CLASS$_NSEntityDescription”, referenced from:
objc-class-ref in CommLibiOS.a(Types.o)
"OBJC_CLASS$NSManagedObject", referenced from:
objc-class-ref in backendless.a(PersistenceService.o)
l_OBJC
$CATEGORY_NSManagedObject$_AMF in backendless.a(PersistenceService.o)
objc-class-ref in CommLibiOS.a(Types.o)
OBJC_CLASS$_MKCircleView”, referenced from:
objc-class-ref in backendless.a(BEMapView.o)
OBJC_CLASS$_NSFetchRequest”, referenced from:
objc-class-ref in backendless.a(PersistenceService.o)
OBJC_CLASS$_MKCircleRenderer”, referenced from:
objc-class-ref in backendless.a(BEMapView.o)
OBJC_CLASS$_MKCircle”, referenced from:
objc-class-ref in backendless.a(BEMapView.o)
OBJC_CLASS$_MKPinAnnotationView”, referenced from:
objc-class-ref in backendless.a(BEMapView.o)
OBJC_METACLASS$_MKMapView”, referenced from:
OBJC_METACLASS$_BEMapView in backendless.a(BEMapView.o)
OBJC_CLASS$_SFSafariViewController”, referenced from:
objc-class-ref in backendless.a(UserService.o)
OBJC_CLASS$_MKMapView”, referenced from:
OBJC_CLASS$_BEMapView in backendless.a(BEMapView.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
After some googling i understand that these “referenced from” errors occur when the compiler cant locate for eg OBJC_CLASS$_MKMapView so how do i resolve this? is there a missing step in the instructions?

Hello!

I’ve opened an internal ticket #BKNDLSS-13701 for your issue. Developer will check it and answer you asap.
Regards,
Alex

hi any news ?

Hi Gareth,
No news yet, the ticket is still in progress.

Thanks for the update, any idea when the assignee will be able to give any feedback? am stuck at this point and need to implement a solution that hopefully uses backendless before parse closes down :frowning:

Actually, it seems that your error may be googled easily, have you tried to search for solution?
For example, this question has similar problem with build: http://stackoverflow.com/questions/6984368/undefined-symbols-for-architecture-i386-objc-class-skpsmtpmessage-referenc

Hi Sergey

yes i have tried a few things but im not really sure which files to list under the compile sources tab as per the most accepted answer on the link you sent. in that answer the users needed to add the .m files but with my issue the xcode is complaining about the backendless .a files coming from the lib, adding the .a files as per the most accepted answer in your link wont work either.

one thing i have just noticed is all these linker errors, the message is that the lib was built for a newer ios version than what my app supports. what versions of ios does the backendless sdk support?

As the error suggests, I suppose the latest one is 8.0, while your app is built for 7.0. Can you try to build your app for 8.0 and check whether the errors persist?

ok changing the deployment target to 8 did get rid of the linker errors but the original reference errors are still there. The other thing is that i have to keep the deployment target at 7 because we have users on that os.

Hi Gareth,

I can propose to you create a new project according to the “Quick start guide for iOS” https://backendless.com/mobile-developers/quick-start-guide-for-ios/