Skip to content

Commit

Permalink
[Fix] RectiveCocoa.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Nov 29, 2012
1 parent 43fe8b3 commit 1adf90a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ReactiveCocoa/0.9.0/ReactiveCocoa.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ Pod::Spec.new do |s|
"5. A lovely API on top of KVO."

s.requires_arc = true
s.ios.deployment_target = '5.0'

s.subspec 'Core' do |sp|
files = FileList['ReactiveCocoaFramework/ReactiveCocoa/*.{h,m}']
sp.ios.source_files = files.dup.exclude(/NSButton/, /AppKit/, /Command/)
sp.ios.source_files = files.dup.exclude(/NSButton/, /AppKit/)
sp.osx.source_files = files.dup.exclude(/UIControl/, /UIText/, /Event/, /DelegateProxy/)
sp.header_dir = 'ReactiveCocoa'

Expand All @@ -33,4 +34,12 @@ Pod::Spec.new do |s|
sp.osx.source_files = files
sp.dependency 'ReactiveCocoa/Core'
end

def s.pre_install (pod, _)
header = pod.root + 'ReactiveCocoaFramework/ReactiveCocoa/ReactiveCocoa.h'
contents = header.read
contents = contents.gsub('ReactiveCocoa/libextobjc/extobjc/EXTKeyPathCoding.h', 'EXTKeyPathCoding.h')
contents = contents.gsub('ReactiveCocoa/EXTKeyPathCoding.h', 'EXTKeyPathCoding.h')
File.open(header, 'w') { |file| file.puts(contents) }
end
end

0 comments on commit 1adf90a

Please sign in to comment.