Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

Xcode build issues related to analytics

Avatar

Level 1

I'm trying to install analytics into a separate target, it works perfectly in the main target for the project but another target, the tests won't build, it shows this error

Undefined symbol: _OBJC_CLASS_$_ACPAnalytics

Undefined symbol: _OBJC_CLASS_$_ACPCore

Undefined symbol: _OBJC_CLASS_$_ACPIdentity

Undefined symbol: _OBJC_CLASS_$_ACPLifecycle

Undefined symbol: _OBJC_CLASS_$_ACPMobileServices

Undefined symbol: _OBJC_CLASS_$_ACPSignal

Undefined symbol: _OBJC_CLASS_$_ACPUserProfile

Undefined symbol: _OBJC_CLASS_$_ACPIdentity

Linker command failed with exit code 1 (use -v to see invocation)

 

How do i fix this issue?

1 Accepted Solution

Avatar

Correct answer by
Employee

Have you tried an unclean library lying around after adding/removing dependencies?  You can try Xcode -> Product -> Clean Build Folder, and rebuilt the project.

View solution in original post

2 Replies

Avatar

Level 1

Could anyone please assist on this? 

Avatar

Correct answer by
Employee

Have you tried an unclean library lying around after adding/removing dependencies?  You can try Xcode -> Product -> Clean Build Folder, and rebuilt the project.