main.m 871 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // main.m
  3. // TestHost
  4. //
  5. // Created by Thomas Goyne on 8/6/14.
  6. // Copyright (c) 2014 Realm. All rights reserved.
  7. //
  8. #import <TargetConditionals.h>
  9. #if TARGET_OS_WATCH
  10. // watchOS doesn't support testing at this time.
  11. int main(int argc, const char *argv[]) {
  12. }
  13. #elif TARGET_OS_IPHONE || TARGET_OS_TV || TARGET_OS_MACCATALYST
  14. #import <UIKit/UIKit.h>
  15. @interface RLMAppDelegate : UIResponder <UIApplicationDelegate>
  16. @property (strong, nonatomic) UIWindow *window;
  17. @end
  18. @implementation RLMAppDelegate
  19. @end
  20. int main(int argc, char *argv[]) {
  21. @autoreleasepool {
  22. return UIApplicationMain(argc, argv, NSStringFromClass([UIApplication class]), NSStringFromClass([RLMAppDelegate class]));
  23. }
  24. }
  25. #else
  26. #import <Cocoa/Cocoa.h>
  27. int main(int argc, const char *argv[]) {
  28. @autoreleasepool {
  29. return NSApplicationMain(argc, argv);
  30. }
  31. }
  32. #endif