I am updating an existing iOS app to Backendless 4.0. I have fixed all code issues, but am getting the following build error:
Undefined symbols for architecture arm64:
“OBJC_CLASS$_UNNotificationAttachment”, referenced from:
objc-class-ref in libbackendless.a(MessagingService.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using cocoapods to manage my dependancies. How can I resolve this issue?
That pod spec may not update the installed pod to the latest version. You can run “pod list” to see what version you have (warning, it will produce a lot of output).
I am able to duplicate this problem easily in a new project (Xcode 8.3.3). If I create a new ObjC project, then create a podfile with Backendless as the only pod, and run pod install, I get the following error:
Yes, the downloaded project works. But I need to be able to update existing projects. As I said, the Swift project worked fine, while the ObjC project errors as described above. The existing project complains about arm64, while a newly created project complains about x86_64, even though it is an iOS project.
I have tried removing and reinstalling Backendless with cocoapods, to no effect, and cleaning the project and the build folder also have no effect on the error.
I just created a new Swift iOS project and installed Backendless 4.0.6 using cocoapods and did not get build errors as I do when doing the same steps with and ObjC project.
Would you be able to zip up and upload a problematic project to either google drive or dropbox and share the link with us? It would let us inspect the project and see what goes wrong in there.
Mark Hi, I’m experiencing the same problem the the automatic code generated from Backendless 4 for both the swift and objective-c files. Please keep the post up-to-date with any resolution