V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
WildCat
V2EX  ›  iDev

使用cocoapods的项目如何使用单元测试?

  •  
  •   WildCat · 2014-01-31 15:31:16 +08:00 · 3864 次点击
    这是一个创建于 3743 天前的主题,其中的信息可能已经有所发展或是发生改变。
    http://rexstjohn.com/tutorial-make-universal-iphone-ipad-stack-overflow-client-ios/

    参考了这篇文章,但是 '''link_with ['CocoaPods', 'CocoaPodsTests']''' 直接一堆报错了

    我看cocoapods官方文档是:
    '''link_with 'CocoaPods', 'CocoaPodsTests' '''

    但是都不正确,无法引用cocoapods里的AFNetworking
    5 条回复    1970-01-01 08:00:00 +08:00
    stoprain
        1
    stoprain  
       2014-01-31 21:38:17 +08:00
    语法是以下这样没错
    link_with 'CocoaPods', 'CocoaPodsTests'
    再检查一下是不是别的错误造成的。
    iYu
        2
    iYu  
       2014-02-01 02:23:16 +08:00 via iPhone
    过年 抓机 只能告诉你 我弄过 OK的
    WildCat
        3
    WildCat  
    OP
       2014-02-01 09:32:08 +08:00 via iPhone
    @stoprain
    @iYu
    过年好。
    除了link_with,pod install之外还要做什么设置吗?
    stoprain
        4
    stoprain  
       2014-02-01 09:57:41 +08:00   ❤️ 1
    @WildCat 有的依赖需要设置平台,比如
    platform :ios, '7.0'
    如果还有错误可以参考这里看看
    http://guides.cocoapods.org/using/troubleshooting.html
    WildCat
        5
    WildCat  
    OP
       2014-02-01 17:25:33 +08:00
    @stoprain 感谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2261 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 03:07 · PVG 11:07 · LAX 20:07 · JFK 23:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.