Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quickly testing iOS and objective-c code

I was wondering if is there any way to quickly check iOS/objective-c snippets or new code inside my xcode project without having to compile the whole app for that, open up the simulator just to get the NSLog message traced on the console.

I remember when life was easier using ruby's irb or node command for node.js :)

It just gives me the impression that on iOS development you have to learn how to deal with this high complexity and dependencies all the time, but I am just starting on this new world. so any help would be appreciated.

thanks a lot

like image 558
zanona Avatar asked Feb 24 '11 17:02

zanona


People also ask

Is Objective-C only for iOS?

Objective-C overviewThe Objective-C programming language is an object-oriented language used to develop various apps and software, including iOS and OS X. It's a superset of the C programming language, meaning it can do everything C can.

What is the difference between XCTest and XCUITest?

XCTest / XCUITest is pure iOS and cannot help the team that needs to test both iOS and Android devices. XCUITest was built for the iOS and Xcode Developer in mind and focuses less on the QA Automation Engineer.


1 Answers

This timely blog post should help; I'm using it often already.

Update: there is also Code Runner available in Mac App Store - this supports many languages, including Objective-C.

like image 68
petert Avatar answered Oct 21 '22 18:10

petert