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

  • Home
  • SEARCH
  • 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 161831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:16:59+00:00 2026-05-11T11:16:59+00:00

I followed Chris Hanson’s advice about debugging framework unit tests in Xcode 3.1, but

  • 0

I followed Chris Hanson’s advice about debugging framework unit tests in Xcode 3.1, but when trying to run the custom executable, the program crashes, stating the below error message [substituted $(BUILD_PRODUCTS_DIR) for the real location of the build products].

2009-03-02 19:56:03.414 otest[28059:10b] Error loading     $(BUILD_PRODUCTS_DIR)/Debug/Unit Tests.octest/     Contents/MacOS/Unit Tests: dlopen($(BUILD_PRODUCTS_DIR_)/Unit     Tests.octest/Contents/MacOS/Unit Tests, 265):     no suitable image found. Did find:     $(BUILD_PRODUCTS_DIR)/Unit Tests.octest/Contents/MacOS/Unit Tests:     mach-o, but wrong architecture 2009-03-02 19:56:03.561 otest[28059:10b] The test bundle at     $(BUILD_PRODUCTS_DIR)/Unit Tests.octest could not be loaded because     it is built for a different architecture than the currently-running     test rig (which is running as unknown). 2009-03-02 19:56:03.568 otest[28060:203] *** NSTask: Task create for path     '$(BUILD_PRODUCTS_DIR)/Unit Tests.octest/Contents/MacOS/Unit Tests'     failed: 8, 'Exec format error'. Terminating temporary process. 

My question is, what leads to the no suitable image found. Did find: … error message and how can I get the otest executable to run correctly so that I can debug my framework unit tests?

Is there an easier way to do this with out using otest?

  • 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. 2026-05-11T11:17:00+00:00Added an answer on May 11, 2026 at 11:17 am

    otest is running just fine. The error is telling you that it can’t load the test bundle, and that the reason why it can’t load the test bundle is because it doesn’t know what architecture it’s running as.

    The solution is to set ARCHPREFERENCE in otest’s environment. You can do this in Xcode’s custom executable editor. Set it to the architecture you want to run tests under.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 201k
  • Answers 201k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer IV needs to be unique but doesn't have to unpredictable… May 12, 2026 at 8:12 pm
  • Editorial Team
    Editorial Team added an answer found this: http://www.atory.com/Dupe_Checker/ can't give you a review but it… May 12, 2026 at 8:12 pm
  • Editorial Team
    Editorial Team added an answer First I would highly recommend you get it to work… May 12, 2026 at 8:12 pm

Related Questions

I followed Chris Hanson's advice about debugging framework unit tests in Xcode 3.1, but
I followed the steps in www.thinkingblackberry.com/archives/21 If I pick the 4.5.0 JDE with the
I have basically two separate sites, a SharePoint collaboration site, and an ASP.Net application
First time user of stackoverflow, but I have followed its development over on Coding
I am getting a mysterious 500 error when i try to deploy my first

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.