Skip to content

Commit c40da41

Browse files
migs647sanscontext
andauthored
Added static lib support for cocoapods (#968)
* Added static lib support for cocoapods * Update README.md Co-authored-by: LRubin <[email protected]>
1 parent d88d49d commit c40da41

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Analytics.podspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ Pod::Spec.new do |s|
1717

1818
s.ios.deployment_target = '10.0'
1919
s.tvos.deployment_target = '10.0'
20-
s.osx.deployment_target = '10.13'
20+
s.osx.deployment_target = '10.13'
21+
22+
s.static_framework = true
2123

2224
s.source_files = [
2325
'Segment/Classes/**/*.{h,m}',

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Analytics is available through [CocoaPods](http://cocoapods.org) and [Carthage](
6161
```ruby
6262
pod "Analytics", "3.7.0"
6363
```
64+
Note: Segment _strongly_ recommends that you use a dynamic framework to manage your project dependencies. If you prefer static libraries, you can add `use_modular_headers!` or `use_frameworks! :linkage => :static` in your Podfile. However, you must then _manually update_ all of your dependencies on a regular schedule.
6465

6566
### Carthage
6667

0 commit comments

Comments
 (0)