I created a sample project, and removed the line `@UIApplicationMain` in AppDelegate.swift,and then added main.swift . The app runs fine without any problems.If This didn‘t work for you, there may be something wrong in your main.swift. Please show your main.swift.And please describe didn't work more precisely.- It does not compile?- Causes some runtime error?- Or runs without error, but shows an unexpected odd behavior?
Topic:
Programming Languages
SubTopic:
Swift
Tags: