• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: No such file <MyFramework/MyFramework.h>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >No such file <MyFramework/MyFramework.h> (From: Ken Tozier <email@hidden>)
 >Re: No such file <MyFramework/MyFramework.h> (From: Chris Espinosa <email@hidden>)
 >Re: No such file <MyFramework/MyFramework.h> (From: Ken Tozier <email@hidden>)
 >Re: No such file <MyFramework/MyFramework.h> (From: Jean-Daniel Dupas <email@hidden>)
 >Re: No such file <MyFramework/MyFramework.h> (From: Ken Tozier <email@hidden>)
 >Re: No such file <MyFramework/MyFramework.h> (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Xcode 3.1.2 refuses to add localizations
  • Next by Date: Re: Yellow break points in XCode
  • Previous by thread: Re: No such file <MyFramework/MyFramework.h>
  • Next by thread: Re: No such file <MyFramework/MyFramework.h>
  • Index(es):
    • Date
    • Thread