iOS-Universal-Framework icon indicating copy to clipboard operation
iOS-Universal-Framework copied to clipboard

Can not Recognize Link Flag "-fobjc-arc"

Open taojigu opened this issue 11 years ago • 2 comments

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

taojigu avatar Dec 20 '13 09:12 taojigu

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...

ruisilvestre avatar Jan 20 '14 14:01 ruisilvestre

up? any solutions here?

giovatardu avatar Mar 25 '14 22:03 giovatardu