ld: warning: file is not of required architecture
ld: warning: file is not of required architecture
- Subject: ld: warning: file is not of required architecture
- From: Scott Cherf <email@hidden>
- Date: Tue, 15 Jun 2010 13:34:46 -0700
I have a puzzling problem with Xcode builds I could use some help with.
I have a product that uses two separately compiled dylibs that are maintained in their own projects and built using external build tools (make) under Xcode control. My development platform is a MacBook Pro with a 2.16 GHz Intel core duo processor, my delivery environment is a Mac Mini with a 1.82 GHz Intel core duo processor. Both machines are running 10.6.2.
I can build the product on the Mac Book, copy it to the Mini and run it with the libraries installed in the application bundle relative to the executable path. No problems, works just fine. When I try building and running the application under the debugger using the same build configurations (mounting the same source repositories on a different machine) the links fail with the error shown in the subject line 'ld: warning: <blah> file is not of required architecture'. A make clean on both libraries followed by a re-build makes the error go away, however when I move back the the MacBook I have to clean and build the libraries again or I get the error.
It's clearly not a problem with the processor architecture. It doesn't appear to be a problem with the build configurations or with the source since those are shared between the two machines. The libraries themselves run fine when moved between platforms without re-compilation.
Does anyone have any idea why ld is moaning about this and how to prevent it?
Thanks,
Scott.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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