Re: Lipo & PackageMaker Error ?
Re: Lipo & PackageMaker Error ?
- Subject: Re: Lipo & PackageMaker Error ?
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 11 Jan 2006 18:53:02 -0800
On Jan 11, 2006, at 10:07 AM, Pavol Markovič wrote:
On Jan 11, 2006, at 4:39 PM, Stéphane Sudre wrote:
On Jan 11, 2006, at 4:09 AM, Eric Albert wrote:
On Jan 11, 2006, at 3:52 AM, Dirk Stegemann wrote:
My situation:
Dual-G4 867, Mac OS X 10.4.2 (8C46), Xcode 2.2:
Creates ppc binary using gcc 3.3, backward compatible to Mac OS X
10.2.8.
Developer Transition System, Mac OS X 10.4.3 (8F1111), Xcode 2.2:
Creates i386 binary using gcc 4.0.1
I used 'lipo' to create a universal binary, but PackageMaker
(invoked via command line) complains about "malformed object
(unknown flavor for flavor number 0 in LC_UNIXTHREAD command 16
can't byte swap it))".
I was just looking into another report of this tonight, so this is
interesting.
This problem can happen two ways:
- when you're creating the package on OS X 10.4 (either command line
or User Interface) => Warning
- when you're installing a UB package on Mac OS X 10.2 (and a
previous version of the UB Package has been installed) => Crash of
Installer.app.
Is there any known workaround for this (post-flight script that
deletes Receipt or something similar)? We support 10.2 systems and use
PackageMaker to make packages.
This is what I'm using for our Universal binary packages. It might not
be the best shell script ever written but it works AFAIK:
## Remove the Receipts if needed on 10.2.8
tOSVersion=`sysctl -n kern.osrelease | awk '{ if ($1 >= "7.0.0") print
"PANTHER_AND_LATER"; else print "PRE_PANTHER" }'`
if [ $tOSVersion = "PRE_PANTHER" ]; then
if [ -d $3/Library/Receipts/YourPackage.pkg ]; then
/bin/rm -r $3/Library/Receipts/YourPackage.pkg
fi
fi
_______________________________________________
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