Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed compilation errors for MagicalRecord 1.7.1

  • Loading branch information...
commit 62b6885f2ae922dcaa6b80f93c72a37cbc6e428e 1 parent f83dcea
@dflems dflems authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 MagicalRecord/1.7.1/MagicalRecord.podspec
View
8 MagicalRecord/1.7.1/MagicalRecord.podspec
@@ -10,5 +10,11 @@ Pod::Spec.new do |s|
s.source_files = 'Source/**/*.{h,m}'
s.framework = 'CoreData'
s.requires_arc = true
- s.prefix_header_contents = "#define MR_SHORTHAND 1\n#import \"CoreData+MagicalRecord.h\""
+
+ 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 1\n#import "CoreData+MagicalRecord.h"\n#endif})
+ end
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.