Debugging SenTestingKit UnitTests on Leopard
Debugging SenTestingKit UnitTests on Leopard
- Subject: Debugging SenTestingKit UnitTests on Leopard
- From: Martin Häcker <email@hidden>
- Date: Mon, 12 Nov 2007 20:32:52 +0100
Hi there,
Can somebody give me a Hint (hi Chris Hanson :) on how to debug
UnitTests on Leopard? It works fine on Tiger this way, but on Leopard
the app just crashes when run under the debugger (the tests
themselves run fine from the xcodebuild).
I've read everything that I could find on this list, cocoa-dev and
the apple-docu as well as what I could find via google. So, help please?
For the record: I...
* Created a custom Executable with an argument of -SenTest All
* Added the following Environment Variables:
** XCInjectBundle: $(BUILT_PRODUCTS_DIR)/my unitTests.octest
** DYLD_INSERT_LIBRARIES: $(DEVELOPER_LIBRARY_DIR)/PrivateFrameworks/
DevToolsBundleInjection.framework/DevToolsBundleInjection
** DYLD_FALLBACK_FRAMEWORK_PATH: $(DEVELOPER_LIBRARY_DIR)/Frameworks
If I leave out the last one gdb doesn't even start barfing about not
finding SenTestingKit.framework - so I believer that is the right way
to fix it, as I cannot just add the searchpath to the buildsetting
LD_RUNPATH_SEARCH_PATHS.
What happens is that my app either crashes under the debugger as soon
as I have something more complicated than NSLog(@"got here"); in my
test - or that I get the output from the tests running on the console
(and I can see there that my tests do get handled by OCUnit) but the
debugger does not stop on my breakpoints.
Of course its a debug build - and also it works perfectly on tiger
with the same setup - minus DYLD_FALLBACK_FRAMEWORK_PATH which isn't
neccessary there.
So.... where to go next? I'd really like to break in my unit tests
once in a while.
Greetings,
Martin
_______________________________________________
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