View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012597CMakeCMakepublic2011-11-29 06:042012-04-02 10:10
ReporterHartmut Seichter 
Assigned ToBrad King 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product VersionCMake 2.8.6 
Target VersionFixed in Version 
Summary0012597: Makefile and Xcode generators adds bogus/hardcoded LD_FLAG values to iOS project file
DescriptionTargeting iOS 5 from a Lion installation with Xcode 4.2.1 one cannot generate valid iOS project files.

Both, the Xcode and Makefile generators are adding LD_FLAG values that do not correspond to the selected SDK and compiler (CLang).
Steps To ReproduceAttached a minimal example. Setting up the build system either for Makefiles or Xcode does add

" -Wl,-search_paths_first -Wl,-headerpad_max_install_names -arch armv6 -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -miphoneos-version-min=4.0 "

In Xcode that can be overridden by using the info panel of the project but any change in the project brings it back.
TagsNo tags attached.
Attached Fileszip file icon Minimal_iOS.zip [^] (1,422 bytes) 2011-11-29 06:04

 Relationships

  Notes
(0027868)
Brad King (manager)
2011-11-29 08:31

In order to taget iOS you need to use a cross-compiling toolchain file:

http://www.cmake.org/Wiki/CMake_Cross_Compiling [^]
http://stackoverflow.com/questions/6476203/how-can-i-make-cmake-use-specific-compiler-and-flags-when-final-compilation-stag [^]
(0029052)
David Cole (manager)
2012-04-02 10:10

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-11-29 06:04 Hartmut Seichter New Issue
2011-11-29 06:04 Hartmut Seichter File Added: Minimal_iOS.zip
2011-11-29 08:31 Brad King Note Added: 0027868
2011-11-29 08:31 Brad King Status new => resolved
2011-11-29 08:31 Brad King Resolution open => no change required
2011-11-29 08:31 Brad King Assigned To => Brad King
2012-04-02 10:10 David Cole Note Added: 0029052
2012-04-02 10:10 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team