How does xcode project for a command line tool designate which swift file is the entry point? -


i've apparently done wrong xcode (v6.3.1) project using swift. when attempt build, startup statements in main.swift flagged compiler error: "statements not allowed @ top level". project contains multiple targets, each building multiple swift files. command-line app target failing build way.

is there setting somewhere in project file designates swift file main entry point, , allows top-level statements?


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -