This Question is Answered

1 "correct" answer available (4 pts)
8 Replies Last post: Mar 18, 2013 1:04 PM by Scot Mcphee  
Scot Mcphee Newbie 6 posts since
Mar 14, 2013
Currently Being Moderated

Mar 14, 2013 7:07 PM

test targets and renaming test classes

So ... I renamed a test class in my test cases.

 

Then the test target started to fail:

unable to open executable '/Users/smcphee/Library/Caches/appCode10/DerivedData/<product>-6322e2cf/Build/Products/Debug-iphonesimulator/<target>Tests.octest/<test class>'

Can't generate the DSYM and the linker fails.

 

I tried to then reconfigure my test target. This makes it worse.

 

This is not strictly AppCode - Xcode has the same basic result.

 

Then, I just revert all my project back to the last head version.

 

Tests still fail as above. The "missing" test class (orginal name) still exists. Appcode and Xcode. Project totally reverted to the way it was pre- test class rename! My tests permanently busted!

 

What's going on? Is there something **external** to the project directory that controls the configuration of the test cases?

 

I'm using Appcode because I'm a former Java programmer (10+years).  And while Appcode is way nicer than Xcode it seems to me that the whole way Apple has designed the project structure and stuff is like some blast from the 1980s. Its like something Oracle would design.  It's horrible and crippled and on what planet does renaming a test class destory your project configuration?!.

 

But does anyone have any ideas on how I might fix it?

 

Thankyou.

 

oh .. project code (which did work) is here https://github.com/scotartt/LatinLookupTool

 

[edit: no, it doesn't .. the whole test cfg is missing which must be the issue .. but adding back in according to apple's instructions results in a test scheme that has no execution target? ... how the hell do i fix that?]

Anton Makeev JetBrains 1,083 posts since
Dec 19, 2006
Currently Being Moderated
Mar 15, 2013 11:23 AM in response to: Scot Mcphee
Re: test targets and renaming test classes

Scot,

first, check the Run Configuration in AppCode, it should be OCUnit configuration with the corresponding class/test method specified.

If everything is correct, try cleaning the derived output folder (~/Library/Caches/appCodeXX/DerivedDir, and rebuilding the app from the scratch.

Anton Makeev JetBrains 1,083 posts since
Dec 19, 2006
Currently Being Moderated
Mar 15, 2013 4:53 PM in response to: Scot Mcphee
Re: test targets and renaming test classes

Scot,

could you please shortly restate the current problems that you have?

Thanks.

Anton Makeev JetBrains 1,083 posts since
Dec 19, 2006
Currently Being Moderated
Mar 18, 2013 12:14 PM in response to: Scot Mcphee
Re: test targets and renaming test classes

Scot,

thanks for the update, we are glad that you've resolved the problem.

Though, we still don't quite get what issues you had had; if there is something that appcode could help with in such problematic situations, we'd appreciate a request with project example.

More Like This

  • Retrieving data ...