• 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
SenTestingKit not found for Test file relocated across targets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SenTestingKit not found for Test file relocated across targets


  • Subject: SenTestingKit not found for Test file relocated across targets
  • From: Stuart Malin <email@hidden>
  • Date: Thu, 18 Dec 2008 09:35:21 -1000

I have a Tests target in my project that is set up for Unit Tests. It had a single tests file that compiled and ran fine. I added a new file, and the compiler reported an error in the .m file that in the included .h file that the SenTestingKit was not found. I thought this quite odd, as the existing test file worked just fine. In looking into this, I discovered that I had inadvertently added the new test file to the wrong target (not the Tests target). So I did Get Info on the new test's .m file, and changed its target membership. But this did not make the error go away. I couldn't fathom what else to do, so I created yet a new test file, and added this to the Tests target via the New File Assistant. This third test file did not have the error. So I renamed it, moved my test code from the second file into the the third, and deleted the second file. This compiles fine. So, while I have fixed my problem, I am stumped: why didn't changing the .m file's target membership fix the problem? Should it have? Is there yet something else I need to do if I move a file from one target to another? (BTW: I had validated that when I changed the target, the .m file did appear in the Tests target's Compile Sources build phase). Sorry for being wordy and hope my description is clear enough.
_______________________________________________
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: SenTestingKit not found for Test file relocated across targets
      • From: Timothy Reaves <email@hidden>
  • Prev by Date: Re: Age Old Question: How Do You Set __MyCompanyName__
  • Next by Date: Re: Age Old Question: How Do You Set __MyCompanyName__
  • Previous by thread: Re: Age Old Question: How Do You Set __MyCompanyName__
  • Next by thread: Re: SenTestingKit not found for Test file relocated across targets
  • Index(es):
    • Date
    • Thread