安装库时Cocoapods错误

时间:2014-10-05 11:08:17

标签: ios iphone ruby-on-rails cocoapods

我试图通过cocoapods安装依赖项。我使用命令" pod install"它会引发错误。这是我的Podfile:

platform :ios, "7.0"

source 'https://github.com/CocoaPods/Specs.git'

target "Passport" do
    pod 'AFNetworking', '2.2.1'
    pod 'MagicalRecord', '2.2'
    pod 'MBProgressHUD', '~>0.8'
    pod 'MMDrawerController', '~> 0.5.3'
    pod 'MMDrawerController-Storyboard', :podspec => 'https://raw.github.com/TomSwift/MMDrawerController-Storyboard/1.0.0/MMDrawerController-    Storyboard.podspec'
    pod 'PMCalendar', '~> 0.3.2'
    pod 'TNRadioButtonGroup', '0.2'
    pod 'WYPopoverController', '~> 0.2.2'
    pod 'AZSocketIO'
    pod 'SocketRocket'
    pod 'SDWebImage', '~>3.6'
   pod 'AttributedMarkdown', :git => 'https://github.com/dreamwieber/AttributedMarkdown.git'
end

class Pod::Podfile
    def self.MR_preprocessor_definitions(installer)
    target = installer.project.targets.find{|t| t.to_s == "Pods-Passport-MagicalRecord"}
    target.build_configurations.each do |config|
    s = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS']
    s = [ '$(inherited)' ] if s == nil;
    s.push('MR_ENABLE_ACTIVE_RECORD_LOGGING=0') if config.to_s == "Debug";
    s.push('MR_SHORTHAND');
    config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = s
end
end
end

post_install do |installer|
    Pod::Podfile::MR_preprocessor_definitions(installer)
end


这是错误: enter image description here 请帮我解决

0 个答案:

没有答案