Re: BUILT_PRODUCTS_DIR problem
Re: BUILT_PRODUCTS_DIR problem
- Subject: Re: BUILT_PRODUCTS_DIR problem
- From: ivasena <email@hidden>
- Date: Fri, 06 Jul 2007 23:27:30 +0300
Hi Chris!
That seems to resolve the problem with error accessing bundle; I just
removed $(BUILT_PRODUCTS_DIR) from the path. But still not able to debug
unit tests. It doesn't stop at breakpoints. Nevertheless, XCode sees them:
Running…
Pending breakpoint 1 - ""LocalStorageTest.m:46" resolved
Pending breakpoint 2 - ""LocalStorageTest.m:10" resolved
Well, I managed to debug those tests before. I don't understand what's
happening with environment :(
Chris Hanson wrote:
On Jul 6, 2007, at 12:46 PM, ivasena wrote:
Hi Fritz!
Thanks for the feedback. I'm quite new to XCode and Obj-C in general...
I have an application, xFar. This is what to be tested. I added a
test bundle Unit Tests to the same project. Target Unit Tests has Run
Script build phase. Here is what it contains:
---------------------------------
# Run the unit tests in this test bundle.
"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"
---------------------------------
The error I got when trying to debug unit tests is
DevToolsBundleInjection: Error accessing bundle 'build/Debug/Unit
Tests.octest'
I'm not quite sure what should I do... Could you, please, assist
further?
Double-click the executable (in your Xcode project's Executables
group) that you've set up for debugging your tests. In the General tab
in its info window, there are three options for the working directory
to use. Set it to Build Products Directory. Then you can change the
"$(BUILT_PRODUCTS_DIR)/Unit Tests.octest" item in the Arguments tab to
just "Unit Tests.octest" since it will be referenced from the
directory you're expecting.
Alternately, you could set the executable's working directory to
Project Directory.
-- Chris
_______________________________________________
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