GHUnit error file _OBJC_CLASS_$_SenTestCase", referenced

后端 未结 1 1150
自闭症患者
自闭症患者 2021-01-21 07:55

I\'m using GHUnit in my project but when i try to run the app it gives errors

Ld /Users/goldfire/Library/Developer/Xcode/DerivedData/WhatsMySpeed-amkgqin

1条回答
  •  走了就别回头了
    2021-01-21 08:45

    Check out this link: http://fstanley.github.com/blog/2012/06/10/fixing-ghunit-sentestcase-link-errors/

    Basically you need to add:

    $(SDKROOT)/Developer/Library/Frameworks

    and

    $(DEVELOPER_LIBRARY_DIR)/Frameworks

    to the framework search paths in the settings for your test target.

    I had the same error and this fixed it.

    Note: that the items must be added in that exact order, per http://forum.sparrow-framework.org/topic/cant-run-unit-tests.

    0 讨论(0)
提交回复
热议问题