| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
码头工人
9年前发布

让你只构建和运行所选择代码行的Xcode插件:VWInstantRun

一个Xcode插件让你只构建和运行所选择的代码行,而不需要运行整个项目。你可以在在Xcode的控制台瞬间看到输出。

Installation

Installation: You can clone or just download the project, then open project with Xcode, build and run project, and finally restart Xcode to active plugin.

Alcatraz

Another way more easier option: This plugin can also be installed using Alcatraz. Just search for VWInstantRun in Alcatraz.

Usage

Generally you just select your code in Xcode, then either use hotkey ⌘⌥⇧ + R or go to Product -> Instant Run to build and run the lines of code selected.

Limitations

The purpose of this plugin is to run your code snippet instantly without building the whole project, so obviously it do have some limitations.

  • The code selected should be isolated completely from other contexts (such as instance property, self, or there function, etc…), otherwise you will only have some compiler errors when you run that code snippet.
  • Usually you need to add some stub values as input and add print() phrase to actually view your output in console view.
  • For now, it only support Foundation module.

This plugin certainly can not and should not replace your unit tests, at all. The suitable case is to test and prove some tiny doubts as I mentioned in blog

官方网站:http://www.open-open.com/lib/view/home/1451397459089</p> </strong>

 本文由用户 码头工人 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1451397459089.html
Objective-C开发 VWInstantRun