kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.95k stars 473 forks source link

Can not Recognize Link Flag "-fobjc-arc" #166

Open taojigu opened 10 years ago

taojigu commented 10 years ago

In BuildSetting , I configure "Other Link Flag" with "-fobjc-arc", and get the Error when build: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `f' in: -fobjc-arc

ruisilvestre commented 10 years ago

This happens to me with any "Other Linker Flag" I specify, e.g. "-ObjC", "-framework CoreData", etc. using the latest MK8

as a real-world example, this is one of the errors I get:

UFW (M iphonesimulator): INFO: Cmd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only i386 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/rui.silvestre/Library/Developer/Xcode/DerivedData/TSDDataPipeline-bpdqjeptzckenqbwjzfwqqcvwqqx/Build/Products/Debug-iphonesimulator -filelist /Users/rui.silvestre/Library/Developer/Xcode/DerivedData/TSDDataPipeline-bpdqjeptzckenqbwjzfwqqcvwqqx/Build/Intermediates/TSDDataPipeline.build/Debug-iphonesimulator/TestF.build/Objects-normal/i386/TestF.LinkFileList -framework CoreData -ObjC -o /Users/rui.silvestre/Library/Developer/Xcode/DerivedData/TSDDataPipeline-bpdqjeptzckenqbwjzfwqqcvwqqx/Build/Intermediates/TSDDataPipeline.build/Debug-iphonesimulator/TestF.build/Objects-normal/i386/TestF.ufwbuild UFW (M iphonesimulator): INFO: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `f' in: -framework CoreData -ObjC

any ideas on how to solve this? the linker flags appear to be correctly appended to the command line for the libtool call...

giovatardu commented 10 years ago

up? any solutions here?