• 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: BUILT_PRODUCTS_DIR problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUILT_PRODUCTS_DIR problem


  • Subject: Re: BUILT_PRODUCTS_DIR problem
  • From: ivasena <email@hidden>
  • Date: Fri, 06 Jul 2007 22:46:11 +0300

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?

Sergey


Fritz Anderson wrote:
On 6 Jul 2007, at 8:13 AM, Sergey Ivasenko wrote:

I'm trying to debug unit test for my project in XCode. When debug starts XCode says that it's not able to load the bundle build/Unit Tests.octest.
This is when XCInjectBundle = $(BUILT_PRODUCTS_DIR)/ Unit Tests.octest. I've written the complete path to the test bundle and it worked! What could be the reason that the $(BUILT_PRODUCTS_DIR) variable contained wrong/incomplete path??? Are there any other reasons why it worked only with full path qualified?

Don't assume BUILT_PRODUCTS_DIR was not correctly set. Add a run-script build phase (the script can be empty) to your target, open the build transcript and find BUILT_PRODUCTS_DIR among the setenvs done before the script is run.


If the problem is not apparent from what you find, copy the line and post it to this thread.

    — F



_______________________________________________ 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: BUILT_PRODUCTS_DIR problem
      • From: Chris Hanson <email@hidden>
References: 
 >BUILT_PRODUCTS_DIR problem (From: Sergey Ivasenko <email@hidden>)
 >Re: BUILT_PRODUCTS_DIR problem (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: linking problem
  • Next by Date: Re: BUILT_PRODUCTS_DIR problem
  • Previous by thread: Re: BUILT_PRODUCTS_DIR problem
  • Next by thread: Re: BUILT_PRODUCTS_DIR problem
  • Index(es):
    • Date
    • Thread