Skip to content
This repository
Browse code

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

…meworks, Libraries, Bundles)
  • Loading branch information...
commit abfb85bcc46f56b9fb17bd9fea19436c49d5f6d2 1 parent b3d8c7a
Maximilian Tagher authored April 27, 2013
22  source/guides/closed_source_pods.html.md
Source Rendered
... ...
@@ -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'
2  source/guides/index.html.slim
@@ -22,6 +22,8 @@ title: Guides
22 22
             == link_to 'Integrating a project', "integrating_a_project.html"
23 23
           p
24 24
             == link_to 'Dependency versioning', "dependency_versioning.html"
  25
+          p
  26
+           == link_to 'Podspecs for Closed Source Libraries', "closed_source_pods.html"
25 27
 
26 28
           h3 Intermediate
27 29
           p
2  source/typeahead.json
1 addition, 1 deletion not shown

0 notes on commit abfb85b

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