作家
登录

使用CocoaPods给微信集成SDK打印收发消息

作者: 来源: 2017-07-28 11:47:53 阅读 我要评论

  •   spec.vendored_frameworks = "PrintWXMessage.framework" 
  • end  
  • 这里source直接写的是zip包的地址,琅绫擎就是笔者生成的framework动态库。

    增长私有CocosPods:

    1. pod repo add MonkeyDevSpecs https://github.com/AloneMonkey/MonkeyDevSpecs.git 

    将PrintWXMessage包宣布到私有Pod:

    1. pod repo push MonkeyDevSpecs PrintWXMessage.podspec 

    修改Podfile文件内容如下,然后pod install安装,并且把本来写在MonkeyAppDylib.m的打印微信消息的代码删除。

    1. source 'https://github.com/AloneMonkey/MonkeyDevSpecs.git' 
    2.  
    3. target 'MonkeyAppDylib' do 
    4.      pod 'PrintWXMessage' 
    5. end 
    6.  
    7. ~ MonkeyApp pod install 
    8. Cloning spec repo `alonemonkey` from `https://github.com/AloneMonkey/MonkeyDevSpecs.git` 
    9. Analyzing dependencies 
    10. Downloading dependencies 
    11. Installing PrintWXMessage (1.0.0) 
    12. Generating Pods project 
    13. Integrating client project 
    14.  
    15. [!] Please close any current Xcode sessions and use `MonkeyPod.xcworkspace` for this project from now on
    16. Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.  

    运行即可看到插件已经完美集成成功!!!

    MonkeyDev项目地址请点击浏览原文查看。

    【编辑推荐】

    1. 七成App推广造假,反作弊到底动了谁的蛋糕?
    2. 法度榜样猿若何大年夜产品的角度去晋升应用的体验之Android权限优化篇
    3. Android收集安然性设备
    4. iOS应用UITableView实现的富文本编辑器
    5. 2017 Android GitHub常用开源框架汇总
    【义务编辑:枯木 TEL:(010)68476606】

      推荐阅读

      小企业上ERP必读

    时光的投入为逢迎小企业用户少花钱的心理而造出快速实施的论调,是供给商迫于市场压力而为之,有些不厚道,用户您别迷掉偏向。要知道,控制实施周期要大年夜项目治理的角度来做文>>>详细阅读


    本文标题:使用CocoaPods给微信集成SDK打印收发消息

    地址:http://www.17bianji.com/lsqh/36455.html

    关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)