Permalink
Browse files

Fix for these "remove warning" and a "fix for that" commits:

  64808bd and
  be25289.
Seems that both variants uses private api which does break the support
for Cocoapods 0.16.4 (first try be2528…) and 0.16.0 (64808b…).
Sorry for reverting this but a working version must be prefered over
"remove some warnings". I try to remove the same header with removing
them from the source_files. If anything doesn't work anymore please
re-add these headers (only).
  • Loading branch information...
1 parent d0e3062 commit 41bdfe5156d5b242790fee705e041bbf8c61c198 @jerolimov jerolimov committed Mar 27, 2013
Showing with 1 addition and 17 deletions.
  1. +1 −17 ZBarSDK/1.3.1/ZBarSDK.podspec
View
18 ZBarSDK/1.3.1/ZBarSDK.podspec
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
s.resources = 'iphone/res/{zbar-*.png,zbar-help.html}'
- s.source_files = 'include/zbar.h', 'zbar/**/*.h', 'iphone/*.h', 'iphone/include/**/*.h',
+ s.source_files = 'include/zbar.h', 'iphone/*.h', 'iphone/include/**/*.h',
'zbar/{config,decoder,error,image,img_scanner,refcnt,scanner,symbol}.c',
'zbar/decoder/{codabar,code39,code93,code128,databar,ean,i25,qr_finder}.c',
'zbar/qrcode/*.c',
@@ -33,20 +33,4 @@ Pod::Spec.new do |s|
s.prefix_header_file = 'iphone/include/prefix.pch'
s.compiler_flags = '-w'
-
- s.post_install do |installer|
- project = installer.project
- project.objects_by_uuid.each do |key, obj|
- if obj.isa.to_s == "PBXBuildFile"
- file_ref = obj.file_ref
- if file_ref.isa.to_s == "PBXFileReference"
- path = file_ref.pathname
-
- if (path.extname.to_s == ".h" && path.dirname.to_s.include?("ZBarSDK/zbar"))
- project.objects_by_uuid.delete(key)
- end
- end
- end
- end
- end
end

1 comment on commit 41bdfe5

@Zyphrax

@jerolimov

The post_install was already part of the previous podspec, I changed that line to prevent the warning in CocoaPods 0.17, not knowing that this would break CocoaPods 0.16

Sorry about that, and thank you for cleaning up the podspec!
I've tested it on CocoaPods 0.17 and it works well.

Please sign in to comment.