mardi 24 mars 2015

Google test not working on Xcode 6

I am following the wiki page and some posts, here are the instructions form What is the proper way to configure googletest with Xcode 4? I am using Xcode 6.



1. Follow the instructions located at http://ift.tt/1FD1xml to build the gtest.framework package.
2. Create a new command line tool target.
3. Copy the contents of the main.cpp file in the googletest framework into your new main.cpp file for your target. Your main function will kick off the google test.
4. Execute the new target when you want to run your unit tests.


I built the gtest.framework, and paste it to /Library/Frameworks, I am confused why, after the first step, the samples are not working. They are showing in red.


I assume I initiate the tests by double click on the black icon executables? I clicked all of them, they only open an empty file window.


enter image description here


Is there any problem with my set up or laptop? How could I get at least the samples working please? Thank you.


Edit: I tried the rest of the steps: Add target with command line tool Copy code in gtest/Source/src/gtest_main.cc to gtest/UnitTest/main.cc Save, double click the black UnitTest executable


==> Empty file window opened....


Help please.


Aucun commentaire:

Enregistrer un commentaire