仿网易云信结构   Xcode主工程建立多个子工程结合联编开发SDK

仿网易云信结构   Xcode主工程建立多个子工程结合联编开发SDK

1.新建Project  ZIKIMDemo.  Single View App .   

2.ZIKIMDemo文件下新建 ZIKIMDemo.workspace 

3.SDK新建文件下 新建Project ZIKIMKit   . Static libary.

4.关闭这两个新建的project.

5.打开workspace,添加 ZIKIMKit Project. 添加ZIKIMDemo Project.

platform :ios, ‘9.0’

# 忽略引入库的所有警告(强迫症者的福音啊)

inhibit_all_warnings!

workspace ‘KIMDemo.xcworkspace’

abstract_target ‘KIMDemo’ do

    pod ‘SDWebImage’

    pod ‘Toast’

    pod ‘M80AttributedLabel’

    pod ‘TZImagePickerController’

    pod ‘Socket.IO-Client-Swift’, ‘~> 11.1.3’

    pod ‘YYKit’

    pod ‘MJRefresh’

    pod ‘AFNetworking’

    pod ‘Masonry’

    pod ‘SDCycleScrollView’

    pod ‘MBProgressHUD’

    #高德地图相关SDK(无IDFA版)

    pod ‘AMapLocation-NO-IDFA’

    pod ‘AMapSearch-NO-IDFA’

    pod ‘AMap2DMap-NO-IDFA’

    

    #友盟分享

    #友盟分享 中的UMSocialPlatformConfig.h 有改动,pod 更新友盟分享时 记得改

    # U-Share SDK UI模块(分享面板,建议添加)

    pod ‘UMengUShare/UI’

    # 集成微信(精简版0.2M)

    pod ‘UMengUShare/Social/ReducedWeChat’

    # 集成QQ/QZone/TIM(精简版0.5M)

    pod ‘UMengUShare/Social/ReducedQQ’

    # 集成新浪微博(精简版1M)

    pod ‘UMengUShare/Social/ReducedSina’

    target ‘KIMDemo’ do

        project ‘KIMDemo.xcodeproj’

        pod ‘FMDB’

        pod ‘Reachability’

        pod ‘CocoaLumberjack’

        pod ‘SSZipArchive’

        pod ‘SVProgressHUD’

        pod ‘Fabric’

        pod ‘Crashlytics’

    end

    

    target ‘KIMKit’ do

        project ‘../KIMKit/KIMKit.xcodeproj’

    end

end

Downloading dependencies

Installing AFNetworking (3.2.0)

Installing AMap2DMap-NO-IDFA (5.6.0)

Installing AMapFoundation-NO-IDFA (1.4.3)

Installing AMapLocation-NO-IDFA (2.6.0)

Installing AMapSearch-NO-IDFA (6.1.0)

Installing CocoaLumberjack (3.4.2)

Installing Crashlytics (3.10.1)

Installing FMDB (2.7.2)

Installing Fabric (1.7.6)

Installing M80AttributedLabel (1.6.3)

Installing MBProgressHUD (1.1.0)

Installing MJRefresh (3.1.15.3)

Installing Masonry (1.1.0)

Installing Reachability (3.2)

Installing SDCycleScrollView (1.75)

Installing SDWebImage (4.3.3)

Installing SSZipArchive (2.1.2)

Installing SVProgressHUD (2.2.5)

Installing Socket.IO-Client-Swift (11.1.3)

Installing StarscreamSocketIO (8.0.7)

Installing TZImagePickerController (2.1.0.2)

Installing Toast (4.0.0)

Installing UMengUShare (6.4.8.2)

Installing YYKit (1.0.9)

Generating Pods project

发布者

guhuangwudi@gmail.com

孤皇吾帝