Hi! Developers,
I am learning how to use CocoaPods and trying to understanding what it is adding to the project. After "pod install" the randomly chosen "SwiftyJSON" pod to the test XCode project, a "Pods" project is added.
After opening the auto-generated workspace by CocoaPods, in the XCode navigation panel, there is a "SwiftyJSON.modulemap" file in "Pods->SwiftyJSON->Support Files".
The code in SwiftyJSON.modulemap is like:
framework module SwiftyJSON
umbrella header "SwiftyJSON-umbrella.h"
export *
module * {export * }
I am wondering, what is the programming of the code in this file? Is it Objective-C? or Swift? or some other kind of language? I tried to search the information using the "umbrella" keyword, but couldn't yet find clear reference.
Thank you!
Aren't there extra curly braces ?
framework module SwiftyJSON {
umbrella header "SwiftyJSON.h"
export *
module * { export * }
}
AFAIK, That's C declaration statements.
https://releases.llvm.org/3.3/tools/clang/docs/Modules.html#umbrella-directory-declaration
See also:
This may clarify as well:
https://developer.apple.com/forums/thread/42737
https://clang.llvm.org/docs/Modules.html#link-declaration