Skip to content

Commit 6e18fe3

Browse files
kevinconKirill Makankov
authored andcommitted
Updated podspec to build framework on pod install.
Note that you'll need to change the Tesseract import in your app's project from the usual `#import <TesseractOCR/TesseractOCR.h>` to `#import <TesseractOCRiOS/TesseractOCR.h>`. This is because now the Pod is using the Pod name as the root directory name for headers.
1 parent d761e6d commit 6e18fe3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

TesseractOCRiOS.podspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ Pod::Spec.new do |s|
1313
s.authors = { 'Daniele Galiotto' => '[email protected]',
1414
'Kevin Conley' => '[email protected]'}
1515

16-
s.source = { :git => 'https://github.com/gali8/Tesseract-OCR-iOS.git', :tag => s.version.to_s }
16+
#s.source = { :git => 'https://github.com/gali8/Tesseract-OCR-iOS.git', :tag => s.version.to_s }
1717

18-
s.platform = :ios, "7.0"
19-
s.source_files = 'TesseractOCR/*.h', 'TesseractOCR/include/**/*.h'
18+
s.platform = :ios, "8.1"
19+
s.source_files = 'TesseractOCR/*.{h,m,mm}', 'TesseractOCR/include/**/*.h'
20+
s.private_header_files = 'TesseractOCR/include/**/*.h'
2021
s.requires_arc = true
2122
s.frameworks = 'UIKit', 'Foundation'
2223

23-
s.ios.deployment_target = "7.0"
24+
s.ios.deployment_target = "8.0"
2425
s.ios.vendored_library = 'TesseractOCR/lib/*.a'
25-
s.ios.vendored_frameworks = 'Products/TesseractOCR.framework'
2626
s.xcconfig = { 'OTHER_LDFLAGS' => '-lstdc++ -weak_library /usr/lib/libstdc++.6.0.9.dylib',
2727
'CLANG_CXX_LIBRARY' => 'compiler-default' }
2828

0 commit comments

Comments
 (0)