Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
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
Advertisement
V2EX
›
iDev
cocoapods 闭源库如何添加单元测试?
Ocsap
·
Oct 30, 2019
· 7500 views
This topic created in 2373 days ago, the information mentioned may be changed or developed.
pod lib create 创建一个带有测试和 example 的库
然后修改.podspec 文件,将 private 文件夹内代码设置为不暴露
然后单元测试的文件也没法访问 private 中的文件了
1.如果暴露出来,跟仓库设计违背
2.如果不暴露出来,单元测试没法写
所以想问下正确的做法应该是怎么做?求教大佬们。
private
文件
单元
测试
1 replies
•
2019-11-18 15:57:28 +08:00
1
gunavy
Nov 18, 2019
一个 subspec ?
https://guides.cocoapods.org/syntax/podspec.html#test_spec
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1035 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 22:33
·
PVG 06:33
·
LAX 15:33
·
JFK 18:33
♥ Do have faith in what you're doing.
❯