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

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -