Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift application not launching on Mavericks

Our swift application not launching on mavericks - app icon appears in dock, but no window is visible. No crash happening, and seems like applicationDidFinishLaunching not being called. NSApplication's delegate is connected to AppDelegate in storyboard.

It's easy to repeat that issue, because it doesn't work even with newly created application:

  1. Create fresh swift application in Xcode 6.2
  2. Change deployment target to 10.9
  3. Archive and open app in 10.9 - window is not appearing.
like image 892
gvalmon Avatar asked Dec 01 '25 16:12

gvalmon


1 Answers

The problem is that your project is using storyboards. Mac storyboards were introduced in OS X 10.10. Storyboards are not supported in 10.9. Use xib files if you want to support 10.9.

like image 139
Swift Dev Journal Avatar answered Dec 03 '25 11:12

Swift Dev Journal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!