I created my own CocoaPods Pod for use inside my applications. This Pod should also use Core Data. I added the xy.xcdatamodeld file to my source files, but was not compiled to the xy.momd folder.
Do I need to set any other properties in my Pod in order to get Core Data working?
My current page file:
Pod::Spec.new do |s| s.name = "Test" s.version = "1.0" s.summary = "..." s.homepage = "..." s.license = 'MIT (example)' s.author = { "Felix Krause" => " xy@xy.com " } s.source = { :git => "http://EXAMPLE/Example.podspec.git", :tag => "0.0.1" } s.platform = :ios, '6.0' s.source_files = 'TS/Classes/**/*.{h,m}', 'TS/Views/**/*.{h,m}', 'TS/TSResources/**/*.{json,xcdatamodeld}' s.resources = "TS/TSResources/**/*" s.frameworks = 'CoreData', 'QuartzCore', 'Accounts', 'MessageUI', 'CoreLocation', 'CoreGraphics', 'MobileCoreServices', 'SystemConfiguration' s.requires_arc = true s.ios.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/../../TS/**' } s.ios.xcconfig ={ 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/../.." "$(PODS_ROOT)/.." "$(SRCROOT)/.."' } s.xcconfig = { 'OTHER_LDFLAGS' => '-all_load' } s.dependency 'JSONKit' end
source share