App Extension : Undefined symbols for architecture arm64

I am trying to install pods into AppExtension target with

target 'NotificationService' do
    pod 'CleverTap-iOS-SDK', '~> 3.10.0', :modular_headers => true
end

This pods are also added to my main app target and working fine. But when I try to install same pods to Notification Service extension, I am running into Unity library related error (90 error of same kind for libiPhone-lib.a).

Undefined symbols for architecture arm64:

  "std::__1::basic_streambuf<char, std::__1::char_traits<char> >::imbue(std::__1::locale const&)", referenced from:

      vtable for std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> > in libiPhone-lib.a(CrashReporter.o)

  "std::__1::basic_streambuf<char, std::__1::char_traits<char> >::setbuf(char*, long)", referenced from:

      vtable for std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> > in libiPhone-lib.a(CrashReporter.o)

These errors are not coming if I add same pods to main Target. Also, Unity is not installed on any Extension, just on main Target. I wonder if I have to add/remove any library or header paths from extension by which it doesn't consider Unity inside extension project. Screenshots of settings attached for reference.

Post not yet marked as solved Up vote post of himaparmar Down vote post of himaparmar
1.3k views

Replies

I had the same issue, Do you have any ideas?