An Xcode plugin let you build & run your selected lines of code in Xcode without running the whole project, you'll have the output instantly in your Xcode console.
MIT License
Have you ever wanted to test out a small snippet of code in Xcode without executing the whole project ?
Now with VWInstantRun, you won't run into this situation any more. An Xcode plugin let you build & run your selected lines of code in Xcode without running the whole project, you'll have the output instantly in your Xcode console.
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.
Another way more easier option: This plugin can also be installed using Alcatraz.
Just search for VWInstantRun
in Alcatraz.
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.
The purpose of this plugin is to run your code snippet instantly without building the whole project, so obviously it do have some limitations.
print()
phrase to actually view your output in console view.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.
This plugin is still in a very early stage, here is a TODO list to show you a simple roadmap.
Enjoy 🎉🎉