NSSwift Tips No: 10 - Execute Top Level Code in Swift iOS Apps
Channel: Stoyan Stoyanov
Date: 13/05/2019

NSSwiftTips No: 10 

Application Entry Points - https://developer.apple.com/swift/blog/?id=7

Jailbreak Detection Methods - https://iphonedevwiki.net/index.php/Crack_prevention
Reverse Engineering Tools - http://iphonedevwiki.net/index.php/Reverse_Engineering_Tools

In this episode i am sharing with you guys how you can gain access to the "main" function of our iOS apps written in Swift. If you come from Objective-C you would be familiar with the fail main.m which contained a main function calling UIApplicationMain() to initialize the app and start the event loop. 

Why would you need this access top level code access ?
What can you do with it ?

You can initialize a low level frameworks that you are using in your apps, or implement some logic that will prevent the app from launching due to found jailbreak on the device lets say.