import UIKit func main() { UIApplicationMain( CommandLine.argc, UnsafeMutableRawPointer(CommandLine.unsafeArgv) .bindMemory( to: UnsafeMutablePointer<Int8>.self, capacity: Int(CommandLine.argc)), nil, NSStringFromClass(AppDelegate.self) ) } @available(iOS 13.0, *) func sceneMain() { UIApplicationMain( CommandLine.argc, UnsafeMutableRawPointer(CommandLine.unsafeArgv) .bindMemory( to: UnsafeMutablePointer<Int8>.self, capacity: Int(CommandLine.argc)), nil, NSStringFromClass(AppDelegate.self) ) }
标签:unsafeArgv,代码,mian,self,等效,argc,NSStringFromClass,CommandLine,UIApplicationMain From: https://www.cnblogs.com/yuxiaoyiyou/p/17635781.html