Skip to content
Browse files

Add a guide for making Podspecs for closed source Obj-C projects (Fra…

…meworks, Libraries, Bundles)
  • Loading branch information...
1 parent b3d8c7a commit abfb85bcc46f56b9fb17bd9fea19436c49d5f6d2 @MaxGabriel MaxGabriel committed
Showing with 25 additions and 1 deletion.
  1. +22 −0 source/guides/closed_source_pods.html.md
  2. +2 −0 source/guides/index.html.slim
  3. +1 −1 source/typeahead.json
22 source/guides/closed_source_pods.html.md
@@ -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'
View
2 source/guides/index.html.slim
@@ -22,6 +22,8 @@ title: Guides
== link_to 'Integrating a project', "integrating_a_project.html"
p
== link_to 'Dependency versioning', "dependency_versioning.html"
+ p
+ == link_to 'Podspecs for Closed Source Libraries', "closed_source_pods.html"
h3 Intermediate
p
View
2 source/typeahead.json
1 addition, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.

0 comments on commit abfb85b

Please sign in to comment.
Something went wrong with that request. Please try again.