• 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
Workaround for unknown load command error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Workaround for unknown load command error


  • Subject: Workaround for unknown load command error
  • From: Kevin Brock <email@hidden>
  • Date: Thu, 15 Oct 2009 14:39:52 -0700

The "unknown load command" error that is sometimes seen when compiling a project on 10.5 using a 3rd party framework compiled on 10.6 is related to the "Copy Files" build phase.  If the framework isn't being copied into the bundle then the framework isn't stripped, and the error isn't seen.

If you're copying the framework into your bundle, then the error can be avoided if "Strip Debug Symbols During Copy" is turned off in the project using the framework.  It's on by default.

If the copy files build phase also includes one of your own frameworks that you want stripped, you'll need to do that before the copy files phase.

YMMV, but this worked for me when building several projects on 10.5 that were using frameworks compiled on 10.6.  If the frameworks were compiled on 10.6 for targets *before* 10.5, then this error doesn't show up.


Kevin

 _______________________________________________
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: strip error using framework in 10.5 build that was (I think) compiled on 10.6
  • Next by Date: Zombie app
  • Previous by thread: Re: Snow Leopard's DTrace does not enable some probes?
  • Next by thread: Zombie app
  • Index(es):
    • Date
    • Thread