Skip to content

Commit abfb85b

Browse files
committed
Add a guide for making Podspecs for closed source Obj-C projects (Frameworks, Libraries, Bundles)
1 parent b3d8c7a commit abfb85b

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Making a Podspec for a closed source projects
2+
3+
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.
4+
5+
### Bundles
6+
7+
Bundles are handled like any other resource:
8+
9+
s.resource = 'BundleName.bundle'
10+
11+
### Frameworks
12+
13+
s.frameworks = 'FrameworkName'
14+
s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/FrameworkName"' }
15+
s.preserve_paths = 'FrameworkName.framework'
16+
s.source_files = 'FrameworkName.framework/Headers/*.{h}'
17+
18+
### Libraries
19+
20+
s.library = 'LibraryName'
21+
s.xcconfig = { 'LIBRARY_SEARCH_PATHS' => '$(PODS_ROOT)/LibraryName' }
22+
s.preserve_paths = 'LibraryName.a'

source/guides/index.html.slim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ title: Guides
2222
== link_to 'Integrating a project', "integrating_a_project.html"
2323
p
2424
== link_to 'Dependency versioning', "dependency_versioning.html"
25+
p
26+
== link_to 'Podspecs for Closed Source Libraries', "closed_source_pods.html"
2527

2628
h3 Intermediate
2729
p

source/typeahead.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)