doorxp

Blog

post install

platform :ios, '8.0'

target 'Origin' do

    pod 'Masonry'

    pod 'MBProgressHUD'

    pod 'SDWebImage'

    pod 'FMDB'

    pod 'WebViewJavascriptBridge'

    pod 'MJRefresh'

    #SSZipArchive使用1.5版本,其他版本有问题

    pod 'SSZipArchive', '~> 1.5'

    pod 'UMengAnalytics'

    pod 'GCDWebServer/WebUploader'

    pod 'AFNetworking'

    pod 'IQKeyboardManager'

    #    pod 'Stripe'

end


post_install do |installer|

    files = Dir.glob("*.xcodeproj")

    proj_file = files[0]

    app_project = Xcodeproj::Project.open(proj_file);

    

    app_project.build_configurations.each do |config|


        puts "config for #{config.name}"


        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']


        if config.name == 'Debug'

            config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << '$(TARGET_NAME)  APPID=\"$(APPID)\" DEBUG'

        end


        if config.name == 'Release'

            config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << '$(TARGET_NAME)  APPID=\"$(APPID)\" NDEBUG'

        end



         config.build_settings['FRAMEWORK_SEARCH_PATHS'] ||= ['$(inherited)']

         config.build_settings['FRAMEWORK_SEARCH_PATHS'] << '${SRCROOT}/Vendor/Frameworks'


        config.build_settings['HEADER_SEARCH_PATHS'] ||= ['$(inherited)']

        config.build_settings['HEADER_SEARCH_PATHS'] << '$(SRCROOT)/Vendor/Library/FFmpeg/include'


        config.build_settings['LIBRARY_SEARCH_PATHS'] ||= ['$(inherited)']

        config.build_settings['LIBRARY_SEARCH_PATHS'] << '$(PROJECT_DIR)/Obfu'


        config.build_settings['LD_RUNPATH_SEARCH_PATHS'] = '@executable_path/Frameworks'


        config.build_settings['INFOPLIST_FILE'] = '$(SRCROOT)/Duplicate/Info.plist'


        config.build_settings['GCC_PRECOMPILE_PREFIX_HEADER'] = 'YES'

        config.build_settings['GCC_PREFIX_HEADER'] = 'Common/PrefixHeader.pch'

        config.build_settings['ALWAYS_SEARCH_USER_PATHS'] = 'NO'


        config.build_settings['USER_HEADER_SEARCH_PATHS'] = '$(SRCROOT)/Duplicate/$(TARGET_NAME)'

     end


    app_project.save

end


发表评论:

«   2024年11月   »
123
45678910
11121314151617
18192021222324
252627282930
控制面板
您好,欢迎到访网站!
  查看权限
网站分类
搜索
最新留言

    Powered By Z-BlogPHP 1.5.1 Zero

    Copyright doorxp.com Rights Reserved.