• 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
RE: Xcode 4 / Xcode 3: embedded static library/project problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Xcode 4 / Xcode 3: embedded static library/project problem


  • Subject: RE: Xcode 4 / Xcode 3: embedded static library/project problem
  • From: David Hoerl <email@hidden>
  • Date: Wed, 25 May 2011 14:40:36 -0400

[For the archives...]

Well, I never did really find a solution, but I worked out a way to support both Xcode 3 and Xcode 4.

In Xcode 3, the included projects library has to be added to the "Link" Build phase list of libraries, or the library does not get build when source files change. You also need the "-force_load" flag with the libarary path name EXACTLY as it appears later the Xcode 3 link command (links to the same file cause a double load). Xcode sees this library as being located in the contained projects build folder, not in the containing project's.

In Xcode 4, the contained library project's library ends up the the containing projects build product directory. So the "-force_load" arguements must also be exactly the same as the library path in the link command: ${BUILT_PRODUCTS_DIR}/libMyLib.a

So, the only solution I can find is add additional build configurations, modeled on the originals, with a postpended "4": Debug4, Release4, etc. Each of these has a modified "Other Linker Flags" configuration.

_______________________________________________
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


  • Prev by Date: Re: Sub-classing NSWindow (i.e. creating a custom title bar)
  • Next by Date: Re: XCode 4 System Requirement
  • Previous by thread: Xcode 4 / Xcode 3: embedded static library/project problem
  • Next by thread: RE: Sub-classing NSWindow
  • Index(es):
    • Date
    • Thread