Re: libPng.dylib: "file is not of required architecture"
Re: libPng.dylib: "file is not of required architecture"
- Subject: Re: libPng.dylib: "file is not of required architecture"
- From: Kurt Bigler <email@hidden>
- Date: Thu, 07 Feb 2008 19:30:43 -0800
- Thread-topic: libPng.dylib: "file is not of required architecture"
Title: Re: libPng.dylib: "file is not of required architecture"
Just out of curiosity, is your Architectures build setting for your active build configuration set to be $(NATIVE_ARCH) ?
If so, and if you switch development system architectures midstream I wonder if Xcode gets confused. Then I'd be curious if the same thing happens if you enable both PPC and Intel, and then make the switch between the two development systems.
Not that it shouldn't be keeping the two architectures totally separate anyway--unless maybe you have overridden a default build setting that specifies what is supposed to be an architectures-specific directory path for some intermediate build result.
-Kurt
on 2/7/08 5:53 PM, Jacob Bandes-Storch <email@hidden> wrote:
I've been working on a project on both my old PPC G4 and my Intel Core Duo macs. After working on the PPC, when I bring it over to the Intel computer, sometimes I get this build error:
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib, file is not of required architecture
collect2: ld returned 1 exit status
What causes this? It's using the 10.4 SDK... I'm trying to make the program compatible at least back to 10.4. Sometimes this works, sometimes it doesn't... What causes this problem that must have changed? (I also get something about build.hmap being/not being a directory — that's fixed by cleaning the build.)
_______________________________________________
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
_______________________________________________
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