libtool does not support -ios_version_min link editor flag

Originator:mail
Number:rdar://23663451 Date Originated:25-Nov-2015 01:58 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.1.1 (7B1005)
Classification:Serious Bug Reproducible:Always
 
Attempting to use libtool to build an iOS library generates the following error:

     building for OSX, but linking in object file built for iOS, for architecture i386

The ld “linker” command has both -macosx_version_min and -ios_version_min flags, attempting to pass the latter of these generates a different error:

    $ libtool -dynamic -ios_version_min 8.0 …

    error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: 8.0 (No such file or directory)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!