Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Undefined symbols for architecture arm64: #25

Closed
magin opened this issue Apr 29, 2014 · 3 comments
Closed

Undefined symbols for architecture arm64: #25

magin opened this issue Apr 29, 2014 · 3 comments

Comments

@magin
Copy link

magin commented Apr 29, 2014

I'm integrating POP with CocoaPods.

Undefined symbols for architecture arm64:
"_dynamic_cast", referenced from:
applyAnimationTime(objc_object
, POPAnimationState, double) in libPods.a(POPAnimator.o)
applyAnimationProgress(objc_object
, POPAnimationState, double) in libPods.a(POPAnimator.o)
"vtable for __cxxabiv1::__si_class_type_info", referenced from:
typeinfo for _POPPropertyAnimationState in libPods.a(POPSpringAnimation.o)
typeinfo for _POPSpringAnimationState in libPods.a(POPSpringAnimation.o)
typeinfo for std::__1::__shared_ptr_pointer<POP::Vector*, std::__1::default_deletePOP::Vector, std::__1::allocatorPOP::Vector > in libPods.a(POPSpringAnimation.o)
typeinfo for std::__1::__shared_ptr_pointer<POPAnimatorItem*, std::__1::default_delete, std::__1::allocator > in libPods.a(POPAnimator.o)
typeinfo for _POPBasicAnimationState in libPods.a(POPBasicAnimation.o)
typeinfo for _POPDecayAnimationState in libPods.a(POPDecayAnimation.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for std::__1::__shared_count", referenced from:
std::_1::shared_ptrPOP::Vector::shared_ptr<POP::Vector, void>(POP::Vector) in libPods.a(POPSpringAnimation.o)
std::_1::shared_ptr::shared_ptr<POPAnimatorItem, void>(POPAnimatorItem) in libPods.a(POPAnimator.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for std::__1::__shared_weak_count", referenced from:
std::_1::shared_ptrPOP::Vector::shared_ptr<POP::Vector, void>(POP::Vector) in libPods.a(POPSpringAnimation.o)
std::_1::shared_ptr::shared_ptr<POPAnimatorItem, void>(POPAnimatorItem) in libPods.a(POPAnimator.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"std::__1::__shared_weak_count::__add_shared()", referenced from:
-[POPSpringAnimation velocity] in libPods.a(POPSpringAnimation.o)
-[POPSpringAnimation setVelocity:] in libPods.a(POPSpringAnimation.o)
POPPropertyAnimationState::willRun(bool, objc_object) in libPods.a(POPSpringAnimation.o)
POPSpringAnimationState::advance(double, double, objc_object) in libPods.a(POPSpringAnimation.o)
_POPPropertyAnimationState::computeProgress() in libPods.a(POPSpringAnimation.o)
_POPPropertyAnimationState::readObjectValue(std::1::shared_ptrPOP::Vector, objc_object) in libPods.a(POPSpringAnimation.o)
_POPSpringAnimationState::hasConverged() in libPods.a(POPSpringAnimation.o)
...
"std::__1::__shared_weak_count::__release_shared()", referenced from:
std::__1::shared_ptr<POP::Vector const>::shared_ptr() in libPods.a(POPSpringAnimation.o)
std::__1::shared_ptrPOP::Vector::shared_ptr() in libPods.a(POPSpringAnimation.o)
std::__1::shared_ptr::shared_ptr() in libPods.a(POPAnimator.o)
"std::__1::__vector_base_common::__throw_length_error() const", referenced from:
std::__1::vectorstd::__1::shared_ptr<POPAnimatorItem, std::__1::allocatorstd::__1::shared_ptr >::allocate(unsigned long) in libPods.a(POPAnimator.o)
"vtable for __cxxabiv1::__class_type_info", referenced from:
typeinfo for _POPAnimationState in libPods.a(POPAnimation.o)
typeinfo for std::__1::default_deletePOP::Vector in libPods.a(POPSpringAnimation.o)
typeinfo for std::__1::default_delete in libPods.a(POPAnimator.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"typeinfo for std::__1::__shared_weak_count", referenced from:
typeinfo for std::__1::__shared_ptr_pointer<POP::Vector*, std::__1::default_deletePOP::Vector, std::__1::allocatorPOP::Vector > in libPods.a(POPSpringAnimation.o)
typeinfo for std::__1::__shared_ptr_pointer<POPAnimatorItem*, std::__1::default_delete, std::__1::allocator > in libPods.a(POPAnimator.o)
"___cxa_begin_catch", referenced from:
___clang_call_terminate in libPods.a(POPAnimation.o)
"operator new(unsigned long)", referenced from:
-[POPAnimation _initState] in libPods.a(POPAnimation.o)
-[POPSpringAnimation _initState] in libPods.a(POPSpringAnimation.o)
-[POPSpringAnimation init] in libPods.a(POPSpringAnimation.o)
std::_1::shared_ptrPOP::Vector::shared_ptr<POP::Vector, void>(POP::Vector) in libPods.a(POPSpringAnimation.o)
-[POPAnimator addAnimation:forObject:key:] in libPods.a(POPAnimator.o)
std::__1::liststd::__1::shared_ptr<POPAnimatorItem, std::__1::allocatorstd::__1::shared_ptr >::push_back(std::__1::shared_ptr const&) in libPods.a(POPAnimator.o)
std::__1::vectorstd::__1::shared_ptr<POPAnimatorItem, std::__1::allocatorstd::__1::shared_ptr >::allocate(unsigned long) in libPods.a(POPAnimator.o)
...
"std::terminate()", referenced from:
___clang_call_terminate in libPods.a(POPAnimation.o)
"std::__1::__shared_weak_count::
__shared_weak_count()", referenced from:
std::__1::_shared_ptr_pointer<POP::Vector, std::__1::default_deletePOP::Vector, std::__1::allocatorPOP::Vector >::
__shared_ptr_pointer() in libPods.a(POPSpringAnimation.o)
std::__1::__shared_ptr_pointer<POPAnimatorItem*, std::__1::default_delete, std::__1::allocator >::
__shared_ptr_pointer() in libPods.a(POPAnimator.o)
"operator delete(void*)", referenced from:
-[POPAnimation _initState] in libPods.a(POPAnimation.o)
_POPAnimationState::_POPAnimationState() in libPods.a(POPAnimation.o)
-[POPSpringAnimation _initState] in libPods.a(POPSpringAnimation.o)
-[POPSpringAnimation init] in libPods.a(POPSpringAnimation.o)
-[POPSpringAnimation dealloc] in libPods.a(POPSpringAnimation.o)
-[POPSpringAnimation setSolver:] in libPods.a(POPSpringAnimation.o)
_POPSpringAnimationState::
_POPSpringAnimationState() in libPods.a(POPSpringAnimation.o)
...
"___gxx_personality_v0", referenced from:
__ZL13_staticStates_block_invoke in libPods.a(POPAnimatableProperty.o)
__ZL13_staticStates_block_invoke_2 in libPods.a(POPAnimatableProperty.o)
__ZL13_staticStates_block_invoke_3 in libPods.a(POPAnimatableProperty.o)
__ZL13_staticStates_block_invoke_4 in libPods.a(POPAnimatableProperty.o)
__ZL13_staticStates_block_invoke_5 in libPods.a(POPAnimatableProperty.o)
__ZL13_staticStates_block_invoke_6 in libPods.a(POPAnimatableProperty.o)
__ZL13_staticStates_block_invoke_7 in libPods.a(POPAnimatableProperty.o)
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@comyar
Copy link

comyar commented Apr 29, 2014

This is a linker error. You can resolve it by adding "-lc++" to Other Linker Flags in your Build Settings.

@yanglinfang
Copy link

thanks!
very helpful!

@olivermontes
Copy link

in my case:

  • Problem become from "AwesomeAppTests" target from Xcode configuration
  • im add "-lc++" to Other Linker Flags in your Build Settings.

Thanks @comyar

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants