Skip to content

Instantly share code, notes, and snippets.

@olbrichj
Created July 31, 2017 21:33
Show Gist options
  • Save olbrichj/8541951648f5415dcbb0aec2b324260b to your computer and use it in GitHub Desktop.
Save olbrichj/8541951648f5415dcbb0aec2b324260b to your computer and use it in GitHub Desktop.
import UIKit
let appDelegateClass: AnyClass? = NSClassFromString("TEST_TARGET.TestingAppDelegate") ? AppDelegate.self
let args = UnsafeMutableRawPointer(CommandLine.unsafeArgv).bindMemory(to: UnsafeMutablePointer<Int8>.self, capacity: Int(CommandLine.argc))
UIApplicationMain(CommandLine.argc, args, nil, NSStringFromClass(appDelegateClass!))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment