Permalink
Browse files

[patch] MagicalRecord 2.1 podspec

post_install is deprecated
  • Loading branch information...
1 parent fa6ce72 commit 443d628d062e38b4129cf013e7bab899c6769531 @jazzbox jazzbox committed Mar 16, 2013
Showing with 6 additions and 7 deletions.
  1. +6 −7 MagicalRecord/2.1/MagicalRecord.podspec
@@ -10,11 +10,10 @@ Pod::Spec.new do |s|
s.source_files = 'MagicalRecord/**/*.{h,m}'
s.framework = 'CoreData'
s.requires_arc = true
-
- def s.post_install(target)
- prefix_header = config.project_pods_root + target.prefix_header_filename
- prefix_header.open('a') do |file|
- file.puts(%{#ifdef __OBJC__\n#define MR_SHORTHAND\n#import "CoreData+MagicalRecord.h"\n#endif})
- end
- end
+ s.prefix_header_contents = <<-EOS
+#ifdef __OBJC__
+#define MR_SHORTHAND
+#import "CoreData+MagicalRecord.h"
+#endif
+EOS
end

0 comments on commit 443d628

Please sign in to comment.