This repository has been archived by the owner on Mar 5, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a guide for making Podspecs for closed source Obj-C projects (Fra…
…meworks, Libraries, Bundles)
- Loading branch information
1 parent
b3d8c7a
commit abfb85b
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Making a Podspec for a closed source projects | ||
|
||
If your company releases a closed source library for iOS or OS X, you can still create a Podspec for them using the standard Podspec DSL. | ||
|
||
### Bundles | ||
|
||
Bundles are handled like any other resource: | ||
|
||
s.resource = 'BundleName.bundle' | ||
|
||
### Frameworks | ||
|
||
s.frameworks = 'FrameworkName' | ||
s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/FrameworkName"' } | ||
s.preserve_paths = 'FrameworkName.framework' | ||
s.source_files = 'FrameworkName.framework/Headers/*.{h}' | ||
|
||
### Libraries | ||
|
||
s.library = 'LibraryName' | ||
s.xcconfig = { 'LIBRARY_SEARCH_PATHS' => '$(PODS_ROOT)/LibraryName' } | ||
s.preserve_paths = 'LibraryName.a' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.