• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Linking additional object files into framework project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking additional object files into framework project


  • Subject: Linking additional object files into framework project
  • From: Jonathan Mitchell <email@hidden>
  • Date: Thu, 10 Apr 2014 22:23:26 +0100

I have a project with two targets.

A is a standard framework.
B is a makefile project that contains a large number (~1300) of auto generated source files. The makefile builds the source into objects but doesn’t link them.

The object files generated in target B have to be linked into target A.

My initial thinking is that I should construct an additional -filelist argument listing the objects of B and pass that into A’s Other Linker Flags.
Is that the right approach?
Can I use a wildcard to identify the additional .o files to be included (I think not probably)?

The existing link invocation for A is as follows.

Ld /Users/jonathan/Library/Developer/Xcode/DerivedData/Dubrovnik-cuubqgllbcxaupgdudzutlqkgljz/Build/Products/Debug/Dubrovnik.framework/Versions/A/Dubrovnik normal x86_64
    cd /Users/jonathan/Documents/Thesaurus/Development/xcode/BrightPay.OSX/Dubrovnik/Framework/XCode
    export MACOSX_DEPLOYMENT_TARGET=10.9
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-arch x86_64
-dynamiclib
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
-L/Users/jonathan/Library/Developer/Xcode/DerivedData/Dubrovnik-cuubqgllbcxaupgdudzutlqkgljz/Build/Products/Debug
-L/Users/jonathan/Documents/Thesaurus/Development/xcode/BrightPay.OSX/Dubrovnik/Framework/XCode/Libraries
-F/Users/jonathan/Library/Developer/Xcode/DerivedData/Dubrovnik-cuubqgllbcxaupgdudzutlqkgljz/Build/Products/Debug
-F/Library/Frameworks
-filelist /Users/jonathan/Library/Developer/Xcode/DerivedData/Dubrovnik-cuubqgllbcxaupgdudzutlqkgljz/Build/Intermediates/Dubrovnik.build/Debug/Dubrovnik.build/Objects-normal/x86_64/Dubrovnik.LinkFileList
-install_name @rpath/Dubrovnik.framework/Versions/A/Dubrovnik
-mmacosx-version-min=10.9
-lpthread
-fobjc-arc
-fobjc-link-runtime
-framework Mono64
-framework Cocoa
-lJudy
-single_module
-compatibility_version 1
-current_version 1
-Xlinker -dependency_info
-Xlinker /Users/jonathan/Library/Developer/Xcode/DerivedData/Dubrovnik-cuubqgllbcxaupgdudzutlqkgljz/Build/Intermediates/Dubrovnik.build/Debug/Dubrovnik.build/Objects-normal/x86_64/Dubrovnik_dependency_info.dat
-o /Users/jonathan/Library/Developer/Xcode/DerivedData/Dubrovnik-cuubqgllbcxaupgdudzutlqkgljz/Build/Products/Debug/Dubrovnik.framework/Versions/A/Dubrovnik

Thanks

Jonathan


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Linking additional object files into framework project
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Removing links from wired properties and IBActions in classes.
  • Next by Date: Re: Linking additional object files into framework project
  • Previous by thread: Re: Removing links from wired properties and IBActions in classes.
  • Next by thread: Re: Linking additional object files into framework project
  • Index(es):
    • Date
    • Thread