Hi all,

OK, so I updated Xcode to 6.4,and one of my builds is now failing.This seems to 
happen on every update. I usually manage to stumble around and fix it, but this 
time it’s not yielding.

My app includes an embedded framework. This framework is built within the same 
workspace as the app, but is a separate target. The connection between the app 
and the embedded framework seemed to simply disappear with the Xcode update, 
and I had to add the framework back into the “embedded frameworks” section of 
the app’s build settings.

When I build a debug version of the app, it seems to want to use a debug 
version of the embeddedframework. That seems reasonable. But the linker fails 
to find the framework:

ld: warning: directory not found for option 
'-F"/Users/grahamcox/Projects/Mapdiva 
Projects/Artboard/../../Library/Developer/Xcode/DerivedData/Drawkit-gzweppsofrkdiyasaleyeleblyor/Build/Products/Debug”'

Why does this happen (every time)? It’s fine to make the process of embedding a 
framework simpler, but if it fails to join up all the relevant paths, then it’s 
actually worse, because the developer is increasingly isolated away from where 
things are stored on disk and it’s harder to reason about how to fix such an 
issue. I’ve tried building both a release and a debug version of the framework 
separately to make sure it really exists on disk, but the error persists. The 
path above doesn’t match the one shown in the “embedded frameworks” part of the 
app’s build settings (the gzweppsofrkdiyasaleyeleblyor part is very different), 
which is presumably the problem, but I can’t seem to do anything about it - 
I’ve tried to delete and then re-add the framework to the app, but this 
incorrect path never changes and I can’t see where it’s set or any way to edit 
it directly.

—Graham



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to