Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[patch] MagicalRecord 2.1 podspec

post_install is deprecated
  • Loading branch information...
commit 443d628d062e38b4129cf013e7bab899c6769531 1 parent fa6ce72
@jazzbox jazzbox authored
Showing with 6 additions and 7 deletions.
  1. +6 −7 MagicalRecord/2.1/MagicalRecord.podspec
View
13 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
Please sign in to comment.
Something went wrong with that request. Please try again.