Skip to content

QIMSDK iOS 接入文档

Lidalu edited this page Nov 4, 2019 · 2 revisions

Cocoapods集成

QIMSDK最低支持iOS9系统

我们建议你通过 Cocoapods 来进行 QIMSDK 的集成

默认依赖React-Native的CocoaPods集成

  1. 在Podfile中加入以下内容:

     source 'https://github.com/qunarcorp/libqimkit-ios-cook.git'
    
     source '[email protected]:CocoaPods/Specs.git'
     
     target 'YourApp' do
     
       pod 'QIMUIKit', '~> 4.0'
    
     end
    
     post_install do |installer_representation|
    
     installer_representation.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
          config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
      end
    

    end end

  2. 在项目根目录执行 pod install

不依赖React-Native的CocoaPods集成

  1. 在Podfile中加入以下内容:

     source 'https://github.com/qunarcorp/libqimkit-ios-cook.git'
     source '[email protected]:CocoaPods/Specs.git'
     
     target 'YourApp' do
     
        pod 'QIMUIKit/QIMUIKit-NORN', '~> 4.0'
    

    end

      post_install do |installer_representation|
    
     installer_representation.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
          config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
      end
    

    end end

  2. 在项目根目录执行 pod install