Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent to the Xcode playground in AppCode

Tags:

appcode

I can not find any references to running xcode playgrounds in AppCode so am assuming that were not possible? Here is what an xcode playground looks like in AppCode: I am not even sure where to find the source code.

enter image description here

Is there any way to run/debug a snippet of swift code in AppCode?

like image 575
WestCoastProjects Avatar asked May 11 '20 20:05

WestCoastProjects


People also ask

What is the difference between playground and Xcode?

An Xcode project allows you to create real apps that you could eventually upload to the App Store (providing you became an Apple Developer). An Xcode Playground allows you to play with code and test it out. It isn't for mainstream developing.

What is the difference between Swift playground and Xcode?

One of the biggest differences between Swift Playgrounds and Xcode Playgrounds is that Swift Playgrounds are much less powerful and are built more as an educational tool. My biggest fear is that as Apple brings Swift Playgrounds to the Mac that they will stop supporting and growing Xcode Playgrounds.

Does AppCode support SwiftUI?

Along the way, you'll get familiar with AppCode features and learn how to enable an interactive SwiftUI preview in AppCode using the InjectionIII application.

What is AppCode used for?

An IDE used for developing iOS/macOS apps. AppCode natively supports Objective-C, Swift, C and C++, as well as JavaScript, XML, HTML, CSS and XPath.


1 Answers

Create a new command line tool project with swift language, you will get a clean project that can run swift code directly.

enter image description here

enter image description here

like image 155
Kxrr Avatar answered Sep 27 '22 18:09

Kxrr