• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SenTestCase link error but framework clearly linked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SenTestCase link error but framework clearly linked


  • Subject: Re: SenTestCase link error but framework clearly linked
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 29 May 2013 18:18:59 -0700

It looks like you’re building a test bundle for iOS Simulator, but you’re trying to link OCUnit (SenTestingKit.framework) for OS X.

Be sure your test bundle target has $(SDKROOT)/Developer/Library/Frameworks in its FRAMEWORK_SEARCH_PATHS build setting, so it looks in the appropriate SDK for SenTestingKit.framework. (The OS X version isn’t in an SDK, it’s in $(DEVELOPER_FRAMEWORKS_DIR).)

  -- Chris

On May 29, 2013, at 6:11 PM, Rick Mann <email@hidden> wrote:

> I've fixed the project corruption caused by subversion; not sure what happened, but it was a bad merge on update.
>
> But I still can't get SenTestCase to link:
>
>
> Build target Tests
>
> Undefined symbols for architecture i386:
>  "_OBJC_CLASS_$_SenTestCase", referenced from:
>      _OBJC_CLASS_$_Tests in Tests.o
>  "_OBJC_METACLASS_$_SenTestCase", referenced from:
>      _OBJC_METACLASS_$_Tests in Tests.o
> ld: symbol(s) not found for architecture i386
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>
>
>
>
>
> On May 29, 2013, at 18:04 , Rick Mann <email@hidden> wrote:
>
>> I've got this link error:
>>
>> Undefined symbols for architecture i386:
>> "_OBJC_CLASS_$_SenTestCase", referenced from:
>>     _OBJC_CLASS_$_Tests in Tests.o
>>
>> When building my unit test target, but the SenTestFramework was clearly added to the link phase.
>>
>> To complicate matters: this is on a colleague's machine. He checked in the changes and I checked them out. The build fails in the same way, but when I go to investigate the target link phase, it's not there. The only thing that appears in the Build Phases tab of BOTH my app and test targets is the Compile Sources phase, and it only shows 2 of 156 items to compile.
>>
>> I tried quitting and re-launch Xcode, but it's still messed up. What is suddenly going on???
>>
>> --
>> Rick
>>
>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
> --
> Rick
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: SenTestCase link error but framework clearly linked
      • From: Rick Mann <email@hidden>
References: 
 >SenTestCase link error but framework clearly linked (From: Rick Mann <email@hidden>)
 >Re: SenTestCase link error but framework clearly linked (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: SenTestCase link error but framework clearly linked
  • Next by Date: Re: SenTestCase link error but framework clearly linked
  • Previous by thread: Re: SenTestCase link error but framework clearly linked
  • Next by thread: Re: SenTestCase link error but framework clearly linked
  • Index(es):
    • Date
    • Thread