美文网首页
xcode工程添加podfile文件

xcode工程添加podfile文件

作者: 叶叶_0217 | 来源:发表于2018-11-29 21:30 被阅读0次

    1.终端进入项目的工程文件下 。

    2.yetaotekiMac-mini:TestDemo yetao$ 

    pod init

    会在项目下自动建立

    Podfile文件。内容

    # Uncomment the next line to define a global platform for your project

    # platform :ios, '9.0'

    target 'TestDemo' do

      # Uncomment the next line if you're using Swift or would like to use dynamic frameworks

      # use_frameworks!

      # Pods for TestDemo

    end

    3.项目添加配置第三方库:

    yetaotekiMac-mini:TestDemo yetao$

    pod search ‘AFNetworking'

    4.添加依赖

    # Uncomment the next line to define a global platform for your project

    # platform :ios, '9.0'

    target 'TestDemo' do

      # Uncomment the next line if you're using Swift or would like to use dynamic frameworks

      # use_frameworks!

      # Pods for TestDemo

    pod 'SDWebImage', '~> 3.8.1'

    pod 'AFNetworking', '~> 3.1.0'

    pod 'MJExtension'

    pod 'LFLiveKit'

    pod 'YYKit'

    pod 'Masonry'

    end

    5.导入第三方库 

    yetaotekiMac-mini:TestDemo yetao$ 

    pod install

    相关文章

      网友评论

          本文标题:xcode工程添加podfile文件

          本文链接:https://www.haomeiwen.com/subject/xvsqcqtx.html