I found a workaround, if anybody is interested. The problem lies in the cmake generator setting the INSTALL_PATH to "" in the project file. Not sure why cmake does this, but a fix is to remove all entries.
Here is a bash script which takes a pbxproj file as argument and fixes it: #! /bin/bash sed -i".bak" '/INSTALL_PATH/d' $1 Would be helpful if somebody working on cmake would comment, and perhaps fix this issue. Johan --- Den sön 2011-06-26 skrev Johan Knutzen <knutzen_jo...@yahoo.se>: > Från: Johan Knutzen <knutzen_jo...@yahoo.se> > Ämne: [CMake] XCode4 and archiving > Till: cmake@cmake.org > Datum: söndag 26 juni 2011 16:00 > Hey! > > I've experienced a few hickups when using cmake with XCode > 4, and one of them is the ability to create archives. In the > IDE you do this by clicking Product->Archive, which > results in an archive which you later can sign with > different provisioning profiles when distributing iOS apps > to beta testers. > > However, for projects generated using cmake the archiving > command does not work. The result of that command should be > an archiving listed in the organizer, but that is not the > case when you have a cmake generated project. > > Does anyone have a solution or work around for this? > > Johan > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake