Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8939611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:51:36+00:00 2026-06-15T10:51:36+00:00

I’m developing a database-access library and I’m trying to check for memory leaks using

  • 0

I’m developing a database-access library and I’m trying to check for memory leaks using already-written unit tests.

These are logic tests based on SenTestingKit, set up the normal way in Xcode 4.2. I can run them fine using Cmd-U but don’t see a way to start them from Instruments, or to invoke Instruments to examine them.

How can I make this work? Do I need to write new cases and build them into an application?

(This question is about leak-checking unit tests but I think is pre-SenTestingKit.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:51:37+00:00Added an answer on June 15, 2026 at 10:51 am

    This answer begins with SenTest for OS X. If you are concerned with using SenTest for iOS under instruments, skip to the next section.

    OS X Unit Tests in Instruments

    I realize this is a bit late, but I needed to run instruments on a logic test today and got it working for my environment, so here’s what I did:

    1. With Instruments running, create a new document.
    2. Choose Target from the Target drop down in the document
    3. Check the “Traverse Packages” option in the lower-right to allow you to dig inside of the Xcode package
    4. Navigate into /Applications/Xcode and find the otest binary inside of /Applications/Xcode.app/Contents/Developer/Tools/ and select it
    5. Add OBCJ_DISABLE_GC with a value of YES as an environment variable (don’t do this if you’re running GC)
    6. Add DYLD_FRAMEWORK_PATH and point at the directory containing of your .octest package
    7. Add DYLD_LIBRARY_PATH with the same value as DYLD_FRAMEWORK_PATH
    8. Set your Working Directory to be the directory where your .xcodeproj lives
    9. For arguments, use -SenTest Self and the full path to your .octest package

    Some of the environment variables and your working directory may not be essential depending on whether you need additional frameworks to load and whether you have test files in your code directory that require reading. So, you may omit those steps if they don’t apply to you.

    Once you’re done, you’ll be able to Save the document and use it to run the tests.

    iOS Unit Tests in Instruments

    After the OP clarified the requirements, I went about verifying the basic instructions for this with an iOS-simulator-based project.

    For iOS, you need a somewhat different configuration, owing to the fact that you’re debugging a different executable, and you will need different libraries. So, the DYLD_FRAMEWORK_PATH will include both the path to your .octest package’s directory, and that of the Simulator’s Frameworks. The latter will be something like this:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/Developer/Library/Frameworks
    depending on which version of the simulator you are using and we’ll refer to it below as SDKPATH

    1. With Instruments running, create a new document.
    2. Choose Target from the Target drop down in the document
    3. Check the “Traverse Packages” option in the lower-right to allow you to dig inside of the Xcode package
    4. Navigate into /Applications/Xcode and find the otest binary inside of /Applications/Xcode/Developer/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/Developer/usr/bin/ and select it
    5. Add DYLD_LIBRARY_PATH and point at the directory containing of your .octest package
    6. Add DYLD_ROOT_PATH pointed just at the SDKPATH (above)
    7. Add IPHONE_SIMULATOR_ROOT with SDKPATH (above)
    8. Add DYLD_FRAMEWORK_PATH and point at the directory containing of your .octest package and the SDKPATH (above), separating them by a colon (:) in the path list
    9. Add CFFIXED_USER_HOME with your iPhone simulator home (~/Library/Application Support/iPhone Simulator although I’ve expanded it before putting it here, as I’m not sure the ~ gets interpreted)
    10. Set your Working Directory to be the directory where your .xcodeproj lives
    11. For arguments, use -SenTest Self and the full path to your .octest package
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am reading a book about Javascript and jQuery and using one of the
I am trying to understand how to use SyndicationItem to display feed which is
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.