/* See LICENSE folder for this sample’s licensing information. Abstract: Application entry point for all platforms */ #if defined(TARGET_IOS) || defined(TARGET_TVOS) #import #import #import #import "AAPLAppDelegate.h" #else #import #endif #if defined(TARGET_IOS) || defined(TARGET_TVOS) int main(int argc, char * argv[]) { #if TARGET_OS_SIMULATOR && (!defined(__IPHONE_13_0) || !defined(__TVOS_13_0)) #error No simulator support for Metal API for this SDK version. Must build for a device #endif @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AAPLAppDelegate class])); } } #elif defined(TARGET_MACOS) int main(int argc, const char * argv[]) { return NSApplicationMain(argc, argv); } #endif