Skip to content

Commit 24f219e

Browse files
committed
Fixed the header search path with CocoaPods. Fixed issue core-plot#204.
1 parent 11647e8 commit 24f219e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎CorePlot-latest.podspec‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Pod::Spec.new do |s|
3131
s.private_header_files = '**/_*.h', '**/CorePlotProbes.h'
3232

3333
s.requires_arc = true
34-
s.xcconfig = { 'ALWAYS_SEARCH_USER_PATHS' => 'YES' }
34+
s.ios.xcconfig = { 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Headers/Public/CorePlot/ios"' }
35+
s.osx.xcconfig = { 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Headers/Public/CorePlot/osx"' }
3536

3637
s.frameworks = 'QuartzCore', 'Accelerate'
3738
s.ios.frameworks = 'UIKit', 'Foundation'

‎CorePlot.podspec‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Pod::Spec.new do |s|
3131
s.private_header_files = '**/_*.h', '**/CorePlotProbes.h'
3232

3333
s.requires_arc = true
34-
s.xcconfig = { 'ALWAYS_SEARCH_USER_PATHS' => 'YES' }
34+
s.ios.xcconfig = { 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Headers/Public/CorePlot/ios"' }
35+
s.osx.xcconfig = { 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Headers/Public/CorePlot/osx"' }
3536

3637
s.frameworks = 'QuartzCore', 'Accelerate'
3738
s.ios.frameworks = 'UIKit', 'Foundation'

0 commit comments

Comments
 (0)