gTest + XCode 4

447 views
Skip to first unread message

Hugo Cordeiro

unread,
Jun 15, 2011, 10:46:20 PM6/15/11
to Google C++ Testing Framework
Hi,

I had the message...

"The selected destination is not valid for this action"

...when i tried to build the xcode solution using xcode 4 after i
downloaded the source with...

"svn checkout http://googletest.googlecode.com/svn/trunk/ googletest-
read-only"

In order to solve this i changed the Build Settings in 3 places

. Architectures - Standard (32/64 bit intel)
. Base SDK - Latest Mac OS X (Mac OS X 10.6)
. C/C++ Compiler Version - System default (LLVM GCC 4.2)

Now it compiles with xCode4

I am not sure if one needs to change all the 3 places, BUT it is
working.

I am a newbie with Xcode, gTest, and coding in general and i've spent
almost a week nailing down this issue. There is almost no information
about this online, so i believe it could be useful to other developers
if you put (at least) this solution online in the wiki at.

http://code.google.com/p/googletest/wiki/V1_6_XcodeGuide

Thank you
/Hugo

Hugo Cordeiro

unread,
Jun 16, 2011, 1:16:25 PM6/16/11
to Google C++ Testing Framework
Ok, even with that i still cant make gTest work with Xcode4, i´ve been
trying to follow this japanese video http://www.youtube.com/watch?v=RWnoYdxTtL4
and the instructions on the wiki, but everything is designed for
Xcode3 and Xcode4 seems like a different beast all together...

Has anyone of you enlightened people did successfully manage to
integrate gTest and Xcode4?

Would you be so kind to enlighten me and all the other 6 year old
newbies out there as well?

Thank you so much for your effort!

Kind Regards
/Hugo

Jason Nerothin

unread,
Feb 16, 2013, 5:04:02 PM2/16/13
to googletes...@googlegroups.com
I blogged a solution that worked for me from scratch:

Zhanyong Wan (λx.x x)

unread,
Feb 19, 2013, 1:06:49 PM2/19/13
to Jason Nerothin, Google C++ Testing Framework
Thanks for sharing, Jason!


On Sat, Feb 16, 2013 at 2:04 PM, Jason Nerothin <jasonn...@gmail.com> wrote:
I blogged a solution that worked for me from scratch:

--
 
---
You received this message because you are subscribed to the Google Groups "Google C++ Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframe...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Zhanyong

Jason Nerothin

unread,
Feb 19, 2013, 2:48:01 PM2/19/13
to googletes...@googlegroups.com
You're welcome. I'm not sure I got it 100% right, though. 

The Version Target in Xcode works fine, but the Check target fails. (I'm new to XCode). To my naïve eyes, the failures seemed to be coming from test code that you might expect to fail, so I went back and recompiled while allowing the warnings that come from the PIE setting. But the result was the same. It could be that the /bin/sh wrapper that's executing in the Check target isn't handling return codes correctly? but I'm just guessing. 

Can anyone with more XCode skill see if they can help us out?

On Tuesday, February 19, 2013 12:06:49 PM UTC-6, Zhanyong Wan wrote:
Thanks for sharing, Jason!


On Sat, Feb 16, 2013 at 2:04 PM, Jason Nerothin <jasonn...@gmail.com> wrote:
I blogged a solution that worked for me from scratch:

--
 
---
You received this message because you are subscribed to the Google Groups "Google C++ Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframework+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Zhanyong
Reply all
Reply to author
Forward
0 new messages