Expand my Community achievements bar.

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 Advisor

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 Advisor

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