Re: No such file <MyFramework/MyFramework.h>
Re: No such file <MyFramework/MyFramework.h>
- Subject: Re: No such file <MyFramework/MyFramework.h>
- From: Ken Tozier <email@hidden>
- Date: Tue, 2 Dec 2008 18:08:29 -0500
On Dec 2, 2008, at 5:01 PM, Chris Espinosa wrote:
Given the compiler invocation, the only thing I can come up with is
that there may be a copy of the framework in your build folder that
doesn't have the public header.
The way to test this is to set Other C Flags in your target build
settings to -v and rebuild. The Build Transcript (click the third
button from the left in the horizontal scrollbar of the Build
Results window) will show you the implicit and explicit search paths
for all frameworks, e.g.:
#include "..." search starts here:
#include <...> search starts here:
/Volumes/Local/Products/iChatTheater.build/Debug/iChatTheater.build/
iChatTheater.hmap (headermap)
/Volumes/Local/Intermediates/Debug (framework directory)
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/
Quartz.framework/Versions/A/Frameworks (framework directory)
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-
darwin10/4.2.1/include
/Developer/SDKs/MacOSX10.5.sdk/usr/include
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks (framework
directory)
/Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks (framework
directory)
End of search list.
If the compiler finds MySQLConnection.framework in any of the second
list of directories, it will then look for Headers/MySQLConnection.h
in that framework, and if it doesn't find it, it will fail at that
point.
Chris
Thanks for taking a crack at this Chris
When I include all the source files for the framework in the
application, it works perfectly. When I package it up into a
framework, no go. There is probably some issue with the
"libmysqlclient.a" library I'm trying to embed in the framework. When
I include it in the application explicitly, it compiles fine, but when
I link to it in the framework and create a copy files build phase, it
does appear in the built framework, but I wouldn't be at all surprised
if it wasn't linking correctly to the embedded lib. I've lived at the
"frameworks programming" page for the last two days, but frameworks
seem to be more trouble than they are worth. I have to admit defeat.
Ken
_______________________________________________
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