Xcode 4 / Xcode 3: embedded static library/project problem
Xcode 4 / Xcode 3: embedded static library/project problem
- Subject: Xcode 4 / Xcode 3: embedded static library/project problem
- From: David Hoerl <email@hidden>
- Date: Tue, 24 May 2011 17:54:54 -0400
I'm looking for a workaround to a problems sharing a project between
Xcode 3 and Xcode 4 users.
Like other posters, we have a set of applications that include a static
library project with core code. In Xcode 3, we use a "-force_load <lib>"
line in our "Other Linker Flags" section. Its been working great!
So, some of us now exploring using Xcode 4. When we try to use our app
project, it appears that Xcode 4 doubly links the static library:
... -force_load /.../mylib.a -ObjC -Xlinker -objc_abi_version -Xlinker 2
/Users/dhoerl/Library/Developer/Xcode/DerivedData/App-bfxvljzghincevcntmyzwhoyoqze/Build/Products/ReleaseWithAsserts-iphonesimulator/myLib_US.a
and the build fails with a such and such symbol doubly defined.
I need the force_load because of there are categories in the library.
Just to test, I removed the force_load statement and the library from
the Other Linker Flags, and the project now links and starts running.
But of course the categories are missing so it crashes right away.
Would be very appreciative of any suggestions on how to fix this.
David
_______________________________________________
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