[CMake] iOS Archiving in release mode (continued)

Daniel Dekkers d.dekkers at cthrough.nl
Sat Dec 3 09:20:10 EST 2011


Hi,

One step further on this path...

Back to Xcode 4.0.2 (GCC 4.2 compiler) gives better error messages, Xcode 4.2 (LLVM clang compiler) just gives the informative: "error=1".
This now shows that (at least one of) the problem(s) is that in the iOSNavApp example, the "Functions" library is not found when archiving during the link phase.
When building (normal build, or run) it will create the library in path/to/build/Debug-iphonesimulator (for example). 
But when archiving, the intermediate directory is used (the one with the long number) and the application link doesn't find it.

I don't know a "CMake-way" to set these paths correctly, some "extension" to
set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimulator") maybe?

Attached what I have now...

Thanks,
Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: iOSNavAppUniversal.zip
Type: application/zip
Size: 19131 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111203/2b569884/attachment-0001.zip>


More information about the CMake mailing list