Why is Frameworks/MyFramework.framework/ in my xcode project empty?
I'm new to xcode and cocoa.
According to the Framework Programming Guide, there is a certain directory structure that I should follow when making a framework. I recently started a framework project using xcode, and was surprised to find that this directory structure was not provided for me automatically.
From the Programming Guide: (so that you don't have to clidk on that link if you don't want to)
Listing 1 A simple framework bundle
MyFramework.framework/
MyFramework -> Versions/Current/MyFramework
Resources -> Versions/Current/Resources
Versions/
A/
MyFramework
Resources/
English.lproj/
InfoPlist.strings
Info.plist
Current -> A
Do I need to make this directory structure by hand? I've built the framework product and included it in another project, following the steps in this question. While the project does build, Frameworks/MyFramework.framework/
is empty.
My own explorations have lead me to realize that the file system described above is created in the Prod开发者_JAVA技巧uct (see comment below). This changes the question: Why is Frameworks/MyFramework.framework/
empty, despite that all the of public headers exist in the framework Product?
Thanks!
The problem was that I hadn't set the role of the headers to public. Once I did that, then I was able to see all the files in the framework.
精彩评论