Skip to content

Commit 803693b

Browse files
committed
Update workaround instructions for CocoaPods 1.9
1 parent 34dfe9b commit 803693b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,11 @@ $dynamic_frameworks = ['RxCocoa', 'RxSwift', 'WhatEverSDKName']
127127
pre_install do |installer|
128128
installer.pod_targets.each do |pod|
129129
if !$dynamic_frameworks.include?(pod.name)
130-
puts "Overriding the static_framework? method for #{pod.name}"
130+
puts "Link #{pod.name} as static_library"
131131
def pod.build_type;
132-
Pod::Target::BuildType.static_library
132+
# Uncomment one line depending on your CocoaPods version
133+
# Pod::BuildType.static_library # >= 1.9
134+
# Pod::Target::BuildType.static_library # < 1.9
133135
end
134136
end
135137
end

example/ios/Podfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ platform :ios, '9.0'
1010
# pre_install do |installer|
1111
# installer.pod_targets.each do |pod|
1212
# if !$dynamic_frameworks.include?(pod.name)
13-
# puts "Overriding the static_framework? method for #{pod.name}"
13+
# puts "Link #{pod.name} as static_library"
1414
# def pod.build_type;
15-
# Pod::Target::BuildType.static_library
15+
# # Uncomment one line depending on your CocoaPods version
16+
# # Pod::BuildType.static_library # >= 1.9
17+
# # Pod::Target::BuildType.static_library # < 1.9
1618
# end
1719
# end
1820
# end

0 commit comments

Comments
 (0)