• 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
Setup debug for Unittest with CPlusTest
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setup debug for Unittest with CPlusTest


  • Subject: Setup debug for Unittest with CPlusTest
  • From: Tobias Kräntzer <email@hidden>
  • Date: Mon, 6 Apr 2009 12:00:00 +0200

Hi,

I try to set up unittest in my project. I write a small lib in plain C and want to test the functions. Therefor I set up a new CPlusTest target and created tests. All this went quite well, until I want to debug my tests.

To be able to debug them, I followed the steps in [1]. I created a custom executable and passed the path to my Unittest.cptest as an argument. Starting the debugger, I got the following error:

  ...
  run
  [Switching to process 5109 local thread 0x2d03]
  Running…
  Couldn't load test bundle from 'build/Debug/Unittest.cptest'.

  Debugger stopped.
  Program exited with status value:2.

After that I tried to start CPlusTestRig from the terminal. There I got this error:

tobias@MB:~/Sandkasten/CPlustTestExample$ /Developer/Tools/ CPlusTestRig build/Debug/Unittest.cptest
2009-04-06 11:29:01.809 CPlusTestRig[4983:10b] Error loading /Users/ tobias/Sandkasten/CPlustTestExample/build/Debug/Unittest.cptest/ Contents/MacOS/Unittest: dlopen(/Users/tobias/Sandkasten/ CPlustTestExample/build/Debug/Unittest.cptest/Contents/MacOS/Unittest, 262): no suitable image found. Did find:
/Users/tobias/Sandkasten/CPlustTestExample/build/Debug/ Unittest.cptest/Contents/MacOS/Unittest: mach-o, but wrong architecture
Couldn't load test bundle from 'build/Debug/Unittest.cptest'.


After this message, I looked in the build settings and changed the Architecture from "Standard (32-bit Universal)" to "Native Architecture of Build Machine" but got the same error message.

I'm pretty new to xcode and the development for mac.
So I'm not experienced in using the tools.

I would be happy if someone could give me a hint.

Greetings,
Tobias

[1] <http://lists.apple.com/archives/xcode-users/2005/Jul/msg00192.html>

--
Tobias Kräntzer
email@hidden



_______________________________________________
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


  • Prev by Date: Re: debugging rubycocoa in Xcode
  • Next by Date: Moving files with Xcode projects
  • Previous by thread: Re: debugging rubycocoa in Xcode
  • Next by thread: Moving files with Xcode projects
  • Index(es):
    • Date
    • Thread