liangzai-cool / hamcrest

Automatically exported from code.google.com/p/hamcrest
0 stars 0 forks source link

Enhancement : Static Library target for ObjectiveC so it works on iphone simulator #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Currently the iphone sdk doesn't support custom frameworks, you have to
create a static library instead.  I would like to use hamcrest when testing
my iphone app, so I need a hamcrest static lib with headers.  I have
already created the target to do this locally, just need someone who has
commit rights to add it to the xcode project.

Original issue reported on code.google.com by btkn...@gmail.com on 25 Feb 2009 at 7:46

GoogleCodeExporter commented 9 years ago
Looks like hamcrest cannot be used with the iphone sdk.  When I link the 
hamcrest
static library I get the following error:

Undefined symbols:
  "___gxx_personality_v0", referenced from:
      ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCIsNil.o)
      ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCMatcherAssert.o)
      ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCBaseMatcher.o)
      ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCIsNot.o)
      ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCStringDescription.o)
      ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCWrapShortcut.o)
      ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCBaseDescription.o)
      ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCIsEqual.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
      "___gxx_personality_v0", referenced from:
          ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCIsNil.o)
          ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCMatcherAssert.o)
          ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCBaseMatcher.o)
          ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCIsNot.o)
          ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCStringDescription.o)
          ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCWrapShortcut.o)
          ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCBaseDescription.o)
          ___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCIsEqual.o)
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

Original comment by btkn...@gmail.com on 25 Feb 2009 at 9:19

GoogleCodeExporter commented 9 years ago
Now with full iOS support. Add -lstdc++ to your "Other Linker Flags" for the 
"personality" errors.

Original comment by jon.m.r...@gmail.com on 23 Nov 2010 at 3:51