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 Product (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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.