Add unit test for XCode project
博客专区 > Jimagic 的博客 > 博客详情
Add unit test for XCode project
Jimagic 发表于4年前
Add unit test for XCode project
  • 发表于 4年前
  • 阅读 240
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 技术升级10大核心产品年终让利>>>   

摘要: My app is a hybrid app which based on cordova and had some issues when add unit tests with xctest framework and my solution

Steps:

  1. select on my App and add a target for unit test, be careful that there are different templates for iOS and OS X applications.

  2. find my sub project of Cordovalib.xcodeproj, remove all architectures configurations and select $(ARCHS_STANDARD) for both project and targets settings.

  3. select on just created test targets -> Build Phases -> add link libraries as below:

    SystemConfiguration.framework, MobileCoreService.framework, CoreLocation.framework, AssetsLibrary.framework

  4. add my test cases and run unit tests

共有 人打赏支持
粉丝 5
博文 11
码字总数 725
×
Jimagic
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: