kiwi-bdd / Kiwi

Simple BDD for iOS
BSD 3-Clause "New" or "Revised" License
4.14k stars 512 forks source link

Unable to run tests on some simulators and physical device #683

Open asib opened 8 years ago

asib commented 8 years ago

I have managed to get tests to run on some simulators (4s, 5, iPad 2, iPad Retina).

However, all other simulators give the following errors:

ld: warning: ignoring file /Users/jacobfenton/Library/Developer/Xcode/DerivedData/CPJSONRPC-cpktnnydpaamdoagrbwueojkshzy/Build/Products/Debug-iphonesimulator/Kiwi/Kiwi.framework/Kiwi, file was built for i386 which is not the architecture being linked (x86_64): /Users/jacobfenton/Library/Developer/Xcode/DerivedData/CPJSONRPC-cpktnnydpaamdoagrbwueojkshzy/Build/Products/Debug-iphonesimulator/Kiwi/Kiwi.framework/Kiwi
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_KWCallSite", referenced from:
      objc-class-ref in SampleSpec.o
  "_OBJC_CLASS_$_KWSpec", referenced from:
      objc-class-ref in SampleSpec.o
      _OBJC_CLASS_$_MathSpec in SampleSpec.o
  "_OBJC_CLASS_$_KWValue", referenced from:
      objc-class-ref in SampleSpec.o
  "_OBJC_METACLASS_$_KWSpec", referenced from:
      _OBJC_METACLASS_$_MathSpec in SampleSpec.o
  "_describe", referenced from:
      +[MathSpec buildExampleGroups] in SampleSpec.o
  "_it", referenced from:
      ___30+[MathSpec buildExampleGroups]_block_invoke in SampleSpec.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Further, when I try to run tests on a physical device, I simply get 'Kiwi.h' file not found in SampleSpec.m, which I copied from the tutorial.

I do apologise if this is me being boneheaded, but I've scoured the net for a solution, for the best part of a day, to no avail.

ginhoor commented 8 years ago

i have the same problem (T。T)