├── SDVersion-Demo ├── SDtvOSVersion │ ├── Assets.xcassets │ │ ├── Contents.json │ │ ├── App Icon & Top Shelf Image.brandassets │ │ │ ├── App Icon - Large.imagestack │ │ │ │ ├── Back.imagestacklayer │ │ │ │ │ ├── Contents.json │ │ │ │ │ └── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ ├── Front.imagestacklayer │ │ │ │ │ ├── Contents.json │ │ │ │ │ └── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ ├── Middle.imagestacklayer │ │ │ │ │ ├── Contents.json │ │ │ │ │ └── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── App Icon - Small.imagestack │ │ │ │ ├── Back.imagestacklayer │ │ │ │ │ ├── Contents.json │ │ │ │ │ └── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ ├── Front.imagestacklayer │ │ │ │ │ ├── Contents.json │ │ │ │ │ └── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ ├── Middle.imagestacklayer │ │ │ │ │ ├── Contents.json │ │ │ │ │ └── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── Top Shelf Image.imageset │ │ │ │ └── Contents.json │ │ │ ├── Top Shelf Image Wide.imageset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── ViewController.h │ ├── AppDelegate.h │ ├── main.m │ ├── Info.plist │ ├── ViewController.m │ ├── AppDelegate.m │ └── Base.lproj │ │ └── Main.storyboard ├── SDwatchOSVersion Extension │ ├── Assets.xcassets │ │ └── README__ignoredByTemplate__ │ ├── ExtensionDelegate.m │ ├── ExtensionDelegate.h │ ├── InterfaceController.h │ ├── Info.plist │ └── InterfaceController.m ├── SDiOSVersion │ ├── Images.xcassets │ │ ├── logo.imageset │ │ │ ├── logo.png │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── AppDelegate.h │ ├── main.m │ ├── ViewController.h │ ├── Info.plist │ ├── ViewController.m │ ├── AppDelegate.m │ └── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard ├── SDMacVersion │ ├── Images.xcassets │ │ ├── logo.imageset │ │ │ ├── SDVersion-logo.png │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── main.m │ ├── AppDelegate.h │ ├── ViewController.h │ ├── AppDelegate.m │ ├── Info.plist │ └── ViewController.m ├── SDMacVersionTests │ ├── SDMacVersionTests-Bridging-Header.h │ ├── Info.plist │ ├── MacVersionTests.swift │ └── SDMacVersionTests.m ├── SDiOSVersionTests │ ├── SDiOSVersionTests-Bridging-Header.h │ ├── Info.plist │ ├── iOSVersionTests.swift │ └── SDiOSVersionTests.m ├── SDVersion.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── project.pbxproj ├── SDtvOSVersionTests │ ├── Info.plist │ └── SDtvOSVersionTests.m └── SDwatchOSVersion │ ├── Info.plist │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ └── Base.lproj │ └── Interface.storyboard ├── SDVersion ├── SDVersion.h ├── SDtvOSVersion │ ├── SDtvOSVersion.h │ └── SDtvOSVersion.m ├── SDwatchOSVersion │ ├── SDwatchOSVersion.h │ └── SDwatchOSVersion.m ├── SDMacVersion │ ├── SDMacVersion.h │ └── SDMacVersion.m └── SDiOSVersion │ ├── SDiOSVersion.h │ └── SDiOSVersion.m ├── .gitignore ├── LICENSE ├── SDVersion.podspec └── README.md /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDwatchOSVersion Extension/Assets.xcassets/README__ignoredByTemplate__: -------------------------------------------------------------------------------- 1 | Did you know that git does not support storing empty directories? 2 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersion/Images.xcassets/logo.imageset/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebyddd/SDVersion/HEAD/SDVersion-Demo/SDiOSVersion/Images.xcassets/logo.imageset/logo.png -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersion/Images.xcassets/logo.imageset/SDVersion-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebyddd/SDVersion/HEAD/SDVersion-Demo/SDMacVersion/Images.xcassets/logo.imageset/SDVersion-logo.png -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersionTests/SDMacVersionTests-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | #import "SDMacVersion.h" 6 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersionTests/SDiOSVersionTests-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | #import "SDiOSVersion.h" 6 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDVersion.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersion/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SDMacVersion 4 | // 5 | // Created by Tom Baranes on 17/08/15. 6 | // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, const char * argv[]) { 12 | return NSApplicationMain(argc, argv); 13 | } 14 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // SDtvOSVersion 4 | // 5 | // Created by Jeff Kelley on 7/20/16. 6 | // Copyright © 2016 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersion/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // SDMacVersion 4 | // 5 | // Created by Tom Baranes on 17/08/15. 6 | // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : NSObject 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDwatchOSVersion Extension/ExtensionDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // ExtensionDelegate.m 3 | // SDwatchOSVersion Extension 4 | // 5 | // Created by Jeff Kelley on 6/29/16. 6 | // Copyright © 2016 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import "ExtensionDelegate.h" 10 | 11 | @implementation ExtensionDelegate 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersion/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // SDiOSVersion 4 | // 5 | // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDwatchOSVersion Extension/ExtensionDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ExtensionDelegate.h 3 | // SDwatchOSVersion Extension 4 | // 5 | // Created by Jeff Kelley on 6/29/16. 6 | // Copyright © 2016 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ExtensionDelegate : NSObject 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "landscape", 5 | "idiom" : "tv", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "9.0", 8 | "scale" : "1x" 9 | } 10 | ], 11 | "info" : { 12 | "version" : 1, 13 | "author" : "xcode" 14 | } 15 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // SDtvOSVersion 4 | // 5 | // Created by Jeff Kelley on 7/20/16. 6 | // Copyright © 2016 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersion/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SDiOSVersion 4 | // 5 | // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import 9 | #import "AppDelegate.h" 10 | 11 | int main(int argc, char * argv[]) { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersion/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // SDiOSVersion 4 | // 5 | // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface ViewController : UIViewController 11 | 12 | @property (strong, nonatomic) IBOutlet UILabel *iphoneVersionLabel; 13 | @property (strong, nonatomic) IBOutlet UILabel *iphoneSizeLabel; 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "layers" : [ 3 | { 4 | "filename" : "Front.imagestacklayer" 5 | }, 6 | { 7 | "filename" : "Middle.imagestacklayer" 8 | }, 9 | { 10 | "filename" : "Back.imagestacklayer" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "layers" : [ 3 | { 4 | "filename" : "Front.imagestacklayer" 5 | }, 6 | { 7 | "filename" : "Middle.imagestacklayer" 8 | }, 9 | { 10 | "filename" : "Back.imagestacklayer" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SDtvOSVersion 4 | // 5 | // Created by Jeff Kelley on 7/20/16. 6 | // Copyright © 2016 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersion/Images.xcassets/logo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "iphone", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "idiom" : "iphone", 13 | "scale" : "3x", 14 | "filename" : "logo.png" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersion/Images.xcassets/logo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "SDVersion-logo.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersion/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // SDMacVersion 4 | // 5 | // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface ViewController : NSViewController 11 | 12 | @property (weak) IBOutlet NSTextField *textFieldModel; 13 | @property (weak) IBOutlet NSTextField *textFieldMacScreenInch; 14 | @property (weak) IBOutlet NSTextField *textFieldMacScreenResolution; 15 | @property (weak) IBOutlet NSTextField *textFieldMacScreenPixelSize; 16 | 17 | @end 18 | 19 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDwatchOSVersion Extension/InterfaceController.h: -------------------------------------------------------------------------------- 1 | // 2 | // InterfaceController.h 3 | // SDwatchOSVersion Extension 4 | // 5 | // Created by Jeff Kelley on 6/29/16. 6 | // Copyright © 2016 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface InterfaceController : WKInterfaceController 13 | 14 | @property (strong, nonatomic) IBOutlet WKInterfaceLabel *watchVersionLabel; 15 | @property (strong, nonatomic) IBOutlet WKInterfaceLabel *watchSizeLabel; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /SDVersion/SDVersion.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDVersion.h 3 | // SDVersion 4 | // 5 | // Copyright (c) 2016 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #ifndef SDVersion_h 9 | #define SDVersion_h 10 | 11 | #if TARGET_OS_IOS 12 | #import "SDiOSVersion.h" 13 | #define SDVersion SDiOSVersion 14 | #elif TARGET_OS_WATCH 15 | #import "SDwatchOSVersion.h" 16 | #define SDVersion SDwatchOSVersion 17 | #elif TARGET_OS_TV 18 | #import "SDtvOSVersion.h" 19 | #define SDVersion SDtvOSVersion 20 | #elif TARGET_OS_MAC 21 | #import "SDMacVersion.h" 22 | #define SDVersion SDMacVersion 23 | #endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersion/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // SDMacVersion 4 | // 5 | // Created by Tom Baranes on 17/08/15. 6 | // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { 18 | // Insert code here to initialize your application 19 | } 20 | 21 | - (void)applicationWillTerminate:(NSNotification *)aNotification { 22 | // Insert code here to tear down your application 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | .DS_Store 20 | 21 | # CocoaPods 22 | # 23 | # We recommend against adding the Pods directory to your .gitignore. However 24 | # you should judge for yourself, the pros and cons are mentioned at: 25 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control? 26 | # 27 | # Pods/ 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersion/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /SDVersion/SDtvOSVersion/SDtvOSVersion.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDtvOSVersion.h 3 | // SDVersion 4 | // 5 | // Copyright (c) 2016 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | typedef NS_ENUM(NSInteger, DeviceVersion) { 11 | AppleTV4 = 1, 12 | AppleTV4K = 2, 13 | Simulator = 0 14 | }; 15 | 16 | @interface SDtvOSVersion : NSObject 17 | 18 | + (DeviceVersion)deviceVersion; 19 | + (NSString *)deviceVersionName:(DeviceVersion)deviceVersion; 20 | + (NSString *)deviceName; 21 | 22 | + (BOOL)versionEqualTo:(NSString *)version; 23 | + (BOOL)versionGreaterThan:(NSString *)version; 24 | + (BOOL)versionGreaterThanOrEqualTo:(NSString *)version; 25 | + (BOOL)versionLessThan:(NSString *)version; 26 | + (BOOL)versionLessThanOrEqualTo:(NSString *)version; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersionTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersionTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersionTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "assets" : [ 3 | { 4 | "size" : "1280x768", 5 | "idiom" : "tv", 6 | "filename" : "App Icon - Large.imagestack", 7 | "role" : "primary-app-icon" 8 | }, 9 | { 10 | "size" : "400x240", 11 | "idiom" : "tv", 12 | "filename" : "App Icon - Small.imagestack", 13 | "role" : "primary-app-icon" 14 | }, 15 | { 16 | "size" : "2320x720", 17 | "idiom" : "tv", 18 | "filename" : "Top Shelf Image Wide.imageset", 19 | "role" : "top-shelf-image-wide" 20 | }, 21 | { 22 | "size" : "1920x720", 23 | "idiom" : "tv", 24 | "filename" : "Top Shelf Image.imageset", 25 | "role" : "top-shelf-image" 26 | } 27 | ], 28 | "info" : { 29 | "version" : 1, 30 | "author" : "xcode" 31 | } 32 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersionTests/iOSVersionTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // iOSVersionTests.swift 3 | // SDVersion 4 | // 5 | // Created by lijunjie on 04/03/2017. 6 | // Copyright © 2017 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class iOSVersionTests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | // Put setup code here. This method is called before the invocation of each test method in the class. 16 | } 17 | 18 | override func tearDown() { 19 | // Put teardown code here. This method is called after the invocation of each test method in the class. 20 | super.tearDown() 21 | } 22 | 23 | func testExample() { 24 | let deviceSizeName = SDiOSVersion.deviceSizeName(SDiOSVersion.deviceSize()) 25 | XCTAssert((deviceSizeName != nil)) 26 | let deviceVersionName = SDiOSVersion.deviceNameString() 27 | XCTAssert((deviceVersionName != nil)) 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersionTests/MacVersionTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MacVersionTests.swift 3 | // SDVersion 4 | // 5 | // Created by lijunjie on 04/03/2017. 6 | // Copyright © 2017 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class MacVersionTests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | // Put setup code here. This method is called before the invocation of each test method in the class. 16 | } 17 | 18 | override func tearDown() { 19 | // Put teardown code here. This method is called after the invocation of each test method in the class. 20 | super.tearDown() 21 | } 22 | 23 | func testExample() { 24 | let deviceSize = SDMacVersion.deviceSizeName(SDMacVersion.deviceSize()) 25 | XCTAssert(deviceSize != nil); 26 | let deviceScreenResolutionName = SDMacVersion.deviceScreenResolutionName(SDMacVersion.deviceScreenResolution()) 27 | XCTAssert(deviceScreenResolutionName != nil) 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersionTests/SDiOSVersionTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDiOSVersionTests.m 3 | // SDiOSVersionTests 4 | // 5 | // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import 9 | #import 10 | 11 | @interface SDiOSVersionTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation SDiOSVersionTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | XCTAssert(YES, @"Pass"); 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | arm64 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersionTests/SDMacVersionTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDMacVersionTests.m 3 | // SDMacVersionTests 4 | // 5 | // Created by Tom Baranes on 17/08/15. 6 | // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface SDMacVersionTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation SDMacVersionTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersionTests/SDtvOSVersionTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDtvOSVersionTests.m 3 | // SDtvOSVersionTests 4 | // 5 | // Created by Jeff Kelley on 7/20/16. 6 | // Copyright © 2016 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SDtvOSVersionTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation SDtvOSVersionTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Sebastian Dobrincu 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | 24 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersion/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "size" : "16x16", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "size" : "16x16", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "size" : "32x32", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "size" : "32x32", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "size" : "128x128", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "size" : "128x128", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "size" : "256x256", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "size" : "256x256", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "size" : "512x512", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "size" : "512x512", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersion/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSMinimumSystemVersion 26 | $(MACOSX_DEPLOYMENT_TARGET) 27 | NSHumanReadableCopyright 28 | Copyright © 2015 Sebastian Dobrincu. All rights reserved. 29 | NSMainStoryboardFile 30 | Main 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDwatchOSVersion/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | SDiOSVersion 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | UISupportedInterfaceOrientations 26 | 27 | UIInterfaceOrientationPortrait 28 | UIInterfaceOrientationPortraitUpsideDown 29 | 30 | WKCompanionAppBundleIdentifier 31 | com.dobrincusebastian.SDiOSVersion 32 | WKWatchKitApp 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /SDVersion/SDwatchOSVersion/SDwatchOSVersion.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDwatchOSVersion.h 3 | // SDVersion 4 | // 5 | // Copyright © 2016 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | typedef NS_ENUM(NSInteger, DeviceVersion) { 11 | AppleWatch38mm = 1, 12 | AppleWatch42mm = 2, 13 | AppleWatch38mmSeries1 = 3, 14 | AppleWatch42mmSeries1 = 4, 15 | AppleWatch38mmSeries2 = 5, 16 | AppleWatch42mmSeries2 = 6, 17 | AppleWatch38mmSeries3 = 7, 18 | AppleWatch42mmSeries3 = 8, 19 | 20 | Simulator = 0 21 | }; 22 | 23 | typedef NS_ENUM(NSInteger, DeviceSize) { 24 | UnknownSize = 0, 25 | Screen38mm = 1, 26 | Screen42mm = 2 27 | }; 28 | 29 | @interface SDwatchOSVersion : NSObject 30 | 31 | + (DeviceVersion)deviceVersion; 32 | + (NSString *)deviceVersionName:(DeviceVersion)deviceVersion; 33 | + (DeviceSize)deviceSize; 34 | + (NSString *)deviceSizeName:(DeviceSize)deviceSize; 35 | + (NSString *)deviceName; 36 | 37 | + (BOOL)versionEqualTo:(NSString *)version; 38 | + (BOOL)versionGreaterThan:(NSString *)version; 39 | + (BOOL)versionGreaterThanOrEqualTo:(NSString *)version; 40 | + (BOOL)versionLessThan:(NSString *)version; 41 | + (BOOL)versionLessThanOrEqualTo:(NSString *)version; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // SDtvOSVersion 4 | // 5 | // Created by Jeff Kelley on 7/20/16. 6 | // Copyright © 2016 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | #import "SDVersion.h" 12 | 13 | @interface ViewController () 14 | 15 | @property (weak, nonatomic) IBOutlet UILabel *tvVersionLabel; 16 | 17 | @end 18 | 19 | @implementation ViewController 20 | 21 | - (void)viewDidLoad { 22 | [super viewDidLoad]; 23 | 24 | // Get device name as NSString 25 | self.tvVersionLabel.text = [self.tvVersionLabel.text stringByAppendingString:[SDtvOSVersion deviceVersionName:[SDtvOSVersion deviceVersion]]]; 26 | 27 | // Check for device model 28 | if ([SDtvOSVersion deviceVersion] == AppleTV4) 29 | NSLog(@"You got the fourth-generation Apple TV. Nice!"); 30 | 31 | //Check for tvOS Version 32 | if ([SDtvOSVersion versionGreaterThanOrEqualTo:@"10"]) 33 | NSLog(@"You are running tvOS 🔟 or above!"); 34 | else if ([SDtvOSVersion versionLessThanOrEqualTo:@"9.2"]) 35 | NSLog(@"You're on tvOS 9.2 or below! ⏳"); 36 | } 37 | 38 | - (void)didReceiveMemoryWarning { 39 | [super didReceiveMemoryWarning]; 40 | // Dispose of any resources that can be recreated. 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDwatchOSVersion/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "24x24", 5 | "idiom" : "watch", 6 | "scale" : "2x", 7 | "role" : "notificationCenter", 8 | "subtype" : "38mm" 9 | }, 10 | { 11 | "size" : "27.5x27.5", 12 | "idiom" : "watch", 13 | "scale" : "2x", 14 | "role" : "notificationCenter", 15 | "subtype" : "42mm" 16 | }, 17 | { 18 | "size" : "29x29", 19 | "idiom" : "watch", 20 | "role" : "companionSettings", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "size" : "29x29", 25 | "idiom" : "watch", 26 | "role" : "companionSettings", 27 | "scale" : "3x" 28 | }, 29 | { 30 | "size" : "40x40", 31 | "idiom" : "watch", 32 | "scale" : "2x", 33 | "role" : "appLauncher", 34 | "subtype" : "38mm" 35 | }, 36 | { 37 | "size" : "86x86", 38 | "idiom" : "watch", 39 | "scale" : "2x", 40 | "role" : "quickLook", 41 | "subtype" : "38mm" 42 | }, 43 | { 44 | "size" : "98x98", 45 | "idiom" : "watch", 46 | "scale" : "2x", 47 | "role" : "quickLook", 48 | "subtype" : "42mm" 49 | } 50 | ], 51 | "info" : { 52 | "version" : 1, 53 | "author" : "xcode" 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDwatchOSVersion Extension/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | SDwatchOSVersion Extension 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | XPC! 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | NSExtension 26 | 27 | NSExtensionAttributes 28 | 29 | WKAppBundleIdentifier 30 | com.dobrincusebastian.SDiOSVersion.watchkitapp 31 | 32 | NSExtensionPointIdentifier 33 | com.apple.watchkit 34 | 35 | WKExtensionDelegateClassName 36 | ExtensionDelegate 37 | 38 | 39 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersion/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UIStatusBarHidden 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /SDVersion/SDMacVersion/SDMacVersion.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDMacVersion.h 3 | // SDMacVersion 4 | // 5 | // Copyright (c) 2015 Sebastian Dobrincu & Tom Baranes. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | typedef NS_ENUM(NSInteger, DeviceVersion) { 11 | DeviceVersionUnknown = 0, 12 | DeviceVersionIMac, 13 | DeviceVersionMacMini, 14 | DeviceVersionMacPro, 15 | DeviceVersionMacBook, 16 | DeviceVersionMacBookAir, 17 | DeviceVersionMacBookPro, 18 | DeviceVersionXserve, 19 | }; 20 | 21 | typedef NS_ENUM(NSInteger, DeviceSize) { 22 | UnknownSize = 0, 23 | Mac27Inch = 27, 24 | Mac24Inch = 24, 25 | Mac21Dot5Inch = 21, 26 | Mac20Inch = 20, 27 | Mac17Inch = 17, 28 | Mac15Inch = 15, 29 | Mac13Inch = 13, 30 | Mac12Inch = 12, 31 | Mac11Inch = 11 32 | }; 33 | 34 | typedef NS_ENUM(NSInteger, DeviceScreenResolution) { 35 | UnknownResolution, 36 | DeviceScreenRetina, 37 | DeviceScreenNoRetina 38 | }; 39 | 40 | @interface SDMacVersion : NSObject 41 | 42 | + (DeviceVersion)deviceVersion; 43 | + (NSString *)deviceVersionString; 44 | + (DeviceSize)deviceSize; 45 | + (NSString *)deviceSizeName:(DeviceSize)deviceSize; 46 | + (NSSize)deviceScreenResolutionPixelSize; 47 | + (DeviceScreenResolution)deviceScreenResolution; 48 | + (NSString *)deviceScreenResolutionName:(DeviceScreenResolution)deviceScreenResolution; 49 | 50 | + (BOOL)versionEqualTo:(NSString *)version; 51 | + (BOOL)versionGreaterThan:(NSString *)version; 52 | + (BOOL)versionGreaterThanOrEqualTo:(NSString *)version; 53 | + (BOOL)versionLessThan:(NSString *)version; 54 | + (BOOL)versionLessThanOrEqualTo:(NSString *)version; 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDwatchOSVersion Extension/InterfaceController.m: -------------------------------------------------------------------------------- 1 | // 2 | // InterfaceController.m 3 | // SDwatchOSVersion Extension 4 | // 5 | // Created by Jeff Kelley on 6/29/16. 6 | // Copyright © 2016 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import "InterfaceController.h" 10 | 11 | #import "SDwatchOSVersion.h" 12 | 13 | @implementation InterfaceController 14 | 15 | - (void)awakeWithContext:(id)context { 16 | [super awakeWithContext:context]; 17 | 18 | // Get device name as NSString 19 | [self.watchVersionLabel setText:[@"Watch Version: " stringByAppendingString:[SDwatchOSVersion deviceVersionName:[SDwatchOSVersion deviceVersion]]]]; 20 | 21 | // Get device size using string conversion 22 | [self.watchSizeLabel setText:[@"Watch Size: " stringByAppendingString:[SDwatchOSVersion deviceSizeName:[SDwatchOSVersion deviceSize]]]]; 23 | 24 | if ([SDwatchOSVersion deviceVersion] == AppleWatch42mm) 25 | NSLog(@"You got the Apple Watch 42mm. Nice!"); 26 | else if ([SDwatchOSVersion deviceVersion] == AppleWatch38mm) 27 | NSLog(@"You got the Apple Watch 38mm. Good device!"); 28 | 29 | // Check for device screen size 30 | if ([SDwatchOSVersion deviceSize] == Screen38mm) 31 | NSLog(@"Your screen is 38mm"); 32 | else if ([SDwatchOSVersion deviceSize] == Screen42mm) 33 | NSLog(@"Your screen size is 42mm"); 34 | 35 | //Check for iOS Version 36 | if ([SDwatchOSVersion versionGreaterThanOrEqualTo:@"3"]) 37 | NSLog(@"You are running watchOS 3️⃣ or above!"); 38 | else if ([SDwatchOSVersion versionLessThanOrEqualTo:@"2.2"]) 39 | NSLog(@"You're on watchOS 2.2 or below! ⏳"); 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /SDVersion.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | 3 | # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 4 | # 5 | # These will help people to find your library, and whilst it 6 | # can feel like a chore to fill in it's definitely to your advantage. The 7 | # summary should be tweet-length, and the description more in depth. 8 | # 9 | 10 | s.name = "SDVersion" 11 | s.version = "4.3.2" 12 | s.summary = "Lightweight Cocoa library for detecting the running device's model and screen size." 13 | s.homepage = "https://github.com/sebyddd/SDVersion" 14 | s.screenshots = "https://dl.dropboxusercontent.com/s/bmfjwfe2ngnivwn/sdversion.png?dl=0" 15 | 16 | 17 | # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 18 | # 19 | # Licensing your code is important. See http://choosealicense.com for more info. 20 | # CocoaPods will detect a license file if there is a named LICENSE* 21 | # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'. 22 | # 23 | 24 | s.license = "MIT (example)" 25 | s.license = { :type => "MIT", :file => "LICENSE" } 26 | s.author = { "Sebastian Dobrincu" => "me@dobrincu.co" } 27 | s.platform = :ios 28 | s.platform = :osx 29 | s.platform = :watchos 30 | s.platform = :tvos 31 | s.ios.deployment_target = '7.0' 32 | s.osx.deployment_target = '10.9' 33 | s.watchos.deployment_target = '2.0' 34 | s.tvos.deployment_target = '9.0' 35 | s.ios.source_files = "SDVersion/SDiOSVersion/*.{h,m}" 36 | s.osx.source_files = "SDVersion/SDMacVersion/*.{h,m}" 37 | s.watchos.source_files = "SDVersion/SDwatchOSVersion/*.{h,m}" 38 | s.tvos.source_files = "SDVersion/SDtvOSVersion/*.{h,m}" 39 | s.source = { :git => 'https://github.com/sebyddd/SDVersion.git', :tag => "#{s.version}" } 40 | s.source_files = "SDVersion/*.{h,m}" 41 | 42 | s.requires_arc = true 43 | 44 | end 45 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDwatchOSVersion/Base.lproj/Interface.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersion/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // SDiOSVersion 4 | // 5 | // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import "ViewController.h" 9 | #import "SDVersion.h" 10 | 11 | @implementation ViewController 12 | 13 | - (void)viewDidLoad { 14 | [super viewDidLoad]; 15 | 16 | // Get device name as NSString 17 | self.iphoneVersionLabel.text = [self.iphoneVersionLabel.text stringByAppendingString:[SDVersion deviceNameString]]; 18 | 19 | // Get device size using string conversion 20 | self.iphoneSizeLabel.text = [self.iphoneSizeLabel.text stringByAppendingString:[NSString stringWithFormat:@"%@", [SDVersion deviceSizeName:[SDVersion deviceSize]]]]; 21 | 22 | // Check for device model 23 | if ([SDVersion deviceVersion] == iPhone7) 24 | NSLog(@"You got the iPhone 7. Nice!"); 25 | else if ([SDVersion deviceVersion] == iPhone6SPlus) 26 | NSLog(@"You got the iPhone 6S Plus. Awesome device!"); 27 | else if ([SDVersion deviceVersion] == iPodTouch6Gen) 28 | NSLog(@"The latest iPod Touch. Cool! ❄️"); 29 | 30 | // Check for device screen size 31 | if ([SDVersion deviceSize] == Screen3Dot5inch) 32 | NSLog(@"Your screen is 3.5 inches"); 33 | else if ([SDVersion deviceSize] == Screen4inch) 34 | NSLog(@"Your screen size is 4 inches"); 35 | else if([SDVersion deviceSize] == Screen4Dot7inch) 36 | NSLog(@"Your screen size is 4.7 inches"); 37 | else if([SDVersion deviceSize] == Screen5Dot5inch) 38 | NSLog(@"Your screen size is 5.5 inches"); 39 | 40 | if ([SDVersion isZoomed]) { 41 | NSLog(@"Your device is in Zoom Mode!"); 42 | } 43 | 44 | //Check for iOS Version 45 | if ([SDVersion versionGreaterThanOrEqualTo:@"10"]) 46 | NSLog(@"You are running iOS 1️⃣0️⃣ or above!"); 47 | else if ([SDVersion versionLessThanOrEqualTo:@"9.1"]) 48 | NSLog(@"You're on iOS 9.1 or below! ⏳"); 49 | } 50 | 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersion/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // SDiOSVersion 4 | // 5 | // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import "AppDelegate.h" 9 | 10 | @implementation AppDelegate 11 | 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 14 | // Override point for customization after application launch. 15 | [[UIApplication sharedApplication] setStatusBarHidden:YES]; 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application { 20 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 21 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 22 | } 23 | 24 | - (void)applicationDidEnterBackground:(UIApplication *)application { 25 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 26 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 27 | } 28 | 29 | - (void)applicationWillEnterForeground:(UIApplication *)application { 30 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 31 | } 32 | 33 | - (void)applicationDidBecomeActive:(UIApplication *)application { 34 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 35 | } 36 | 37 | - (void)applicationWillTerminate:(UIApplication *)application { 38 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 39 | } 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // SDtvOSVersion 4 | // 5 | // Created by Jeff Kelley on 7/20/16. 6 | // Copyright © 2016 Sebastian Dobrincu. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /SDVersion/SDiOSVersion/SDiOSVersion.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDiOSVersion.h 3 | // SDVersion 4 | // 5 | // Copyright (c) 2016 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | typedef NS_ENUM(NSInteger, DeviceVersion){ 11 | UnknownDevice = 0, 12 | Simulator = 1, 13 | 14 | iPhone4 = 3, 15 | iPhone4S = 4, 16 | iPhone5 = 5, 17 | iPhone5C = 6, 18 | iPhone5S = 7, 19 | iPhone6 = 8, 20 | iPhone6Plus = 9, 21 | iPhone6S = 10, 22 | iPhone6SPlus = 11, 23 | iPhone7 = 12, 24 | iPhone7Plus = 13, 25 | iPhone8 = 14, 26 | iPhone8Plus = 15, 27 | iPhoneX = 16, 28 | iPhoneSE = 17, 29 | 30 | iPad1 = 18, 31 | iPad2 = 19, 32 | iPadMini = 20, 33 | iPad3 = 21, 34 | iPad4 = 22, 35 | iPadAir = 23, 36 | iPadMini2 = 24, 37 | iPadAir2 = 25, 38 | iPadMini3 = 26, 39 | iPadMini4 = 27, 40 | iPadPro12Dot9Inch = 28, 41 | iPadPro9Dot7Inch = 29, 42 | iPad5 = 30, 43 | iPadPro12Dot9Inch2Gen = 31, 44 | iPadPro10Dot5Inch = 32, 45 | 46 | iPodTouch1Gen = 33, 47 | iPodTouch2Gen = 34, 48 | iPodTouch3Gen = 35, 49 | iPodTouch4Gen = 36, 50 | iPodTouch5Gen = 37, 51 | iPodTouch6Gen = 38 52 | }; 53 | 54 | typedef NS_ENUM(NSInteger, DeviceSize){ 55 | UnknownSize = 0, 56 | Screen3Dot5inch = 1, 57 | Screen4inch = 2, 58 | Screen4Dot7inch = 3, 59 | Screen5Dot5inch = 4, 60 | Screen5Dot8inch = 5 61 | }; 62 | 63 | @interface SDiOSVersion : NSObject 64 | 65 | + (DeviceVersion)deviceVersion; 66 | + (NSString *)deviceNameForVersion:(DeviceVersion)deviceVersion; 67 | + (DeviceSize)resolutionSize; 68 | + (DeviceSize)deviceSize; 69 | + (NSString *)deviceSizeName:(DeviceSize)deviceSize; 70 | + (NSString *)deviceNameString; 71 | + (BOOL)isZoomed; 72 | 73 | + (BOOL)versionEqualTo:(NSString *)version; 74 | + (BOOL)versionGreaterThan:(NSString *)version; 75 | + (BOOL)versionGreaterThanOrEqualTo:(NSString *)version; 76 | + (BOOL)versionLessThan:(NSString *)version; 77 | + (BOOL)versionLessThanOrEqualTo:(NSString *)version; 78 | 79 | @end 80 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersion/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /SDVersion/SDtvOSVersion/SDtvOSVersion.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDtvOSVersion.m 3 | // SDVersion 4 | // 5 | // Copyright (c) 2016 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import "SDtvOSVersion.h" 9 | 10 | #import 11 | #import 12 | #import 13 | 14 | @implementation SDtvOSVersion 15 | 16 | + (NSDictionary*)deviceNamesByCode 17 | { 18 | static NSDictionary *deviceNamesByCode = nil; 19 | static dispatch_once_t onceToken; 20 | dispatch_once(&onceToken, ^{ 21 | deviceNamesByCode = @{ 22 | @"AppleTV5,3" : @(AppleTV4), 23 | @"AppleTV6,2" : @(AppleTV4K), 24 | }; 25 | }); 26 | 27 | return deviceNamesByCode; 28 | } 29 | 30 | + (DeviceVersion)deviceVersion 31 | { 32 | struct utsname systemInfo; 33 | uname(&systemInfo); 34 | NSString *code = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding]; 35 | 36 | DeviceVersion version = (DeviceVersion)[[self.deviceNamesByCode objectForKey:code] integerValue]; 37 | 38 | return version; 39 | } 40 | 41 | + (NSString *)deviceVersionName:(DeviceVersion)deviceVersion 42 | { 43 | return @{ 44 | @(AppleTV4) : @"Apple TV (4th Generation)", 45 | @(AppleTV4K) : @"Apple TV 4K", 46 | @(Simulator) : @"Simulator" 47 | }[@(deviceVersion)]; 48 | } 49 | 50 | + (NSString *)deviceName 51 | { 52 | struct utsname systemInfo; 53 | uname(&systemInfo); 54 | NSString *code = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding]; 55 | if ([code isEqualToString:@"x86_64"] || [code isEqualToString:@"i386"]) { 56 | code = @"Simulator"; 57 | } 58 | 59 | return code; 60 | } 61 | 62 | + (BOOL)versionEqualTo:(NSString *)version 63 | { 64 | return ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] == NSOrderedSame); 65 | } 66 | 67 | + (BOOL)versionGreaterThan:(NSString *)version 68 | { 69 | return ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] == NSOrderedDescending); 70 | } 71 | 72 | + (BOOL)versionGreaterThanOrEqualTo:(NSString *)version 73 | { 74 | return ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] != NSOrderedAscending); 75 | } 76 | 77 | + (BOOL)versionLessThan:(NSString *)version 78 | { 79 | return ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] == NSOrderedAscending); 80 | } 81 | 82 | + (BOOL)versionLessThanOrEqualTo:(NSString *)version 83 | { 84 | return ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] != NSOrderedDescending); 85 | } 86 | 87 | @end 88 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDMacVersion/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // SDMacVersion 4 | // 5 | // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import "ViewController.h" 9 | #import "SDVersion.h" 10 | 11 | @implementation ViewController 12 | 13 | - (void)viewDidLoad { 14 | [super viewDidLoad]; 15 | 16 | 17 | // Get device info 18 | NSString *deviceVersion = [SDVersion deviceVersionString]; // Eg.: MacBookPro 19 | NSString *deviceSize = [SDVersion deviceSizeName:[SDVersion deviceSize]]; // Eg.: 15 inch 20 | NSString *devicePixelSize = NSStringFromSize([SDVersion deviceScreenResolutionPixelSize]); // Eg.: Retina screen 21 | NSString *deviceResolution = [SDVersion deviceScreenResolutionName:[SDVersion deviceScreenResolution]]; // Eg.: {2880, 1800} 22 | 23 | 24 | // Check OSX Version 25 | if ([SDVersion versionLessThanOrEqualTo:@"10"]) 26 | NSLog(@"You're running Yosemite or below."); 27 | else if([SDVersion versionGreaterThanOrEqualTo:@"11"]) 28 | NSLog(@"Looks like you are running OSX 10.11 El Capitan or 🆙."); 29 | else if ([SDVersion versionEqualTo:@"9"]) 30 | NSLog(@"Mavericks, what the hell ⁉️"); 31 | 32 | 33 | // Check for device model 34 | if ([SDVersion deviceVersion] == DeviceVersionIMac) 35 | NSLog(@"So you have a iMac? 💻"); 36 | else if ([SDVersion deviceVersion] == DeviceVersionMacMini) 37 | NSLog(@"You're using a Mac Mini."); 38 | 39 | 40 | // Check for screen size 41 | if ([SDVersion deviceSize] == Mac27Inch) 42 | NSLog(@"Whoah! You got a big ass 27 inch screen."); 43 | else if ([SDVersion deviceSize] == Mac21Dot5Inch) 44 | NSLog(@"You have a 21.5 inch screen."); 45 | 46 | 47 | // Check for screen resolution 48 | if ([SDVersion deviceScreenResolution] == DeviceScreenRetina) 49 | NSLog(@"Nice retina screen!"); 50 | 51 | // Get screen resolution in pixels 52 | NSLog(@"Resolution: %@", devicePixelSize); 53 | 54 | // Set label's text 55 | self.textFieldModel.stringValue = [self.textFieldModel.stringValue stringByAppendingString:deviceVersion]; 56 | self.textFieldMacScreenInch.stringValue = [self.textFieldMacScreenInch.stringValue stringByAppendingFormat:@"%@", deviceSize]; 57 | self.textFieldMacScreenPixelSize.stringValue = [self.textFieldMacScreenPixelSize.stringValue stringByAppendingFormat:@" %@", devicePixelSize]; 58 | self.textFieldMacScreenResolution.stringValue = [self.textFieldMacScreenResolution.stringValue stringByAppendingString:deviceResolution]; 59 | 60 | } 61 | 62 | - (void)awakeFromNib { 63 | [super awakeFromNib]; 64 | 65 | // Set window background color 66 | self.view.layer.backgroundColor = [NSColor colorWithRed:0.32 green:0.35 blue:0.64 alpha:1].CGColor; 67 | } 68 | 69 | @end 70 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDtvOSVersion/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /SDVersion/SDwatchOSVersion/SDwatchOSVersion.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDwatchOSVersion.m 3 | // SDVersion 4 | // 5 | // Copyright © 2016 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import "SDwatchOSVersion.h" 9 | #import 10 | 11 | @implementation SDwatchOSVersion 12 | 13 | + (NSDictionary*)deviceNamesByCode 14 | { 15 | static NSDictionary *deviceNamesByCode = nil; 16 | static dispatch_once_t onceToken; 17 | dispatch_once(&onceToken, ^{ 18 | deviceNamesByCode = @{ 19 | @"Watch1,1" : @(AppleWatch38mm), 20 | @"Watch1,2" : @(AppleWatch42mm), 21 | @"Watch2,6" : @(AppleWatch38mmSeries1), 22 | @"Watch2,7" : @(AppleWatch42mmSeries1), 23 | @"Watch2,3" : @(AppleWatch38mmSeries2), 24 | @"Watch2,4" : @(AppleWatch42mmSeries2), 25 | @"Watch3,1" : @(AppleWatch38mmSeries3), 26 | @"Watch3,2" : @(AppleWatch42mmSeries3), 27 | @"Watch3,3" : @(AppleWatch38mmSeries3), 28 | @"Watch3,4" : @(AppleWatch42mmSeries3), 29 | }; 30 | }); 31 | 32 | return deviceNamesByCode; 33 | } 34 | 35 | + (DeviceVersion)deviceVersion 36 | { 37 | struct utsname systemInfo; 38 | uname(&systemInfo); 39 | NSString *code = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding]; 40 | 41 | DeviceVersion version = (DeviceVersion)[[self.deviceNamesByCode objectForKey:code] integerValue]; 42 | 43 | return version; 44 | } 45 | 46 | + (NSString *)deviceVersionName:(DeviceVersion)deviceVersion 47 | { 48 | return @{ 49 | @(AppleWatch38mm) : @"Apple Watch 38mm", 50 | @(AppleWatch42mm) : @"Apple Watch 42mm", 51 | @(AppleWatch38mmSeries1) : @"Apple Watch Series 1 38mm", 52 | @(AppleWatch42mmSeries1) : @"Apple Watch Series 1 42mm", 53 | @(AppleWatch38mmSeries2) : @"Apple Watch Series 2 38mm", 54 | @(AppleWatch42mmSeries2) : @"Apple Watch Series 2 42mm", 55 | @(AppleWatch38mmSeries3) : @"Apple Watch Series 3 38mm", 56 | @(AppleWatch42mmSeries3) : @"Apple Watch Series 3 42mm", 57 | @(Simulator) : @"Simulator" 58 | }[@(deviceVersion)]; 59 | } 60 | 61 | + (DeviceSize)deviceSize 62 | { 63 | CGFloat screenHeight = CGRectGetHeight([WKInterfaceDevice currentDevice].screenBounds); 64 | 65 | if (screenHeight == 195) { 66 | return Screen42mm; 67 | } else if(screenHeight == 170) { 68 | return Screen38mm; 69 | } else { 70 | return UnknownSize; 71 | } 72 | } 73 | 74 | + (NSString *)deviceSizeName:(DeviceSize)deviceSize 75 | { 76 | return @{ 77 | @(UnknownSize) : @"Unknown Size", 78 | @(Screen38mm) : @"38mm", 79 | @(Screen42mm) : @"42mm" 80 | }[@(deviceSize)]; 81 | } 82 | 83 | + (NSString *)deviceName 84 | { 85 | struct utsname systemInfo; 86 | uname(&systemInfo); 87 | NSString *code = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding]; 88 | if ([code isEqualToString:@"x86_64"] || [code isEqualToString:@"i386"]) { 89 | code = @"Simulator"; 90 | } 91 | 92 | return code; 93 | } 94 | 95 | + (BOOL)versionEqualTo:(NSString *)version 96 | { 97 | return ([[[WKInterfaceDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] == NSOrderedSame); 98 | } 99 | 100 | + (BOOL)versionGreaterThan:(NSString *)version 101 | { 102 | return ([[[WKInterfaceDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] == NSOrderedDescending); 103 | } 104 | 105 | + (BOOL)versionGreaterThanOrEqualTo:(NSString *)version 106 | { 107 | return ([[[WKInterfaceDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] != NSOrderedAscending); 108 | } 109 | 110 | + (BOOL)versionLessThan:(NSString *)version 111 | { 112 | return ([[[WKInterfaceDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] == NSOrderedAscending); 113 | } 114 | 115 | + (BOOL)versionLessThanOrEqualTo:(NSString *)version 116 | { 117 | return ([[[WKInterfaceDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] != NSOrderedDescending); 118 | } 119 | 120 | @end 121 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDiOSVersion/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 27 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /SDVersion/SDMacVersion/SDMacVersion.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDMacVersion.m 3 | // SDMacVersion 4 | // 5 | // Copyright (c) 2015 Sebastian Dobrincu & Tom Baranes. All rights reserved. 6 | // 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #import "SDMacVersion.h" 13 | 14 | @implementation SDMacVersion 15 | 16 | static NSString * const SDMacDeviceName = @"SDMacDeviceName"; 17 | static NSString * const SDMacVersionEnum = @"SDMacVersionEnum"; 18 | static NSString * const SDMacScreenSize = @"SDMacReleaseSize"; 19 | static NSString * const SDMacResolution = @"SDMacResolution"; 20 | 21 | #pragma mark - Models 22 | 23 | + (NSDictionary *)deviceInformationForModel:(NSString *)model { 24 | 25 | __block NSMutableDictionary *mutableDic = [NSMutableDictionary dictionary]; 26 | static NSDictionary *deviceDic = nil; 27 | static dispatch_once_t onceToken; 28 | dispatch_once(&onceToken, ^{ 29 | if ([model hasPrefix:@"MacPro"]) 30 | { 31 | mutableDic[SDMacDeviceName] = @"MacPro"; 32 | mutableDic[SDMacVersionEnum] = @(DeviceVersionMacPro); 33 | } 34 | 35 | else if ([model hasPrefix:@"iMac"]) 36 | { 37 | mutableDic[SDMacDeviceName] = @"iMac"; 38 | mutableDic[SDMacVersionEnum] = @(DeviceVersionIMac); 39 | } 40 | 41 | else if ([model hasPrefix:@"MacBookPro"]) 42 | { 43 | mutableDic[SDMacDeviceName] = @"MacBookPro"; 44 | mutableDic[SDMacVersionEnum] = @(DeviceVersionMacBookPro); 45 | } 46 | 47 | else if ([model hasPrefix:@"MacBookAir"]) 48 | { 49 | mutableDic[SDMacDeviceName] = @"MacBookAir"; 50 | mutableDic[SDMacVersionEnum] = @(DeviceVersionMacBookAir); 51 | } 52 | 53 | else if ([model hasPrefix:@"MacBook"]) 54 | { 55 | mutableDic[SDMacDeviceName] = @"MacBook"; 56 | mutableDic[SDMacVersionEnum] = @(DeviceVersionMacBook); 57 | } 58 | 59 | else 60 | { 61 | mutableDic[SDMacDeviceName] = @"Unknown"; 62 | mutableDic[SDMacVersionEnum] = @(DeviceVersionUnknown); 63 | } 64 | 65 | // Check if screen is retina 66 | float displayScale = 1.0; 67 | if ([[NSScreen mainScreen] respondsToSelector:@selector(backingScaleFactor)]) 68 | for (NSScreen *screen in [NSScreen screens]) { 69 | float s = [screen backingScaleFactor]; 70 | if (s > displayScale) 71 | displayScale = s;} 72 | if (displayScale == 1) 73 | mutableDic[SDMacResolution] = @(DeviceScreenNoRetina); 74 | else if (displayScale == 2) 75 | mutableDic[SDMacResolution] = @(DeviceScreenRetina); 76 | else 77 | mutableDic[SDMacResolution] = @(UnknownResolution); 78 | 79 | // Get device size in inches 80 | mutableDic[SDMacScreenSize] = [self deviceSizeInInches]; 81 | 82 | // Copy to static dictionary 83 | deviceDic = [mutableDic copy]; 84 | }); 85 | 86 | return deviceDic; 87 | } 88 | 89 | + (NSString *)currentModel { 90 | size_t len = 0; 91 | sysctlbyname("hw.model", NULL, &len, NULL, 0); 92 | NSString *model; 93 | if (len) { 94 | char *modelChar = malloc(len*sizeof(char)); 95 | sysctlbyname("hw.model", modelChar, &len, NULL, 0); 96 | model = [NSString stringWithUTF8String:modelChar]; 97 | free(modelChar); 98 | } 99 | return model; 100 | } 101 | 102 | #pragma mark - Mac Information 103 | 104 | + (DeviceVersion)deviceVersion { 105 | return [[[self deviceInformationForModel:[self currentModel]] objectForKey:SDMacVersionEnum] integerValue]; 106 | } 107 | 108 | + (DeviceSize)deviceSize { 109 | return [[[self deviceInformationForModel:[self currentModel]] objectForKey:SDMacScreenSize] integerValue]; 110 | } 111 | 112 | + (NSString *)deviceSizeName:(DeviceSize)deviceSize 113 | { 114 | return @{ 115 | @(UnknownSize) : @"Unknown Size", 116 | @(Mac27Inch) : @"27 inch", 117 | @(Mac24Inch) : @"24 inch", 118 | @(Mac21Dot5Inch) : @"21.5 inch", 119 | @(Mac20Inch) : @"20 inch", 120 | @(Mac17Inch) : @"17 inch", 121 | @(Mac15Inch) : @"15 inch", 122 | @(Mac13Inch) : @"13 inch", 123 | @(Mac12Inch) : @"12 inch", 124 | @(Mac11Inch) : @"11 inch" 125 | }[@(deviceSize)]; 126 | } 127 | 128 | + (DeviceScreenResolution)deviceScreenResolution { 129 | return [[[self deviceInformationForModel:[self currentModel]] objectForKey:SDMacResolution] integerValue]; 130 | } 131 | 132 | + (NSString *)deviceScreenResolutionName:(DeviceScreenResolution)deviceScreenResolution 133 | { 134 | return @{ 135 | @(UnknownResolution) : @"Unknown resolution", 136 | @(DeviceScreenRetina) : @"Retina screen", 137 | @(DeviceScreenNoRetina) : @"Non-retina screen" 138 | }[@(deviceScreenResolution)]; 139 | } 140 | 141 | + (NSString *)deviceVersionString { 142 | return [[self deviceInformationForModel:[self currentModel]] objectForKey:SDMacDeviceName]; 143 | } 144 | 145 | + (NSSize)deviceScreenResolutionPixelSize { 146 | NSScreen *screen = [NSScreen mainScreen]; 147 | NSDictionary *description = [screen deviceDescription]; 148 | NSSize pixelSize = [[description objectForKey:NSDeviceSize] sizeValue]; 149 | 150 | // Double pixel size if retina screen 151 | if ([[[self deviceInformationForModel:[self currentModel]] objectForKey:SDMacResolution] integerValue] == DeviceScreenRetina) 152 | return NSMakeSize(pixelSize.width*2, pixelSize.height*2); 153 | return pixelSize; 154 | } 155 | 156 | + (BOOL)versionEqualTo:(NSString *)version 157 | { 158 | return ([[@([[NSProcessInfo processInfo]operatingSystemVersion].minorVersion) stringValue] compare:version options:NSNumericSearch] == NSOrderedSame); 159 | } 160 | 161 | + (BOOL)versionGreaterThan:(NSString *)version 162 | { 163 | return ([[@([[NSProcessInfo processInfo]operatingSystemVersion].minorVersion) stringValue] compare:version options:NSNumericSearch] == NSOrderedDescending); 164 | } 165 | 166 | + (BOOL)versionGreaterThanOrEqualTo:(NSString *)version 167 | { 168 | return ([[@([[NSProcessInfo processInfo]operatingSystemVersion].minorVersion) stringValue] compare:version options:NSNumericSearch] != NSOrderedAscending); 169 | } 170 | 171 | + (BOOL)versionLessThan:(NSString *)version 172 | { 173 | return ([[@([[NSProcessInfo processInfo]operatingSystemVersion].minorVersion) stringValue] compare:version options:NSNumericSearch] == NSOrderedAscending); 174 | } 175 | 176 | + (BOOL)versionLessThanOrEqualTo:(NSString *)version 177 | { 178 | return ([[@([[NSProcessInfo processInfo]operatingSystemVersion].minorVersion) stringValue]compare:version options:NSNumericSearch] != NSOrderedDescending); 179 | } 180 | 181 | #pragma mark - Helpers 182 | 183 | + (NSNumber *)deviceSizeInInches { 184 | NSScreen *screen = [NSScreen mainScreen]; 185 | NSDictionary *description = [screen deviceDescription]; 186 | CGSize displayPhysicalSize = CGDisplayScreenSize([[description objectForKey:@"NSScreenNumber"] unsignedIntValue]); 187 | CGFloat sizeInInches = floor(sqrt(pow(displayPhysicalSize.width, 2) + pow(displayPhysicalSize.height, 2)) * 0.0393701); 188 | 189 | if (sizeInInches == 11) 190 | return @(Mac11Inch); 191 | else if (sizeInInches == 12) 192 | return @(Mac12Inch); 193 | else if (sizeInInches == 13) 194 | return @(Mac13Inch); 195 | else if (sizeInInches == 15) 196 | return @(Mac15Inch); 197 | else if (sizeInInches == 17) 198 | return @(Mac17Inch); 199 | else if (sizeInInches == 20) 200 | return @(Mac20Inch); 201 | else if (sizeInInches == 21) 202 | return @(Mac21Dot5Inch); 203 | else if (sizeInInches == 24) 204 | return @(Mac24Inch); 205 | else if (sizeInInches == 27) 206 | return @(Mac27Inch); 207 | else 208 | return @(UnknownSize); 209 | } 210 | 211 | 212 | @end 213 | -------------------------------------------------------------------------------- /SDVersion/SDiOSVersion/SDiOSVersion.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDiOSVersion.m 3 | // SDVersion 4 | // 5 | // Copyright (c) 2016 Sebastian Dobrincu. All rights reserved. 6 | // 7 | 8 | #import "SDiOSVersion.h" 9 | #import 10 | #import 11 | #import 12 | 13 | @implementation SDiOSVersion 14 | 15 | + (NSDictionary*)deviceNamesByCode 16 | { 17 | static NSDictionary *deviceNamesByCode = nil; 18 | static dispatch_once_t onceToken; 19 | dispatch_once(&onceToken, ^{ 20 | #pragma clang diagnostic push 21 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 22 | deviceNamesByCode = @{ 23 | //iPhones 24 | @"iPhone3,1" : @(iPhone4), 25 | @"iPhone3,2" : @(iPhone4), 26 | @"iPhone3,3" : @(iPhone4), 27 | @"iPhone4,1" : @(iPhone4S), 28 | @"iPhone4,2" : @(iPhone4S), 29 | @"iPhone4,3" : @(iPhone4S), 30 | @"iPhone5,1" : @(iPhone5), 31 | @"iPhone5,2" : @(iPhone5), 32 | @"iPhone5,3" : @(iPhone5C), 33 | @"iPhone5,4" : @(iPhone5C), 34 | @"iPhone6,1" : @(iPhone5S), 35 | @"iPhone6,2" : @(iPhone5S), 36 | @"iPhone7,2" : @(iPhone6), 37 | @"iPhone7,1" : @(iPhone6Plus), 38 | @"iPhone8,1" : @(iPhone6S), 39 | @"iPhone8,2" : @(iPhone6SPlus), 40 | @"iPhone8,4" : @(iPhoneSE), 41 | @"iPhone9,1" : @(iPhone7), 42 | @"iPhone9,3" : @(iPhone7), 43 | @"iPhone9,2" : @(iPhone7Plus), 44 | @"iPhone9,4" : @(iPhone7Plus), 45 | @"iPhone10,1" : @(iPhone8), 46 | @"iPhone10,4" : @(iPhone8), 47 | @"iPhone10,2" : @(iPhone8Plus), 48 | @"iPhone10,5" : @(iPhone8Plus), 49 | @"iPhone10,3" : @(iPhoneX), 50 | @"iPhone10,6" : @(iPhoneX), 51 | @"i386" : @(Simulator), 52 | @"x86_64" : @(Simulator), 53 | 54 | //iPads 55 | @"iPad1,1" : @(iPad1), 56 | @"iPad2,1" : @(iPad2), 57 | @"iPad2,2" : @(iPad2), 58 | @"iPad2,3" : @(iPad2), 59 | @"iPad2,4" : @(iPad2), 60 | @"iPad2,5" : @(iPadMini), 61 | @"iPad2,6" : @(iPadMini), 62 | @"iPad2,7" : @(iPadMini), 63 | @"iPad3,1" : @(iPad3), 64 | @"iPad3,2" : @(iPad3), 65 | @"iPad3,3" : @(iPad3), 66 | @"iPad3,4" : @(iPad4), 67 | @"iPad3,5" : @(iPad4), 68 | @"iPad3,6" : @(iPad4), 69 | @"iPad4,1" : @(iPadAir), 70 | @"iPad4,2" : @(iPadAir), 71 | @"iPad4,3" : @(iPadAir), 72 | @"iPad4,4" : @(iPadMini2), 73 | @"iPad4,5" : @(iPadMini2), 74 | @"iPad4,6" : @(iPadMini2), 75 | @"iPad4,7" : @(iPadMini3), 76 | @"iPad4,8" : @(iPadMini3), 77 | @"iPad4,9" : @(iPadMini3), 78 | @"iPad5,1" : @(iPadMini4), 79 | @"iPad5,2" : @(iPadMini4), 80 | @"iPad5,3" : @(iPadAir2), 81 | @"iPad5,4" : @(iPadAir2), 82 | @"iPad6,3" : @(iPadPro9Dot7Inch), 83 | @"iPad6,4" : @(iPadPro9Dot7Inch), 84 | @"iPad6,7" : @(iPadPro12Dot9Inch), 85 | @"iPad6,8" : @(iPadPro12Dot9Inch), 86 | @"iPad6,11" : @(iPad5), 87 | @"iPad6,12" : @(iPad5), 88 | @"iPad7,1" : @(iPadPro12Dot9Inch2Gen), 89 | @"iPad7,2" : @(iPadPro12Dot9Inch2Gen), 90 | @"iPad7,3" : @(iPadPro10Dot5Inch), 91 | @"iPad7,4" : @(iPadPro10Dot5Inch), 92 | 93 | //iPods 94 | @"iPod1,1" : @(iPodTouch1Gen), 95 | @"iPod2,1" : @(iPodTouch2Gen), 96 | @"iPod3,1" : @(iPodTouch3Gen), 97 | @"iPod4,1" : @(iPodTouch4Gen), 98 | @"iPod5,1" : @(iPodTouch5Gen), 99 | @"iPod7,1" : @(iPodTouch6Gen)}; 100 | #pragma clang diagnostic pop 101 | }); 102 | 103 | return deviceNamesByCode; 104 | } 105 | 106 | + (DeviceVersion)deviceVersion 107 | { 108 | struct utsname systemInfo; 109 | uname(&systemInfo); 110 | NSString *code = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding]; 111 | 112 | DeviceVersion version = (DeviceVersion)[[self.deviceNamesByCode objectForKey:code] integerValue]; 113 | 114 | return version; 115 | } 116 | 117 | + (DeviceSize)resolutionSize 118 | { 119 | CGFloat screenHeight = 0; 120 | 121 | if ([SDiOSVersion versionGreaterThanOrEqualTo:@"8"]) { 122 | screenHeight = MAX([[UIScreen mainScreen] bounds].size.height, [[UIScreen mainScreen] bounds].size.width); 123 | } else { 124 | screenHeight = [[UIScreen mainScreen] bounds].size.height; 125 | } 126 | 127 | if (screenHeight == 480) { 128 | return Screen3Dot5inch; 129 | } else if(screenHeight == 568) { 130 | return Screen4inch; 131 | } else if(screenHeight == 667) { 132 | return Screen4Dot7inch; 133 | } else if(screenHeight == 736) { 134 | return Screen5Dot5inch; 135 | } else if (screenHeight == 812) { 136 | return Screen5Dot8inch; 137 | } else 138 | return UnknownSize; 139 | } 140 | 141 | + (DeviceSize)deviceSize 142 | { 143 | DeviceSize deviceSize = [self resolutionSize]; 144 | if ([self isZoomed]) { 145 | if (deviceSize == Screen4inch) { 146 | deviceSize = Screen4Dot7inch; 147 | } else if (deviceSize == Screen4Dot7inch) { 148 | deviceSize = Screen5Dot5inch; 149 | } 150 | } 151 | return deviceSize; 152 | } 153 | 154 | + (NSString *)deviceSizeName:(DeviceSize)deviceSize 155 | { 156 | return @{ 157 | @(UnknownSize) : @"Unknown Size", 158 | @(Screen3Dot5inch) : @"3.5 inch", 159 | @(Screen4inch) : @"4 inch", 160 | @(Screen4Dot7inch) : @"4.7 inch", 161 | @(Screen5Dot5inch) : @"5.5 inch", 162 | @(Screen5Dot8inch) : @"5.8 inch", 163 | }[@(deviceSize)]; 164 | } 165 | 166 | + (NSString *)deviceNameString 167 | { 168 | return [SDiOSVersion deviceNameForVersion:[SDiOSVersion deviceVersion]]; 169 | } 170 | 171 | + (NSString *)deviceNameForVersion:(DeviceVersion)deviceVersion 172 | { 173 | return @{ 174 | @(iPhone4) : @"iPhone 4", 175 | @(iPhone4S) : @"iPhone 4S", 176 | @(iPhone5) : @"iPhone 5", 177 | @(iPhone5C) : @"iPhone 5C", 178 | @(iPhone5S) : @"iPhone 5S", 179 | @(iPhone6) : @"iPhone 6", 180 | @(iPhone6Plus) : @"iPhone 6 Plus", 181 | @(iPhone6S) : @"iPhone 6S", 182 | @(iPhone6SPlus) : @"iPhone 6S Plus", 183 | @(iPhone7) : @"iPhone 7", 184 | @(iPhone7Plus) : @"iPhone 7 Plus", 185 | @(iPhone8) : @"iPhone 8", 186 | @(iPhone8Plus) : @"iPhone 8 Plus", 187 | @(iPhoneX) : @"iPhone X", 188 | @(iPhoneSE) : @"iPhone SE", 189 | 190 | @(iPad1) : @"iPad 1", 191 | @(iPad2) : @"iPad 2", 192 | @(iPadMini) : @"iPad Mini", 193 | @(iPad3) : @"iPad 3", 194 | @(iPad4) : @"iPad 4", 195 | @(iPadAir) : @"iPad Air", 196 | @(iPadMini2) : @"iPad Mini 2", 197 | @(iPadAir2) : @"iPad Air 2", 198 | @(iPadMini3) : @"iPad Mini 3", 199 | @(iPadMini4) : @"iPad Mini 4", 200 | @(iPadPro9Dot7Inch) : @"iPad Pro 9.7 inch", 201 | @(iPadPro12Dot9Inch) : @"iPad Pro 12.9 inch", 202 | @(iPad5) : @"iPad 5", 203 | @(iPadPro10Dot5Inch) : @"iPad Pro 10.5 inch", 204 | @(iPadPro12Dot9Inch2Gen): @"iPad Pro 12.9 inch", 205 | 206 | @(iPodTouch1Gen) : @"iPod Touch 1st Gen", 207 | @(iPodTouch2Gen) : @"iPod Touch 2nd Gen", 208 | @(iPodTouch3Gen) : @"iPod Touch 3rd Gen", 209 | @(iPodTouch4Gen) : @"iPod Touch 4th Gen", 210 | @(iPodTouch5Gen) : @"iPod Touch 5th Gen", 211 | @(iPodTouch6Gen) : @"iPod Touch 6th Gen", 212 | 213 | @(Simulator) : @"Simulator", 214 | @(UnknownDevice) : @"Unknown Device" 215 | }[@(deviceVersion)]; 216 | } 217 | 218 | + (BOOL)isZoomed 219 | { 220 | if ([self resolutionSize] == Screen4inch && [UIScreen mainScreen].nativeScale > 2) { 221 | return YES; 222 | }else if ([self resolutionSize] == Screen4Dot7inch && [UIScreen mainScreen].scale == 3){ 223 | return YES; 224 | } 225 | 226 | return NO; 227 | } 228 | 229 | + (BOOL)versionEqualTo:(NSString *)version 230 | { 231 | return ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] == NSOrderedSame); 232 | } 233 | 234 | + (BOOL)versionGreaterThan:(NSString *)version 235 | { 236 | return ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] == NSOrderedDescending); 237 | } 238 | 239 | + (BOOL)versionGreaterThanOrEqualTo:(NSString *)version 240 | { 241 | return ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] != NSOrderedAscending); 242 | } 243 | 244 | + (BOOL)versionLessThan:(NSString *)version 245 | { 246 | return ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] == NSOrderedAscending); 247 | } 248 | 249 | + (BOOL)versionLessThanOrEqualTo:(NSString *)version 250 | { 251 | return ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] != NSOrderedDescending); 252 | } 253 | 254 | @end 255 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | SDVersion 3 |

4 | 5 |

6 | 7 | Gitter 9 | 10 | 11 | Platform 13 | 14 | 15 | Cocoapods Version 17 | 18 |

19 | 20 | Lightweight Cocoa library for detecting the running device's model and screen size. 21 | 22 | With the newer  devices, developers have more work to do. This library simplifies their job by allowing them to get information about the running device and easily target the ones they want. 23 | 24 | SDVersion supports iOS, watchOS, tvOS, and macOS. Browse through the implementation of each platform using the links below. 25 | 26 |

27 | 28 | iOS 29 | 30 | 31 | Mac 32 | 33 |

34 | 35 | ## How it works 36 | 37 | ```objective-c 38 | // Check for device model 39 | if ([SDVersion deviceVersion] == iPhone7) 40 | NSLog(@"You got the iPhone 7. Sweet 🍭!"); 41 | else if ([SDVersion deviceVersion] == iPhone6SPlus) 42 | NSLog(@"iPhone 6S Plus? Bigger is better!"); 43 | else if ([SDVersion deviceVersion] == iPadAir2) 44 | NSLog(@"You own an iPad Air 2 🌀!"); 45 | 46 | // Check for device screen size 47 | if ([SDVersion deviceSize] == Screen4Dot7inch) 48 | NSLog(@"Your screen is 4.7 inches"); 49 | 50 | // Check if screen is in zoom mode 51 | if ([SDVersion isZoomed]) 52 | NSLog(@"Your device is in Zoom Mode 🔎"); 53 | 54 | // Get device name 55 | NSLog(@"%@", [SDVersion deviceNameString]); 56 | /* e.g: Outputs 'iPhone 7 Plus' */ 57 | 58 | // Check for iOS Version 59 | if ([SDVersion versionGreaterThanOrEqualTo:@"10"]) 60 | NSLog(@"You are running iOS 10 or above!"); 61 | ``` 62 | 63 |

64 | 65 | SDVersion Swift
66 |
67 | Swift Version: 68 |

69 | 70 | 71 | ```swift 72 | // Check for device model 73 | if SDiOSVersion.deviceVersion() == .iPhone7 { 74 | print("You got the iPhone 7. Sweet 🍭!") 75 | } 76 | 77 | // Check for device screen size 78 | if SDiOSVersion.deviceSize() == .Screen3Dot5inch { 79 | print("Still on 3.5 inches!? 😮") 80 | } 81 | 82 | // Get device name 83 | print(SDiOSVersion.deviceNameString()) 84 | /* e.g: Outputs 'iPhone 7 Plus' */ 85 | 86 | // Check for iOS Version 87 | if SDiOSVersion.versionGreaterThan("10") { 88 | print("You are running iOS 10 or above!") 89 | } 90 | ``` 91 | 92 | ## Add to your project 93 | 94 | There are 2 ways you can add SDVersion to your project: 95 | 96 | ### Manual installation 97 | 98 | 99 | Simply import the 'SDVersion' into your project then import the following in the class you want to use it: 100 | ```objective-c 101 | #import "SDVersion.h" 102 | ``` 103 | In Swift, you need to import in the bridging header the specific library version, not the library wrapper: 104 | ```objective-c 105 | #import "SDiOSVersion.h" // Or SDMacVersion.h 106 | ``` 107 | 108 | ### Installation with CocoaPods 109 | 110 | CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like SDVersion in your projects. See the "[Getting Started](http://guides.cocoapods.org/syntax/podfile.html)" guide for more information. 111 | 112 | ### Podfile 113 | ```ruby 114 | pod 'SDVersion' 115 | ``` 116 | 117 | 118 | ## iOS 119 | 120 | ### Available methods 121 | ```objective-c 122 | + (DeviceVersion)deviceVersion; 123 | + (NSString *)deviceNameForVersion:(DeviceVersion)deviceVersion; 124 | + (DeviceSize)resolutionSize; 125 | + (DeviceSize)deviceSize; 126 | + (NSString *)deviceSizeName:(DeviceSize)deviceSize; 127 | + (NSString *)deviceNameString; 128 | + (BOOL)isZoomed; 129 | ``` 130 | ### Targetable models 131 | iPhone4 132 | iPhone4S 133 | iPhone5 134 | iPhone5C 135 | iPhone5S 136 | iPhone6 137 | iPhone6Plus 138 | iPhone6S 139 | iPhone6SPlus 140 | iPhoneSE 141 | iPhone7 142 | iPhone7Plus 143 | 144 | iPad1 145 | iPad2 146 | iPadMini 147 | iPad3 148 | iPad4 149 | iPadAir 150 | iPadMini2 151 | iPadAir2 152 | iPadMini3 153 | iPadMini4 154 | iPadPro9Dot7Inch 155 | iPadPro12Dot9Inch 156 | iPad5 157 | 158 | iPodTouch1Gen 159 | iPodTouch2Gen 160 | iPodTouch3Gen 161 | iPodTouch4Gen 162 | iPodTouch5Gen 163 | iPodTouch6Gen 164 | 165 | Simulator 166 | ### Targetable screen sizes 167 | Screen3Dot5inch 168 | Screen4inch 169 | Screen4Dot7inch 170 | Screen5Dot5inch 171 | ### Available iOS Version Finder methods 172 | ```objective-c 173 | + (BOOL)versionEqualTo:(NSString *)version; 174 | + (BOOL)versionGreaterThan:(NSString *)version; 175 | + (BOOL)versionGreaterThanOrEqualTo:(NSString *)version; 176 | + (BOOL)versionLessThan:(NSString *)version; 177 | + (BOOL)versionLessThanOrEqualTo:(NSString *)version; 178 | ``` 179 | 180 | ### Helpers 181 | ```objective-c 182 | NSLog(@"%@", [SDVersion deviceVersionName:[SDVersion deviceVersion]]); 183 | /* e.g: Outputs 'iPad Air 2' */ 184 | 185 | NSLog(@"%@", [SDVersion deviceSizeName:[SDVersion deviceSize]]); 186 | /* e.g: Outputs '4.7 inch' */ 187 | ``` 188 | Or in Swift: 189 | ```swift 190 | let deviceVersionName = SDiOSVersion.deviceVersionName(SDiOSVersion.deviceVersion()) 191 | let deviceSizeName = SDiOSVersion.deviceSizeName(SDiOSVersion.deviceSize()) 192 | ``` 193 | 194 | ## watchOS 195 | 196 | ### Available methods 197 | ```objective-c 198 | + (DeviceVersion)deviceVersion; 199 | + (DeviceSize)deviceSize; 200 | + (NSString *)deviceName; 201 | ``` 202 | ### Targetable models 203 | Apple Watch 38mm 204 | Apple Watch 42mm 205 | Apple Watch 38mm Series 1 206 | Apple Watch 42mm Series 1 207 | Apple Watch 38mm Series 2 208 | Apple Watch 42mm Series 2 209 | 210 | Simulator 211 | 212 | ### Targetable screen sizes 213 | Screen38mm 214 | Screen42mm 215 | 216 | ### Available watchOS Version Finder methods 217 | ```objective-c 218 | + (BOOL)versionEqualTo:(NSString *)version; 219 | + (BOOL)versionGreaterThan:(NSString *)version; 220 | + (BOOL)versionGreaterThanOrEqualTo:(NSString *)version; 221 | + (BOOL)versionLessThan:(NSString *)version; 222 | + (BOOL)versionLessThanOrEqualTo:(NSString *)version; 223 | ``` 224 | 225 | ### Helpers 226 | ```objective-c 227 | NSLog(@"%@", [SDVersion deviceVersionName:[SDVersion deviceVersion]]); 228 | /* e.g: Outputs 'Apple Watch 42mm' */ 229 | 230 | NSLog(@"%@", [SDVersion deviceSizeName:[SDVersion deviceSize]]); 231 | /* e.g: Outputs '42mm' */ 232 | ``` 233 | 234 | ## tvOS 235 | 236 | ### Available methods 237 | ```objective-c 238 | + (DeviceVersion)deviceVersion; 239 | + (NSString *)deviceName; 240 | ``` 241 | ### Targetable models 242 | Apple TV (4th Generation) 243 | 244 | Simulator 245 | 246 | ### Available tvOS Version Finder methods 247 | ```objective-c 248 | + (BOOL)versionEqualTo:(NSString *)version; 249 | + (BOOL)versionGreaterThan:(NSString *)version; 250 | + (BOOL)versionGreaterThanOrEqualTo:(NSString *)version; 251 | + (BOOL)versionLessThan:(NSString *)version; 252 | + (BOOL)versionLessThanOrEqualTo:(NSString *)version; 253 | ``` 254 | 255 | ### Helpers 256 | ```objective-c 257 | NSLog(@"%@", [SDVersion deviceVersionName:[SDVersion deviceVersion]]); 258 | /* e.g: Outputs 'Apple TV (4th Generation)' */ 259 | ``` 260 | 261 | ## Mac OS 262 | ```objective-c 263 | // Check for device model 264 | if ([SDVersion deviceVersion] == DeviceVersionIMac) 265 | NSLog(@"So you have a iMac? 💻"); 266 | else if ([SDVersion deviceVersion] == DeviceVersionMacBookPro) 267 | NSLog(@"You're using a MacBook Pro."); 268 | 269 | // Check for screen size 270 | if ([SDVersion deviceSize] == Mac27Inch) 271 | NSLog(@"Whoah! You got a big ass 27 inch screen."); 272 | else if ([SDVersion deviceSize] == Mac21Dot5Inch) 273 | NSLog(@"You have a 21.5 inch screen."); 274 | 275 | // Check for screen resolution 276 | if ([SDVersion deviceScreenResolution] == DeviceScreenRetina) 277 | NSLog(@"Nice retina screen!"); 278 | 279 | // Get screen resolution in pixels 280 | NSLog(@"%@", [SDVersion deviceScreenResolutionName:[SDVersion deviceScreenResolution]]); 281 | /* e.g: Outputs '{2880, 1800}' */ 282 | 283 | // Check OSX Version (pass the minor version) 284 | if([SDVersion versionGreaterThanOrEqualTo:@"11"]) 285 | NSLog(@"Looks like you are running OSX 10.11 El Capitan or 🆙."); 286 | ``` 287 | 288 | ### Available methods 289 | ```objective-c 290 | + (DeviceVersion)deviceVersion; 291 | + (NSString *)deviceVersionString; 292 | + (DeviceSize)deviceSize; 293 | + (NSSize)deviceScreenResolutionPixelSize; 294 | + (DeviceScreenResolution)deviceScreenResolution; 295 | ``` 296 | ### Targetable models 297 | DeviceVersionIMac 298 | DeviceVersionMacMini 299 | DeviceVersionMacPro 300 | DeviceVersionMacBook 301 | DeviceVersionMacBookAir 302 | DeviceVersionMacBookPro 303 | DeviceVersionXserve 304 | 305 | ### Targetable screen sizes 306 | Mac27Inch 307 | Mac24Inch 308 | Mac21Dot5Inch 309 | Mac20Inch 310 | Mac17Inch 311 | Mac15Inch 312 | Mac13Inch 313 | Mac12Inch 314 | Mac11Inch 315 | 316 | ### Targetable screen resolutions 317 | DeviceScreenRetina, 318 | DeviceScreenNoRetina 319 | 320 | ### Available OSX Version Finder methods 321 | ```objective-c 322 | + (BOOL)versionEqualTo:(NSString *)version; 323 | + (BOOL)versionGreaterThan:(NSString *)version; 324 | + (BOOL)versionGreaterThanOrEqualTo:(NSString *)version; 325 | + (BOOL)versionLessThan:(NSString *)version; 326 | + (BOOL)versionLessThanOrEqualTo:(NSString *)version; 327 | /* 'v' must be the minor OS Version. e.g: OSX 10.9 - 'v' is 9 */ 328 | ``` 329 | ### Helpers 330 | ```objective-c 331 | NSLog(@"%@", [SDVersion deviceSizeName:[SDVersion deviceSize]]); 332 | /* e.g: Outputs '15 inch' */ 333 | 334 | NSLog(@"%@",[SDVersion deviceScreenResolutionName:[SDVersion deviceScreenResolution]]) 335 | /* e.g: Outputs '{2880, 1800}' */ 336 | ``` 337 | 338 | ## Used by 339 | 340 |

341 | Who uses SDVersion 342 |

343 | 344 | ## License 345 | Usage is provided under the [MIT License](http://opensource.org/licenses/mit-license.php). See LICENSE for the full details. 346 | -------------------------------------------------------------------------------- /SDVersion-Demo/SDVersion.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0EA6B9761E6AB69300315612 /* iOSVersionTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EA6B9751E6AB69300315612 /* iOSVersionTests.swift */; }; 11 | 0EA6B9791E6AB6F600315612 /* MacVersionTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EA6B9781E6AB6F600315612 /* MacVersionTests.swift */; }; 12 | 1FC73D041D244B87005F81DA /* Interface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1FC73D021D244B87005F81DA /* Interface.storyboard */; }; 13 | 1FC73D061D244B87005F81DA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1FC73D051D244B87005F81DA /* Assets.xcassets */; }; 14 | 1FC73D0D1D244B87005F81DA /* SDwatchOSVersion Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 1FC73D0C1D244B87005F81DA /* SDwatchOSVersion Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 15 | 1FC73D131D244B87005F81DA /* InterfaceController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1FC73D121D244B87005F81DA /* InterfaceController.m */; }; 16 | 1FC73D161D244B87005F81DA /* ExtensionDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1FC73D151D244B87005F81DA /* ExtensionDelegate.m */; }; 17 | 1FC73D181D244B87005F81DA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1FC73D171D244B87005F81DA /* Assets.xcassets */; }; 18 | 1FC73D1C1D244B87005F81DA /* SDwatchOSVersion.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 1FC73D001D244B87005F81DA /* SDwatchOSVersion.app */; }; 19 | 1FC73D291D244C93005F81DA /* SDwatchOSVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 1FC73D281D244C93005F81DA /* SDwatchOSVersion.m */; }; 20 | 1FE53CC31D3FF490005739A5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1FE53CC21D3FF490005739A5 /* main.m */; }; 21 | 1FE53CC61D3FF490005739A5 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1FE53CC51D3FF490005739A5 /* AppDelegate.m */; }; 22 | 1FE53CC91D3FF490005739A5 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1FE53CC81D3FF490005739A5 /* ViewController.m */; }; 23 | 1FE53CCC1D3FF490005739A5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1FE53CCA1D3FF490005739A5 /* Main.storyboard */; }; 24 | 1FE53CCE1D3FF490005739A5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1FE53CCD1D3FF490005739A5 /* Assets.xcassets */; }; 25 | 1FE53CD91D3FF491005739A5 /* SDtvOSVersionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1FE53CD81D3FF491005739A5 /* SDtvOSVersionTests.m */; }; 26 | 1FE53CE11D3FF4A3005739A5 /* SDtvOSVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 1FE53CB91D3FF468005739A5 /* SDtvOSVersion.m */; }; 27 | 9A6DB5E91B8E82D00065EA11 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A6DB5DF1B8E82D00065EA11 /* AppDelegate.m */; }; 28 | 9A6DB5EA1B8E82D00065EA11 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9A6DB5E01B8E82D00065EA11 /* LaunchScreen.xib */; }; 29 | 9A6DB5EB1B8E82D00065EA11 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9A6DB5E21B8E82D00065EA11 /* Main.storyboard */; }; 30 | 9A6DB5EC1B8E82D00065EA11 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9A6DB5E41B8E82D00065EA11 /* Images.xcassets */; }; 31 | 9A6DB5EE1B8E82D00065EA11 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A6DB5E61B8E82D00065EA11 /* main.m */; }; 32 | 9A6DB5EF1B8E82D00065EA11 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A6DB5E81B8E82D00065EA11 /* ViewController.m */; }; 33 | 9A6DB5F41B8E82E00065EA11 /* SDiOSVersionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A6DB5F21B8E82E00065EA11 /* SDiOSVersionTests.m */; }; 34 | 9A95DA991B853CFF00F96CB5 /* SDiOSVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A95DA951B853CFF00F96CB5 /* SDiOSVersion.m */; }; 35 | 9A95DA9C1B853CFF00F96CB5 /* SDMacVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A95DA971B853CFF00F96CB5 /* SDMacVersion.m */; }; 36 | E2D9751E1B8265DF00675936 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D9751D1B8265DF00675936 /* AppDelegate.m */; }; 37 | E2D975201B8265DF00675936 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D9751F1B8265DF00675936 /* main.m */; }; 38 | E2D975231B8265DF00675936 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D975221B8265DF00675936 /* ViewController.m */; }; 39 | E2D975251B8265DF00675936 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E2D975241B8265DF00675936 /* Images.xcassets */; }; 40 | E2D975281B8265DF00675936 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E2D975261B8265DF00675936 /* Main.storyboard */; }; 41 | E2D975341B8265E000675936 /* SDMacVersionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D975331B8265E000675936 /* SDMacVersionTests.m */; }; 42 | /* End PBXBuildFile section */ 43 | 44 | /* Begin PBXContainerItemProxy section */ 45 | 1FC73D0E1D244B87005F81DA /* PBXContainerItemProxy */ = { 46 | isa = PBXContainerItemProxy; 47 | containerPortal = 9AA6624019BFABFC0055042F /* Project object */; 48 | proxyType = 1; 49 | remoteGlobalIDString = 1FC73D0B1D244B87005F81DA; 50 | remoteInfo = "SDwatchOSVersion Extension"; 51 | }; 52 | 1FC73D1A1D244B87005F81DA /* PBXContainerItemProxy */ = { 53 | isa = PBXContainerItemProxy; 54 | containerPortal = 9AA6624019BFABFC0055042F /* Project object */; 55 | proxyType = 1; 56 | remoteGlobalIDString = 1FC73CFF1D244B87005F81DA; 57 | remoteInfo = SDwatchOSVersion; 58 | }; 59 | 1FE53CD51D3FF491005739A5 /* PBXContainerItemProxy */ = { 60 | isa = PBXContainerItemProxy; 61 | containerPortal = 9AA6624019BFABFC0055042F /* Project object */; 62 | proxyType = 1; 63 | remoteGlobalIDString = 1FE53CBE1D3FF490005739A5; 64 | remoteInfo = SDtvOSVersion; 65 | }; 66 | 9AA6626219BFABFC0055042F /* PBXContainerItemProxy */ = { 67 | isa = PBXContainerItemProxy; 68 | containerPortal = 9AA6624019BFABFC0055042F /* Project object */; 69 | proxyType = 1; 70 | remoteGlobalIDString = 9AA6624719BFABFC0055042F; 71 | remoteInfo = SDiOSVersion; 72 | }; 73 | E2D9752E1B8265DF00675936 /* PBXContainerItemProxy */ = { 74 | isa = PBXContainerItemProxy; 75 | containerPortal = 9AA6624019BFABFC0055042F /* Project object */; 76 | proxyType = 1; 77 | remoteGlobalIDString = E2D975171B8265DF00675936; 78 | remoteInfo = SDMacVersion; 79 | }; 80 | /* End PBXContainerItemProxy section */ 81 | 82 | /* Begin PBXCopyFilesBuildPhase section */ 83 | 1FC73D221D244B87005F81DA /* Embed App Extensions */ = { 84 | isa = PBXCopyFilesBuildPhase; 85 | buildActionMask = 2147483647; 86 | dstPath = ""; 87 | dstSubfolderSpec = 13; 88 | files = ( 89 | 1FC73D0D1D244B87005F81DA /* SDwatchOSVersion Extension.appex in Embed App Extensions */, 90 | ); 91 | name = "Embed App Extensions"; 92 | runOnlyForDeploymentPostprocessing = 0; 93 | }; 94 | 1FC73D241D244B87005F81DA /* Embed Watch Content */ = { 95 | isa = PBXCopyFilesBuildPhase; 96 | buildActionMask = 2147483647; 97 | dstPath = "$(CONTENTS_FOLDER_PATH)/Watch"; 98 | dstSubfolderSpec = 16; 99 | files = ( 100 | 1FC73D1C1D244B87005F81DA /* SDwatchOSVersion.app in Embed Watch Content */, 101 | ); 102 | name = "Embed Watch Content"; 103 | runOnlyForDeploymentPostprocessing = 0; 104 | }; 105 | /* End PBXCopyFilesBuildPhase section */ 106 | 107 | /* Begin PBXFileReference section */ 108 | 0EA6B9741E6AB69300315612 /* SDiOSVersionTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SDiOSVersionTests-Bridging-Header.h"; sourceTree = ""; }; 109 | 0EA6B9751E6AB69300315612 /* iOSVersionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = iOSVersionTests.swift; sourceTree = ""; }; 110 | 0EA6B9771E6AB6F500315612 /* SDMacVersionTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SDMacVersionTests-Bridging-Header.h"; sourceTree = ""; }; 111 | 0EA6B9781E6AB6F600315612 /* MacVersionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MacVersionTests.swift; sourceTree = ""; }; 112 | 1FC73D001D244B87005F81DA /* SDwatchOSVersion.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SDwatchOSVersion.app; sourceTree = BUILT_PRODUCTS_DIR; }; 113 | 1FC73D031D244B87005F81DA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Interface.storyboard; sourceTree = ""; }; 114 | 1FC73D051D244B87005F81DA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 115 | 1FC73D071D244B87005F81DA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 116 | 1FC73D0C1D244B87005F81DA /* SDwatchOSVersion Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "SDwatchOSVersion Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; 117 | 1FC73D111D244B87005F81DA /* InterfaceController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InterfaceController.h; sourceTree = ""; }; 118 | 1FC73D121D244B87005F81DA /* InterfaceController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InterfaceController.m; sourceTree = ""; }; 119 | 1FC73D141D244B87005F81DA /* ExtensionDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ExtensionDelegate.h; sourceTree = ""; }; 120 | 1FC73D151D244B87005F81DA /* ExtensionDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ExtensionDelegate.m; sourceTree = ""; }; 121 | 1FC73D171D244B87005F81DA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 122 | 1FC73D191D244B87005F81DA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 123 | 1FC73D271D244C93005F81DA /* SDwatchOSVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDwatchOSVersion.h; path = SDwatchOSVersion/SDwatchOSVersion.h; sourceTree = ""; }; 124 | 1FC73D281D244C93005F81DA /* SDwatchOSVersion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDwatchOSVersion.m; path = SDwatchOSVersion/SDwatchOSVersion.m; sourceTree = ""; }; 125 | 1FE53CB81D3FF468005739A5 /* SDtvOSVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDtvOSVersion.h; path = SDtvOSVersion/SDtvOSVersion.h; sourceTree = ""; }; 126 | 1FE53CB91D3FF468005739A5 /* SDtvOSVersion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDtvOSVersion.m; path = SDtvOSVersion/SDtvOSVersion.m; sourceTree = ""; }; 127 | 1FE53CBF1D3FF490005739A5 /* SDtvOSVersion.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SDtvOSVersion.app; sourceTree = BUILT_PRODUCTS_DIR; }; 128 | 1FE53CC21D3FF490005739A5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 129 | 1FE53CC41D3FF490005739A5 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 130 | 1FE53CC51D3FF490005739A5 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 131 | 1FE53CC71D3FF490005739A5 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 132 | 1FE53CC81D3FF490005739A5 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 133 | 1FE53CCB1D3FF490005739A5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 134 | 1FE53CCD1D3FF490005739A5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 135 | 1FE53CCF1D3FF490005739A5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 136 | 1FE53CD41D3FF491005739A5 /* SDtvOSVersionTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SDtvOSVersionTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 137 | 1FE53CD81D3FF491005739A5 /* SDtvOSVersionTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SDtvOSVersionTests.m; sourceTree = ""; }; 138 | 1FE53CDA1D3FF491005739A5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 139 | 9A6DB5DE1B8E82D00065EA11 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 140 | 9A6DB5DF1B8E82D00065EA11 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 141 | 9A6DB5E11B8E82D00065EA11 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 142 | 9A6DB5E31B8E82D00065EA11 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 143 | 9A6DB5E41B8E82D00065EA11 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 144 | 9A6DB5E51B8E82D00065EA11 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 145 | 9A6DB5E61B8E82D00065EA11 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 146 | 9A6DB5E71B8E82D00065EA11 /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 147 | 9A6DB5E81B8E82D00065EA11 /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 148 | 9A6DB5F11B8E82E00065EA11 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 149 | 9A6DB5F21B8E82E00065EA11 /* SDiOSVersionTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDiOSVersionTests.m; sourceTree = ""; }; 150 | 9A95DA941B853CFF00F96CB5 /* SDiOSVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDiOSVersion.h; path = SDiOSVersion/SDiOSVersion.h; sourceTree = ""; }; 151 | 9A95DA951B853CFF00F96CB5 /* SDiOSVersion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDiOSVersion.m; path = SDiOSVersion/SDiOSVersion.m; sourceTree = ""; }; 152 | 9A95DA961B853CFF00F96CB5 /* SDMacVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDMacVersion.h; path = SDMacVersion/SDMacVersion.h; sourceTree = ""; }; 153 | 9A95DA971B853CFF00F96CB5 /* SDMacVersion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDMacVersion.m; path = SDMacVersion/SDMacVersion.m; sourceTree = ""; }; 154 | 9A95DA981B853CFF00F96CB5 /* SDVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDVersion.h; sourceTree = ""; }; 155 | 9AA6624819BFABFC0055042F /* SDiOSVersion.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SDiOSVersion.app; sourceTree = BUILT_PRODUCTS_DIR; }; 156 | 9AA6626119BFABFC0055042F /* SDiOSVersionTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SDiOSVersionTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 157 | E2D975181B8265DF00675936 /* SDMacVersion.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SDMacVersion.app; sourceTree = BUILT_PRODUCTS_DIR; }; 158 | E2D9751B1B8265DF00675936 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 159 | E2D9751C1B8265DF00675936 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 160 | E2D9751D1B8265DF00675936 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 161 | E2D9751F1B8265DF00675936 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 162 | E2D975211B8265DF00675936 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 163 | E2D975221B8265DF00675936 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 164 | E2D975241B8265DF00675936 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 165 | E2D975271B8265DF00675936 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 166 | E2D9752D1B8265DF00675936 /* SDMacVersionTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SDMacVersionTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 167 | E2D975321B8265E000675936 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 168 | E2D975331B8265E000675936 /* SDMacVersionTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SDMacVersionTests.m; sourceTree = ""; }; 169 | /* End PBXFileReference section */ 170 | 171 | /* Begin PBXFrameworksBuildPhase section */ 172 | 1FC73D091D244B87005F81DA /* Frameworks */ = { 173 | isa = PBXFrameworksBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | runOnlyForDeploymentPostprocessing = 0; 178 | }; 179 | 1FE53CBC1D3FF490005739A5 /* Frameworks */ = { 180 | isa = PBXFrameworksBuildPhase; 181 | buildActionMask = 2147483647; 182 | files = ( 183 | ); 184 | runOnlyForDeploymentPostprocessing = 0; 185 | }; 186 | 1FE53CD11D3FF491005739A5 /* Frameworks */ = { 187 | isa = PBXFrameworksBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | runOnlyForDeploymentPostprocessing = 0; 192 | }; 193 | 9AA6624519BFABFC0055042F /* Frameworks */ = { 194 | isa = PBXFrameworksBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | ); 198 | runOnlyForDeploymentPostprocessing = 0; 199 | }; 200 | 9AA6625E19BFABFC0055042F /* Frameworks */ = { 201 | isa = PBXFrameworksBuildPhase; 202 | buildActionMask = 2147483647; 203 | files = ( 204 | ); 205 | runOnlyForDeploymentPostprocessing = 0; 206 | }; 207 | E2D975151B8265DF00675936 /* Frameworks */ = { 208 | isa = PBXFrameworksBuildPhase; 209 | buildActionMask = 2147483647; 210 | files = ( 211 | ); 212 | runOnlyForDeploymentPostprocessing = 0; 213 | }; 214 | E2D9752A1B8265DF00675936 /* Frameworks */ = { 215 | isa = PBXFrameworksBuildPhase; 216 | buildActionMask = 2147483647; 217 | files = ( 218 | ); 219 | runOnlyForDeploymentPostprocessing = 0; 220 | }; 221 | /* End PBXFrameworksBuildPhase section */ 222 | 223 | /* Begin PBXGroup section */ 224 | 1FC73D011D244B87005F81DA /* SDwatchOSVersion */ = { 225 | isa = PBXGroup; 226 | children = ( 227 | 1FC73D021D244B87005F81DA /* Interface.storyboard */, 228 | 1FC73D051D244B87005F81DA /* Assets.xcassets */, 229 | 1FC73D071D244B87005F81DA /* Info.plist */, 230 | ); 231 | path = SDwatchOSVersion; 232 | sourceTree = ""; 233 | }; 234 | 1FC73D101D244B87005F81DA /* SDwatchOSVersion Extension */ = { 235 | isa = PBXGroup; 236 | children = ( 237 | 1FC73D111D244B87005F81DA /* InterfaceController.h */, 238 | 1FC73D121D244B87005F81DA /* InterfaceController.m */, 239 | 1FC73D141D244B87005F81DA /* ExtensionDelegate.h */, 240 | 1FC73D151D244B87005F81DA /* ExtensionDelegate.m */, 241 | 1FC73D171D244B87005F81DA /* Assets.xcassets */, 242 | 1FC73D191D244B87005F81DA /* Info.plist */, 243 | ); 244 | path = "SDwatchOSVersion Extension"; 245 | sourceTree = ""; 246 | }; 247 | 1FE53CC01D3FF490005739A5 /* SDtvOSVersion */ = { 248 | isa = PBXGroup; 249 | children = ( 250 | 1FE53CC41D3FF490005739A5 /* AppDelegate.h */, 251 | 1FE53CC51D3FF490005739A5 /* AppDelegate.m */, 252 | 1FE53CC71D3FF490005739A5 /* ViewController.h */, 253 | 1FE53CC81D3FF490005739A5 /* ViewController.m */, 254 | 1FE53CCA1D3FF490005739A5 /* Main.storyboard */, 255 | 1FE53CCD1D3FF490005739A5 /* Assets.xcassets */, 256 | 1FE53CCF1D3FF490005739A5 /* Info.plist */, 257 | 1FE53CC11D3FF490005739A5 /* Supporting Files */, 258 | ); 259 | path = SDtvOSVersion; 260 | sourceTree = ""; 261 | }; 262 | 1FE53CC11D3FF490005739A5 /* Supporting Files */ = { 263 | isa = PBXGroup; 264 | children = ( 265 | 1FE53CC21D3FF490005739A5 /* main.m */, 266 | ); 267 | name = "Supporting Files"; 268 | sourceTree = ""; 269 | }; 270 | 1FE53CD71D3FF491005739A5 /* SDtvOSVersionTests */ = { 271 | isa = PBXGroup; 272 | children = ( 273 | 1FE53CD81D3FF491005739A5 /* SDtvOSVersionTests.m */, 274 | 1FE53CDA1D3FF491005739A5 /* Info.plist */, 275 | ); 276 | path = SDtvOSVersionTests; 277 | sourceTree = ""; 278 | }; 279 | 9A6DB5DD1B8E82D00065EA11 /* SDiOSVersion */ = { 280 | isa = PBXGroup; 281 | children = ( 282 | 9A6DB5DE1B8E82D00065EA11 /* AppDelegate.h */, 283 | 9A6DB5DF1B8E82D00065EA11 /* AppDelegate.m */, 284 | 9A6DB5E71B8E82D00065EA11 /* ViewController.h */, 285 | 9A6DB5E81B8E82D00065EA11 /* ViewController.m */, 286 | 9A6DB5E41B8E82D00065EA11 /* Images.xcassets */, 287 | 9A6DB5E01B8E82D00065EA11 /* LaunchScreen.xib */, 288 | 9A6DB5E21B8E82D00065EA11 /* Main.storyboard */, 289 | 9A6DB5E61B8E82D00065EA11 /* main.m */, 290 | 9A6DB5E51B8E82D00065EA11 /* Info.plist */, 291 | ); 292 | path = SDiOSVersion; 293 | sourceTree = ""; 294 | }; 295 | 9A6DB5F01B8E82E00065EA11 /* SDiOSVersionTests */ = { 296 | isa = PBXGroup; 297 | children = ( 298 | 9A6DB5F11B8E82E00065EA11 /* Info.plist */, 299 | 9A6DB5F21B8E82E00065EA11 /* SDiOSVersionTests.m */, 300 | 0EA6B9751E6AB69300315612 /* iOSVersionTests.swift */, 301 | 0EA6B9741E6AB69300315612 /* SDiOSVersionTests-Bridging-Header.h */, 302 | ); 303 | path = SDiOSVersionTests; 304 | sourceTree = ""; 305 | }; 306 | 9A95DA931B853CFF00F96CB5 /* SDVersion */ = { 307 | isa = PBXGroup; 308 | children = ( 309 | 9A95DA981B853CFF00F96CB5 /* SDVersion.h */, 310 | 9A95DA941B853CFF00F96CB5 /* SDiOSVersion.h */, 311 | 9A95DA951B853CFF00F96CB5 /* SDiOSVersion.m */, 312 | 9A95DA961B853CFF00F96CB5 /* SDMacVersion.h */, 313 | 9A95DA971B853CFF00F96CB5 /* SDMacVersion.m */, 314 | 1FC73D271D244C93005F81DA /* SDwatchOSVersion.h */, 315 | 1FC73D281D244C93005F81DA /* SDwatchOSVersion.m */, 316 | 1FE53CB81D3FF468005739A5 /* SDtvOSVersion.h */, 317 | 1FE53CB91D3FF468005739A5 /* SDtvOSVersion.m */, 318 | ); 319 | name = SDVersion; 320 | path = ../SDVersion; 321 | sourceTree = ""; 322 | }; 323 | 9AA6623F19BFABFC0055042F = { 324 | isa = PBXGroup; 325 | children = ( 326 | 9A95DA931B853CFF00F96CB5 /* SDVersion */, 327 | 9A6DB5DD1B8E82D00065EA11 /* SDiOSVersion */, 328 | 9A6DB5F01B8E82E00065EA11 /* SDiOSVersionTests */, 329 | E2D975191B8265DF00675936 /* SDMacVersion */, 330 | E2D975301B8265DF00675936 /* SDMacVersionTests */, 331 | 1FC73D011D244B87005F81DA /* SDwatchOSVersion */, 332 | 1FC73D101D244B87005F81DA /* SDwatchOSVersion Extension */, 333 | 1FE53CC01D3FF490005739A5 /* SDtvOSVersion */, 334 | 1FE53CD71D3FF491005739A5 /* SDtvOSVersionTests */, 335 | 9AA6624919BFABFC0055042F /* Products */, 336 | ); 337 | sourceTree = ""; 338 | }; 339 | 9AA6624919BFABFC0055042F /* Products */ = { 340 | isa = PBXGroup; 341 | children = ( 342 | 9AA6624819BFABFC0055042F /* SDiOSVersion.app */, 343 | 9AA6626119BFABFC0055042F /* SDiOSVersionTests.xctest */, 344 | E2D975181B8265DF00675936 /* SDMacVersion.app */, 345 | E2D9752D1B8265DF00675936 /* SDMacVersionTests.xctest */, 346 | 1FC73D001D244B87005F81DA /* SDwatchOSVersion.app */, 347 | 1FC73D0C1D244B87005F81DA /* SDwatchOSVersion Extension.appex */, 348 | 1FE53CBF1D3FF490005739A5 /* SDtvOSVersion.app */, 349 | 1FE53CD41D3FF491005739A5 /* SDtvOSVersionTests.xctest */, 350 | ); 351 | name = Products; 352 | sourceTree = ""; 353 | }; 354 | E2D975191B8265DF00675936 /* SDMacVersion */ = { 355 | isa = PBXGroup; 356 | children = ( 357 | E2D9751C1B8265DF00675936 /* AppDelegate.h */, 358 | E2D9751D1B8265DF00675936 /* AppDelegate.m */, 359 | E2D975211B8265DF00675936 /* ViewController.h */, 360 | E2D975221B8265DF00675936 /* ViewController.m */, 361 | E2D975261B8265DF00675936 /* Main.storyboard */, 362 | E2D975241B8265DF00675936 /* Images.xcassets */, 363 | E2D9751A1B8265DF00675936 /* Supporting Files */, 364 | ); 365 | path = SDMacVersion; 366 | sourceTree = ""; 367 | }; 368 | E2D9751A1B8265DF00675936 /* Supporting Files */ = { 369 | isa = PBXGroup; 370 | children = ( 371 | E2D9751B1B8265DF00675936 /* Info.plist */, 372 | E2D9751F1B8265DF00675936 /* main.m */, 373 | ); 374 | name = "Supporting Files"; 375 | sourceTree = ""; 376 | }; 377 | E2D975301B8265DF00675936 /* SDMacVersionTests */ = { 378 | isa = PBXGroup; 379 | children = ( 380 | E2D975331B8265E000675936 /* SDMacVersionTests.m */, 381 | E2D975311B8265E000675936 /* Supporting Files */, 382 | 0EA6B9781E6AB6F600315612 /* MacVersionTests.swift */, 383 | 0EA6B9771E6AB6F500315612 /* SDMacVersionTests-Bridging-Header.h */, 384 | ); 385 | path = SDMacVersionTests; 386 | sourceTree = ""; 387 | }; 388 | E2D975311B8265E000675936 /* Supporting Files */ = { 389 | isa = PBXGroup; 390 | children = ( 391 | E2D975321B8265E000675936 /* Info.plist */, 392 | ); 393 | name = "Supporting Files"; 394 | sourceTree = ""; 395 | }; 396 | /* End PBXGroup section */ 397 | 398 | /* Begin PBXNativeTarget section */ 399 | 1FC73CFF1D244B87005F81DA /* SDwatchOSVersion */ = { 400 | isa = PBXNativeTarget; 401 | buildConfigurationList = 1FC73D231D244B87005F81DA /* Build configuration list for PBXNativeTarget "SDwatchOSVersion" */; 402 | buildPhases = ( 403 | 1FC73CFE1D244B87005F81DA /* Resources */, 404 | 1FC73D221D244B87005F81DA /* Embed App Extensions */, 405 | ); 406 | buildRules = ( 407 | ); 408 | dependencies = ( 409 | 1FC73D0F1D244B87005F81DA /* PBXTargetDependency */, 410 | ); 411 | name = SDwatchOSVersion; 412 | productName = SDwatchOSVersion; 413 | productReference = 1FC73D001D244B87005F81DA /* SDwatchOSVersion.app */; 414 | productType = "com.apple.product-type.application.watchapp2"; 415 | }; 416 | 1FC73D0B1D244B87005F81DA /* SDwatchOSVersion Extension */ = { 417 | isa = PBXNativeTarget; 418 | buildConfigurationList = 1FC73D211D244B87005F81DA /* Build configuration list for PBXNativeTarget "SDwatchOSVersion Extension" */; 419 | buildPhases = ( 420 | 1FC73D081D244B87005F81DA /* Sources */, 421 | 1FC73D091D244B87005F81DA /* Frameworks */, 422 | 1FC73D0A1D244B87005F81DA /* Resources */, 423 | ); 424 | buildRules = ( 425 | ); 426 | dependencies = ( 427 | ); 428 | name = "SDwatchOSVersion Extension"; 429 | productName = "SDwatchOSVersion Extension"; 430 | productReference = 1FC73D0C1D244B87005F81DA /* SDwatchOSVersion Extension.appex */; 431 | productType = "com.apple.product-type.watchkit2-extension"; 432 | }; 433 | 1FE53CBE1D3FF490005739A5 /* SDtvOSVersion */ = { 434 | isa = PBXNativeTarget; 435 | buildConfigurationList = 1FE53CDB1D3FF491005739A5 /* Build configuration list for PBXNativeTarget "SDtvOSVersion" */; 436 | buildPhases = ( 437 | 1FE53CBB1D3FF490005739A5 /* Sources */, 438 | 1FE53CBC1D3FF490005739A5 /* Frameworks */, 439 | 1FE53CBD1D3FF490005739A5 /* Resources */, 440 | ); 441 | buildRules = ( 442 | ); 443 | dependencies = ( 444 | ); 445 | name = SDtvOSVersion; 446 | productName = SDtvOSVersion; 447 | productReference = 1FE53CBF1D3FF490005739A5 /* SDtvOSVersion.app */; 448 | productType = "com.apple.product-type.application"; 449 | }; 450 | 1FE53CD31D3FF491005739A5 /* SDtvOSVersionTests */ = { 451 | isa = PBXNativeTarget; 452 | buildConfigurationList = 1FE53CDE1D3FF491005739A5 /* Build configuration list for PBXNativeTarget "SDtvOSVersionTests" */; 453 | buildPhases = ( 454 | 1FE53CD01D3FF491005739A5 /* Sources */, 455 | 1FE53CD11D3FF491005739A5 /* Frameworks */, 456 | 1FE53CD21D3FF491005739A5 /* Resources */, 457 | ); 458 | buildRules = ( 459 | ); 460 | dependencies = ( 461 | 1FE53CD61D3FF491005739A5 /* PBXTargetDependency */, 462 | ); 463 | name = SDtvOSVersionTests; 464 | productName = SDtvOSVersionTests; 465 | productReference = 1FE53CD41D3FF491005739A5 /* SDtvOSVersionTests.xctest */; 466 | productType = "com.apple.product-type.bundle.unit-test"; 467 | }; 468 | 9AA6624719BFABFC0055042F /* SDiOSVersion */ = { 469 | isa = PBXNativeTarget; 470 | buildConfigurationList = 9AA6626B19BFABFC0055042F /* Build configuration list for PBXNativeTarget "SDiOSVersion" */; 471 | buildPhases = ( 472 | 9AA6624419BFABFC0055042F /* Sources */, 473 | 9AA6624519BFABFC0055042F /* Frameworks */, 474 | 9AA6624619BFABFC0055042F /* Resources */, 475 | 1FC73D241D244B87005F81DA /* Embed Watch Content */, 476 | ); 477 | buildRules = ( 478 | ); 479 | dependencies = ( 480 | 1FC73D1B1D244B87005F81DA /* PBXTargetDependency */, 481 | ); 482 | name = SDiOSVersion; 483 | productName = SDiOSVersion; 484 | productReference = 9AA6624819BFABFC0055042F /* SDiOSVersion.app */; 485 | productType = "com.apple.product-type.application"; 486 | }; 487 | 9AA6626019BFABFC0055042F /* SDiOSVersionTests */ = { 488 | isa = PBXNativeTarget; 489 | buildConfigurationList = 9AA6626E19BFABFC0055042F /* Build configuration list for PBXNativeTarget "SDiOSVersionTests" */; 490 | buildPhases = ( 491 | 9AA6625D19BFABFC0055042F /* Sources */, 492 | 9AA6625E19BFABFC0055042F /* Frameworks */, 493 | 9AA6625F19BFABFC0055042F /* Resources */, 494 | ); 495 | buildRules = ( 496 | ); 497 | dependencies = ( 498 | 9AA6626319BFABFC0055042F /* PBXTargetDependency */, 499 | ); 500 | name = SDiOSVersionTests; 501 | productName = SDiOSVersionTests; 502 | productReference = 9AA6626119BFABFC0055042F /* SDiOSVersionTests.xctest */; 503 | productType = "com.apple.product-type.bundle.unit-test"; 504 | }; 505 | E2D975171B8265DF00675936 /* SDMacVersion */ = { 506 | isa = PBXNativeTarget; 507 | buildConfigurationList = E2D975391B8265E000675936 /* Build configuration list for PBXNativeTarget "SDMacVersion" */; 508 | buildPhases = ( 509 | E2D975141B8265DF00675936 /* Sources */, 510 | E2D975151B8265DF00675936 /* Frameworks */, 511 | E2D975161B8265DF00675936 /* Resources */, 512 | ); 513 | buildRules = ( 514 | ); 515 | dependencies = ( 516 | ); 517 | name = SDMacVersion; 518 | productName = SDMacVersion; 519 | productReference = E2D975181B8265DF00675936 /* SDMacVersion.app */; 520 | productType = "com.apple.product-type.application"; 521 | }; 522 | E2D9752C1B8265DF00675936 /* SDMacVersionTests */ = { 523 | isa = PBXNativeTarget; 524 | buildConfigurationList = E2D9753A1B8265E000675936 /* Build configuration list for PBXNativeTarget "SDMacVersionTests" */; 525 | buildPhases = ( 526 | E2D975291B8265DF00675936 /* Sources */, 527 | E2D9752A1B8265DF00675936 /* Frameworks */, 528 | E2D9752B1B8265DF00675936 /* Resources */, 529 | ); 530 | buildRules = ( 531 | ); 532 | dependencies = ( 533 | E2D9752F1B8265DF00675936 /* PBXTargetDependency */, 534 | ); 535 | name = SDMacVersionTests; 536 | productName = SDMacVersionTests; 537 | productReference = E2D9752D1B8265DF00675936 /* SDMacVersionTests.xctest */; 538 | productType = "com.apple.product-type.bundle.unit-test"; 539 | }; 540 | /* End PBXNativeTarget section */ 541 | 542 | /* Begin PBXProject section */ 543 | 9AA6624019BFABFC0055042F /* Project object */ = { 544 | isa = PBXProject; 545 | attributes = { 546 | LastUpgradeCheck = 0910; 547 | ORGANIZATIONNAME = "Sebastian Dobrincu"; 548 | TargetAttributes = { 549 | 1FC73CFF1D244B87005F81DA = { 550 | CreatedOnToolsVersion = 7.3.1; 551 | }; 552 | 1FC73D0B1D244B87005F81DA = { 553 | CreatedOnToolsVersion = 7.3.1; 554 | }; 555 | 1FE53CBE1D3FF490005739A5 = { 556 | CreatedOnToolsVersion = 7.3.1; 557 | }; 558 | 1FE53CD31D3FF491005739A5 = { 559 | CreatedOnToolsVersion = 7.3.1; 560 | TestTargetID = 1FE53CBE1D3FF490005739A5; 561 | }; 562 | 9AA6624719BFABFC0055042F = { 563 | CreatedOnToolsVersion = 6.0; 564 | }; 565 | 9AA6626019BFABFC0055042F = { 566 | CreatedOnToolsVersion = 6.0; 567 | LastSwiftMigration = 0820; 568 | TestTargetID = 9AA6624719BFABFC0055042F; 569 | }; 570 | E2D975171B8265DF00675936 = { 571 | CreatedOnToolsVersion = 6.4; 572 | }; 573 | E2D9752C1B8265DF00675936 = { 574 | CreatedOnToolsVersion = 6.4; 575 | LastSwiftMigration = 0820; 576 | TestTargetID = E2D975171B8265DF00675936; 577 | }; 578 | }; 579 | }; 580 | buildConfigurationList = 9AA6624319BFABFC0055042F /* Build configuration list for PBXProject "SDVersion" */; 581 | compatibilityVersion = "Xcode 3.2"; 582 | developmentRegion = English; 583 | hasScannedForEncodings = 0; 584 | knownRegions = ( 585 | en, 586 | Base, 587 | ); 588 | mainGroup = 9AA6623F19BFABFC0055042F; 589 | productRefGroup = 9AA6624919BFABFC0055042F /* Products */; 590 | projectDirPath = ""; 591 | projectRoot = ""; 592 | targets = ( 593 | 9AA6624719BFABFC0055042F /* SDiOSVersion */, 594 | 9AA6626019BFABFC0055042F /* SDiOSVersionTests */, 595 | E2D975171B8265DF00675936 /* SDMacVersion */, 596 | E2D9752C1B8265DF00675936 /* SDMacVersionTests */, 597 | 1FC73CFF1D244B87005F81DA /* SDwatchOSVersion */, 598 | 1FC73D0B1D244B87005F81DA /* SDwatchOSVersion Extension */, 599 | 1FE53CBE1D3FF490005739A5 /* SDtvOSVersion */, 600 | 1FE53CD31D3FF491005739A5 /* SDtvOSVersionTests */, 601 | ); 602 | }; 603 | /* End PBXProject section */ 604 | 605 | /* Begin PBXResourcesBuildPhase section */ 606 | 1FC73CFE1D244B87005F81DA /* Resources */ = { 607 | isa = PBXResourcesBuildPhase; 608 | buildActionMask = 2147483647; 609 | files = ( 610 | 1FC73D061D244B87005F81DA /* Assets.xcassets in Resources */, 611 | 1FC73D041D244B87005F81DA /* Interface.storyboard in Resources */, 612 | ); 613 | runOnlyForDeploymentPostprocessing = 0; 614 | }; 615 | 1FC73D0A1D244B87005F81DA /* Resources */ = { 616 | isa = PBXResourcesBuildPhase; 617 | buildActionMask = 2147483647; 618 | files = ( 619 | 1FC73D181D244B87005F81DA /* Assets.xcassets in Resources */, 620 | ); 621 | runOnlyForDeploymentPostprocessing = 0; 622 | }; 623 | 1FE53CBD1D3FF490005739A5 /* Resources */ = { 624 | isa = PBXResourcesBuildPhase; 625 | buildActionMask = 2147483647; 626 | files = ( 627 | 1FE53CCE1D3FF490005739A5 /* Assets.xcassets in Resources */, 628 | 1FE53CCC1D3FF490005739A5 /* Main.storyboard in Resources */, 629 | ); 630 | runOnlyForDeploymentPostprocessing = 0; 631 | }; 632 | 1FE53CD21D3FF491005739A5 /* Resources */ = { 633 | isa = PBXResourcesBuildPhase; 634 | buildActionMask = 2147483647; 635 | files = ( 636 | ); 637 | runOnlyForDeploymentPostprocessing = 0; 638 | }; 639 | 9AA6624619BFABFC0055042F /* Resources */ = { 640 | isa = PBXResourcesBuildPhase; 641 | buildActionMask = 2147483647; 642 | files = ( 643 | 9A6DB5EC1B8E82D00065EA11 /* Images.xcassets in Resources */, 644 | 9A6DB5EA1B8E82D00065EA11 /* LaunchScreen.xib in Resources */, 645 | 9A6DB5EB1B8E82D00065EA11 /* Main.storyboard in Resources */, 646 | ); 647 | runOnlyForDeploymentPostprocessing = 0; 648 | }; 649 | 9AA6625F19BFABFC0055042F /* Resources */ = { 650 | isa = PBXResourcesBuildPhase; 651 | buildActionMask = 2147483647; 652 | files = ( 653 | ); 654 | runOnlyForDeploymentPostprocessing = 0; 655 | }; 656 | E2D975161B8265DF00675936 /* Resources */ = { 657 | isa = PBXResourcesBuildPhase; 658 | buildActionMask = 2147483647; 659 | files = ( 660 | E2D975251B8265DF00675936 /* Images.xcassets in Resources */, 661 | E2D975281B8265DF00675936 /* Main.storyboard in Resources */, 662 | ); 663 | runOnlyForDeploymentPostprocessing = 0; 664 | }; 665 | E2D9752B1B8265DF00675936 /* Resources */ = { 666 | isa = PBXResourcesBuildPhase; 667 | buildActionMask = 2147483647; 668 | files = ( 669 | ); 670 | runOnlyForDeploymentPostprocessing = 0; 671 | }; 672 | /* End PBXResourcesBuildPhase section */ 673 | 674 | /* Begin PBXSourcesBuildPhase section */ 675 | 1FC73D081D244B87005F81DA /* Sources */ = { 676 | isa = PBXSourcesBuildPhase; 677 | buildActionMask = 2147483647; 678 | files = ( 679 | 1FC73D161D244B87005F81DA /* ExtensionDelegate.m in Sources */, 680 | 1FC73D131D244B87005F81DA /* InterfaceController.m in Sources */, 681 | 1FC73D291D244C93005F81DA /* SDwatchOSVersion.m in Sources */, 682 | ); 683 | runOnlyForDeploymentPostprocessing = 0; 684 | }; 685 | 1FE53CBB1D3FF490005739A5 /* Sources */ = { 686 | isa = PBXSourcesBuildPhase; 687 | buildActionMask = 2147483647; 688 | files = ( 689 | 1FE53CC91D3FF490005739A5 /* ViewController.m in Sources */, 690 | 1FE53CC61D3FF490005739A5 /* AppDelegate.m in Sources */, 691 | 1FE53CC31D3FF490005739A5 /* main.m in Sources */, 692 | 1FE53CE11D3FF4A3005739A5 /* SDtvOSVersion.m in Sources */, 693 | ); 694 | runOnlyForDeploymentPostprocessing = 0; 695 | }; 696 | 1FE53CD01D3FF491005739A5 /* Sources */ = { 697 | isa = PBXSourcesBuildPhase; 698 | buildActionMask = 2147483647; 699 | files = ( 700 | 1FE53CD91D3FF491005739A5 /* SDtvOSVersionTests.m in Sources */, 701 | ); 702 | runOnlyForDeploymentPostprocessing = 0; 703 | }; 704 | 9AA6624419BFABFC0055042F /* Sources */ = { 705 | isa = PBXSourcesBuildPhase; 706 | buildActionMask = 2147483647; 707 | files = ( 708 | 9A6DB5E91B8E82D00065EA11 /* AppDelegate.m in Sources */, 709 | 9A6DB5EE1B8E82D00065EA11 /* main.m in Sources */, 710 | 9A6DB5EF1B8E82D00065EA11 /* ViewController.m in Sources */, 711 | 9A95DA991B853CFF00F96CB5 /* SDiOSVersion.m in Sources */, 712 | ); 713 | runOnlyForDeploymentPostprocessing = 0; 714 | }; 715 | 9AA6625D19BFABFC0055042F /* Sources */ = { 716 | isa = PBXSourcesBuildPhase; 717 | buildActionMask = 2147483647; 718 | files = ( 719 | 0EA6B9761E6AB69300315612 /* iOSVersionTests.swift in Sources */, 720 | 9A6DB5F41B8E82E00065EA11 /* SDiOSVersionTests.m in Sources */, 721 | ); 722 | runOnlyForDeploymentPostprocessing = 0; 723 | }; 724 | E2D975141B8265DF00675936 /* Sources */ = { 725 | isa = PBXSourcesBuildPhase; 726 | buildActionMask = 2147483647; 727 | files = ( 728 | 9A95DA9C1B853CFF00F96CB5 /* SDMacVersion.m in Sources */, 729 | E2D975231B8265DF00675936 /* ViewController.m in Sources */, 730 | E2D975201B8265DF00675936 /* main.m in Sources */, 731 | E2D9751E1B8265DF00675936 /* AppDelegate.m in Sources */, 732 | ); 733 | runOnlyForDeploymentPostprocessing = 0; 734 | }; 735 | E2D975291B8265DF00675936 /* Sources */ = { 736 | isa = PBXSourcesBuildPhase; 737 | buildActionMask = 2147483647; 738 | files = ( 739 | 0EA6B9791E6AB6F600315612 /* MacVersionTests.swift in Sources */, 740 | E2D975341B8265E000675936 /* SDMacVersionTests.m in Sources */, 741 | ); 742 | runOnlyForDeploymentPostprocessing = 0; 743 | }; 744 | /* End PBXSourcesBuildPhase section */ 745 | 746 | /* Begin PBXTargetDependency section */ 747 | 1FC73D0F1D244B87005F81DA /* PBXTargetDependency */ = { 748 | isa = PBXTargetDependency; 749 | target = 1FC73D0B1D244B87005F81DA /* SDwatchOSVersion Extension */; 750 | targetProxy = 1FC73D0E1D244B87005F81DA /* PBXContainerItemProxy */; 751 | }; 752 | 1FC73D1B1D244B87005F81DA /* PBXTargetDependency */ = { 753 | isa = PBXTargetDependency; 754 | target = 1FC73CFF1D244B87005F81DA /* SDwatchOSVersion */; 755 | targetProxy = 1FC73D1A1D244B87005F81DA /* PBXContainerItemProxy */; 756 | }; 757 | 1FE53CD61D3FF491005739A5 /* PBXTargetDependency */ = { 758 | isa = PBXTargetDependency; 759 | target = 1FE53CBE1D3FF490005739A5 /* SDtvOSVersion */; 760 | targetProxy = 1FE53CD51D3FF491005739A5 /* PBXContainerItemProxy */; 761 | }; 762 | 9AA6626319BFABFC0055042F /* PBXTargetDependency */ = { 763 | isa = PBXTargetDependency; 764 | target = 9AA6624719BFABFC0055042F /* SDiOSVersion */; 765 | targetProxy = 9AA6626219BFABFC0055042F /* PBXContainerItemProxy */; 766 | }; 767 | E2D9752F1B8265DF00675936 /* PBXTargetDependency */ = { 768 | isa = PBXTargetDependency; 769 | target = E2D975171B8265DF00675936 /* SDMacVersion */; 770 | targetProxy = E2D9752E1B8265DF00675936 /* PBXContainerItemProxy */; 771 | }; 772 | /* End PBXTargetDependency section */ 773 | 774 | /* Begin PBXVariantGroup section */ 775 | 1FC73D021D244B87005F81DA /* Interface.storyboard */ = { 776 | isa = PBXVariantGroup; 777 | children = ( 778 | 1FC73D031D244B87005F81DA /* Base */, 779 | ); 780 | name = Interface.storyboard; 781 | sourceTree = ""; 782 | }; 783 | 1FE53CCA1D3FF490005739A5 /* Main.storyboard */ = { 784 | isa = PBXVariantGroup; 785 | children = ( 786 | 1FE53CCB1D3FF490005739A5 /* Base */, 787 | ); 788 | name = Main.storyboard; 789 | sourceTree = ""; 790 | }; 791 | 9A6DB5E01B8E82D00065EA11 /* LaunchScreen.xib */ = { 792 | isa = PBXVariantGroup; 793 | children = ( 794 | 9A6DB5E11B8E82D00065EA11 /* Base */, 795 | ); 796 | name = LaunchScreen.xib; 797 | sourceTree = ""; 798 | }; 799 | 9A6DB5E21B8E82D00065EA11 /* Main.storyboard */ = { 800 | isa = PBXVariantGroup; 801 | children = ( 802 | 9A6DB5E31B8E82D00065EA11 /* Base */, 803 | ); 804 | name = Main.storyboard; 805 | sourceTree = ""; 806 | }; 807 | E2D975261B8265DF00675936 /* Main.storyboard */ = { 808 | isa = PBXVariantGroup; 809 | children = ( 810 | E2D975271B8265DF00675936 /* Base */, 811 | ); 812 | name = Main.storyboard; 813 | sourceTree = ""; 814 | }; 815 | /* End PBXVariantGroup section */ 816 | 817 | /* Begin XCBuildConfiguration section */ 818 | 1FC73D1D1D244B87005F81DA /* Debug */ = { 819 | isa = XCBuildConfiguration; 820 | buildSettings = { 821 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 822 | CLANG_ANALYZER_NONNULL = YES; 823 | DEBUG_INFORMATION_FORMAT = dwarf; 824 | ENABLE_TESTABILITY = YES; 825 | GCC_NO_COMMON_BLOCKS = YES; 826 | IBSC_MODULE = SDwatchOSVersion_Extension; 827 | INFOPLIST_FILE = SDwatchOSVersion/Info.plist; 828 | PRODUCT_BUNDLE_IDENTIFIER = com.dobrincusebastian.SDiOSVersion.watchkitapp; 829 | PRODUCT_NAME = "$(TARGET_NAME)"; 830 | SDKROOT = watchos; 831 | SKIP_INSTALL = YES; 832 | TARGETED_DEVICE_FAMILY = 4; 833 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 834 | }; 835 | name = Debug; 836 | }; 837 | 1FC73D1E1D244B87005F81DA /* Release */ = { 838 | isa = XCBuildConfiguration; 839 | buildSettings = { 840 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 841 | CLANG_ANALYZER_NONNULL = YES; 842 | COPY_PHASE_STRIP = NO; 843 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 844 | GCC_NO_COMMON_BLOCKS = YES; 845 | IBSC_MODULE = SDwatchOSVersion_Extension; 846 | INFOPLIST_FILE = SDwatchOSVersion/Info.plist; 847 | PRODUCT_BUNDLE_IDENTIFIER = com.dobrincusebastian.SDiOSVersion.watchkitapp; 848 | PRODUCT_NAME = "$(TARGET_NAME)"; 849 | SDKROOT = watchos; 850 | SKIP_INSTALL = YES; 851 | TARGETED_DEVICE_FAMILY = 4; 852 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 853 | }; 854 | name = Release; 855 | }; 856 | 1FC73D1F1D244B87005F81DA /* Debug */ = { 857 | isa = XCBuildConfiguration; 858 | buildSettings = { 859 | CLANG_ANALYZER_NONNULL = YES; 860 | DEBUG_INFORMATION_FORMAT = dwarf; 861 | ENABLE_TESTABILITY = YES; 862 | GCC_NO_COMMON_BLOCKS = YES; 863 | INFOPLIST_FILE = "SDwatchOSVersion Extension/Info.plist"; 864 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; 865 | PRODUCT_BUNDLE_IDENTIFIER = com.dobrincusebastian.SDiOSVersion.watchkitapp.watchkitextension; 866 | PRODUCT_NAME = "${TARGET_NAME}"; 867 | SDKROOT = watchos; 868 | SKIP_INSTALL = YES; 869 | TARGETED_DEVICE_FAMILY = 4; 870 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 871 | }; 872 | name = Debug; 873 | }; 874 | 1FC73D201D244B87005F81DA /* Release */ = { 875 | isa = XCBuildConfiguration; 876 | buildSettings = { 877 | CLANG_ANALYZER_NONNULL = YES; 878 | COPY_PHASE_STRIP = NO; 879 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 880 | GCC_NO_COMMON_BLOCKS = YES; 881 | INFOPLIST_FILE = "SDwatchOSVersion Extension/Info.plist"; 882 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; 883 | PRODUCT_BUNDLE_IDENTIFIER = com.dobrincusebastian.SDiOSVersion.watchkitapp.watchkitextension; 884 | PRODUCT_NAME = "${TARGET_NAME}"; 885 | SDKROOT = watchos; 886 | SKIP_INSTALL = YES; 887 | TARGETED_DEVICE_FAMILY = 4; 888 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 889 | }; 890 | name = Release; 891 | }; 892 | 1FE53CDC1D3FF491005739A5 /* Debug */ = { 893 | isa = XCBuildConfiguration; 894 | buildSettings = { 895 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 896 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 897 | CLANG_ANALYZER_NONNULL = YES; 898 | DEBUG_INFORMATION_FORMAT = dwarf; 899 | GCC_NO_COMMON_BLOCKS = YES; 900 | INFOPLIST_FILE = SDtvOSVersion/Info.plist; 901 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 902 | PRODUCT_BUNDLE_IDENTIFIER = com.dobrincusebastian.SDtvOSVersion; 903 | PRODUCT_NAME = "$(TARGET_NAME)"; 904 | SDKROOT = appletvos; 905 | TARGETED_DEVICE_FAMILY = 3; 906 | TVOS_DEPLOYMENT_TARGET = 9.0; 907 | }; 908 | name = Debug; 909 | }; 910 | 1FE53CDD1D3FF491005739A5 /* Release */ = { 911 | isa = XCBuildConfiguration; 912 | buildSettings = { 913 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 914 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 915 | CLANG_ANALYZER_NONNULL = YES; 916 | COPY_PHASE_STRIP = NO; 917 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 918 | GCC_NO_COMMON_BLOCKS = YES; 919 | INFOPLIST_FILE = SDtvOSVersion/Info.plist; 920 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 921 | PRODUCT_BUNDLE_IDENTIFIER = com.dobrincusebastian.SDtvOSVersion; 922 | PRODUCT_NAME = "$(TARGET_NAME)"; 923 | SDKROOT = appletvos; 924 | TARGETED_DEVICE_FAMILY = 3; 925 | TVOS_DEPLOYMENT_TARGET = 9.0; 926 | }; 927 | name = Release; 928 | }; 929 | 1FE53CDF1D3FF491005739A5 /* Debug */ = { 930 | isa = XCBuildConfiguration; 931 | buildSettings = { 932 | BUNDLE_LOADER = "$(TEST_HOST)"; 933 | CLANG_ANALYZER_NONNULL = YES; 934 | DEBUG_INFORMATION_FORMAT = dwarf; 935 | GCC_NO_COMMON_BLOCKS = YES; 936 | INFOPLIST_FILE = SDtvOSVersionTests/Info.plist; 937 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 938 | PRODUCT_BUNDLE_IDENTIFIER = com.dobrincusebastian.SDtvOSVersionTests; 939 | PRODUCT_NAME = "$(TARGET_NAME)"; 940 | SDKROOT = appletvos; 941 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDtvOSVersion.app/SDtvOSVersion"; 942 | TVOS_DEPLOYMENT_TARGET = 9.0; 943 | }; 944 | name = Debug; 945 | }; 946 | 1FE53CE01D3FF491005739A5 /* Release */ = { 947 | isa = XCBuildConfiguration; 948 | buildSettings = { 949 | BUNDLE_LOADER = "$(TEST_HOST)"; 950 | CLANG_ANALYZER_NONNULL = YES; 951 | COPY_PHASE_STRIP = NO; 952 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 953 | GCC_NO_COMMON_BLOCKS = YES; 954 | INFOPLIST_FILE = SDtvOSVersionTests/Info.plist; 955 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 956 | PRODUCT_BUNDLE_IDENTIFIER = com.dobrincusebastian.SDtvOSVersionTests; 957 | PRODUCT_NAME = "$(TARGET_NAME)"; 958 | SDKROOT = appletvos; 959 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDtvOSVersion.app/SDtvOSVersion"; 960 | TVOS_DEPLOYMENT_TARGET = 9.0; 961 | }; 962 | name = Release; 963 | }; 964 | 9AA6626919BFABFC0055042F /* Debug */ = { 965 | isa = XCBuildConfiguration; 966 | buildSettings = { 967 | ALWAYS_SEARCH_USER_PATHS = NO; 968 | ASSETCATALOG_WARNINGS = NO; 969 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 970 | CLANG_CXX_LIBRARY = "libc++"; 971 | CLANG_ENABLE_MODULES = YES; 972 | CLANG_ENABLE_OBJC_ARC = YES; 973 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 974 | CLANG_WARN_BOOL_CONVERSION = YES; 975 | CLANG_WARN_COMMA = YES; 976 | CLANG_WARN_CONSTANT_CONVERSION = YES; 977 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 978 | CLANG_WARN_EMPTY_BODY = YES; 979 | CLANG_WARN_ENUM_CONVERSION = YES; 980 | CLANG_WARN_INFINITE_RECURSION = YES; 981 | CLANG_WARN_INT_CONVERSION = YES; 982 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 983 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 984 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 985 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 986 | CLANG_WARN_STRICT_PROTOTYPES = YES; 987 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 988 | CLANG_WARN_UNREACHABLE_CODE = YES; 989 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 990 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 991 | COPY_PHASE_STRIP = NO; 992 | ENABLE_STRICT_OBJC_MSGSEND = YES; 993 | ENABLE_TESTABILITY = YES; 994 | GCC_C_LANGUAGE_STANDARD = gnu99; 995 | GCC_DYNAMIC_NO_PIC = NO; 996 | GCC_NO_COMMON_BLOCKS = YES; 997 | GCC_OPTIMIZATION_LEVEL = 0; 998 | GCC_PREPROCESSOR_DEFINITIONS = ( 999 | "DEBUG=1", 1000 | "$(inherited)", 1001 | ); 1002 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1003 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1004 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1005 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1006 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1007 | GCC_WARN_UNUSED_FUNCTION = YES; 1008 | GCC_WARN_UNUSED_VARIABLE = YES; 1009 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1010 | MACOSX_DEPLOYMENT_TARGET = 10.9; 1011 | MTL_ENABLE_DEBUG_INFO = YES; 1012 | ONLY_ACTIVE_ARCH = YES; 1013 | SDKROOT = iphoneos; 1014 | }; 1015 | name = Debug; 1016 | }; 1017 | 9AA6626A19BFABFC0055042F /* Release */ = { 1018 | isa = XCBuildConfiguration; 1019 | buildSettings = { 1020 | ALWAYS_SEARCH_USER_PATHS = NO; 1021 | ASSETCATALOG_WARNINGS = NO; 1022 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1023 | CLANG_CXX_LIBRARY = "libc++"; 1024 | CLANG_ENABLE_MODULES = YES; 1025 | CLANG_ENABLE_OBJC_ARC = YES; 1026 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1027 | CLANG_WARN_BOOL_CONVERSION = YES; 1028 | CLANG_WARN_COMMA = YES; 1029 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1030 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1031 | CLANG_WARN_EMPTY_BODY = YES; 1032 | CLANG_WARN_ENUM_CONVERSION = YES; 1033 | CLANG_WARN_INFINITE_RECURSION = YES; 1034 | CLANG_WARN_INT_CONVERSION = YES; 1035 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1036 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1037 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1038 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1039 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1040 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1041 | CLANG_WARN_UNREACHABLE_CODE = YES; 1042 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1043 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1044 | COPY_PHASE_STRIP = YES; 1045 | ENABLE_NS_ASSERTIONS = NO; 1046 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1047 | GCC_C_LANGUAGE_STANDARD = gnu99; 1048 | GCC_NO_COMMON_BLOCKS = YES; 1049 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1050 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1051 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1052 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1053 | GCC_WARN_UNUSED_FUNCTION = YES; 1054 | GCC_WARN_UNUSED_VARIABLE = YES; 1055 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1056 | MACOSX_DEPLOYMENT_TARGET = 10.9; 1057 | MTL_ENABLE_DEBUG_INFO = NO; 1058 | SDKROOT = iphoneos; 1059 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 1060 | VALIDATE_PRODUCT = YES; 1061 | }; 1062 | name = Release; 1063 | }; 1064 | 9AA6626C19BFABFC0055042F /* Debug */ = { 1065 | isa = XCBuildConfiguration; 1066 | buildSettings = { 1067 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1068 | ASSETCATALOG_WARNINGS = NO; 1069 | CODE_SIGN_IDENTITY = ""; 1070 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 1071 | IBSC_WARNINGS = YES; 1072 | INFOPLIST_FILE = SDiOSVersion/Info.plist; 1073 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1074 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1075 | PRODUCT_BUNDLE_IDENTIFIER = "com.dobrincusebastian.$(PRODUCT_NAME:rfc1034identifier)"; 1076 | PRODUCT_NAME = "$(TARGET_NAME)"; 1077 | PROVISIONING_PROFILE = ""; 1078 | }; 1079 | name = Debug; 1080 | }; 1081 | 9AA6626D19BFABFC0055042F /* Release */ = { 1082 | isa = XCBuildConfiguration; 1083 | buildSettings = { 1084 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1085 | ASSETCATALOG_WARNINGS = NO; 1086 | CODE_SIGN_IDENTITY = ""; 1087 | IBSC_WARNINGS = YES; 1088 | INFOPLIST_FILE = SDiOSVersion/Info.plist; 1089 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1090 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1091 | PRODUCT_BUNDLE_IDENTIFIER = "com.dobrincusebastian.$(PRODUCT_NAME:rfc1034identifier)"; 1092 | PRODUCT_NAME = "$(TARGET_NAME)"; 1093 | PROVISIONING_PROFILE = ""; 1094 | }; 1095 | name = Release; 1096 | }; 1097 | 9AA6626F19BFABFC0055042F /* Debug */ = { 1098 | isa = XCBuildConfiguration; 1099 | buildSettings = { 1100 | BUNDLE_LOADER = "$(TEST_HOST)"; 1101 | CLANG_ENABLE_MODULES = YES; 1102 | FRAMEWORK_SEARCH_PATHS = ( 1103 | "$(SDKROOT)/Developer/Library/Frameworks", 1104 | "$(inherited)", 1105 | ); 1106 | GCC_PREPROCESSOR_DEFINITIONS = ( 1107 | "DEBUG=1", 1108 | "$(inherited)", 1109 | ); 1110 | INFOPLIST_FILE = SDiOSVersionTests/Info.plist; 1111 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1112 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1113 | PRODUCT_BUNDLE_IDENTIFIER = "com.dobrincusebastian.$(PRODUCT_NAME:rfc1034identifier)"; 1114 | PRODUCT_NAME = "$(TARGET_NAME)"; 1115 | SWIFT_OBJC_BRIDGING_HEADER = "SDiOSVersionTests/SDiOSVersionTests-Bridging-Header.h"; 1116 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 1117 | SWIFT_VERSION = 3.0; 1118 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDiOSVersion.app/SDiOSVersion"; 1119 | }; 1120 | name = Debug; 1121 | }; 1122 | 9AA6627019BFABFC0055042F /* Release */ = { 1123 | isa = XCBuildConfiguration; 1124 | buildSettings = { 1125 | BUNDLE_LOADER = "$(TEST_HOST)"; 1126 | CLANG_ENABLE_MODULES = YES; 1127 | FRAMEWORK_SEARCH_PATHS = ( 1128 | "$(SDKROOT)/Developer/Library/Frameworks", 1129 | "$(inherited)", 1130 | ); 1131 | INFOPLIST_FILE = SDiOSVersionTests/Info.plist; 1132 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1133 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1134 | PRODUCT_BUNDLE_IDENTIFIER = "com.dobrincusebastian.$(PRODUCT_NAME:rfc1034identifier)"; 1135 | PRODUCT_NAME = "$(TARGET_NAME)"; 1136 | SWIFT_OBJC_BRIDGING_HEADER = "SDiOSVersionTests/SDiOSVersionTests-Bridging-Header.h"; 1137 | SWIFT_VERSION = 3.0; 1138 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDiOSVersion.app/SDiOSVersion"; 1139 | }; 1140 | name = Release; 1141 | }; 1142 | E2D975351B8265E000675936 /* Debug */ = { 1143 | isa = XCBuildConfiguration; 1144 | buildSettings = { 1145 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1146 | CODE_SIGN_IDENTITY = ""; 1147 | COMBINE_HIDPI_IMAGES = YES; 1148 | DEBUG_INFORMATION_FORMAT = dwarf; 1149 | GCC_NO_COMMON_BLOCKS = YES; 1150 | GCC_PREPROCESSOR_DEFINITIONS = ( 1151 | "DEBUG=1", 1152 | "$(inherited)", 1153 | ); 1154 | INFOPLIST_FILE = SDMacVersion/Info.plist; 1155 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 1156 | MACOSX_DEPLOYMENT_TARGET = 10.9; 1157 | PRODUCT_BUNDLE_IDENTIFIER = "com.dobrincusebastian.$(PRODUCT_NAME:rfc1034identifier)"; 1158 | PRODUCT_NAME = "$(TARGET_NAME)"; 1159 | SDKROOT = macosx; 1160 | }; 1161 | name = Debug; 1162 | }; 1163 | E2D975361B8265E000675936 /* Release */ = { 1164 | isa = XCBuildConfiguration; 1165 | buildSettings = { 1166 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1167 | CODE_SIGN_IDENTITY = ""; 1168 | COMBINE_HIDPI_IMAGES = YES; 1169 | COPY_PHASE_STRIP = NO; 1170 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1171 | GCC_NO_COMMON_BLOCKS = YES; 1172 | INFOPLIST_FILE = SDMacVersion/Info.plist; 1173 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 1174 | MACOSX_DEPLOYMENT_TARGET = 10.9; 1175 | PRODUCT_BUNDLE_IDENTIFIER = "com.dobrincusebastian.$(PRODUCT_NAME:rfc1034identifier)"; 1176 | PRODUCT_NAME = "$(TARGET_NAME)"; 1177 | SDKROOT = macosx; 1178 | }; 1179 | name = Release; 1180 | }; 1181 | E2D975371B8265E000675936 /* Debug */ = { 1182 | isa = XCBuildConfiguration; 1183 | buildSettings = { 1184 | BUNDLE_LOADER = "$(TEST_HOST)"; 1185 | CLANG_ENABLE_MODULES = YES; 1186 | COMBINE_HIDPI_IMAGES = YES; 1187 | DEBUG_INFORMATION_FORMAT = dwarf; 1188 | FRAMEWORK_SEARCH_PATHS = ( 1189 | "$(DEVELOPER_FRAMEWORKS_DIR)", 1190 | "$(inherited)", 1191 | ); 1192 | GCC_NO_COMMON_BLOCKS = YES; 1193 | GCC_PREPROCESSOR_DEFINITIONS = ( 1194 | "DEBUG=1", 1195 | "$(inherited)", 1196 | ); 1197 | INFOPLIST_FILE = SDMacVersionTests/Info.plist; 1198 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 1199 | MACOSX_DEPLOYMENT_TARGET = 10.9; 1200 | PRODUCT_BUNDLE_IDENTIFIER = "com.dobrincusebastian.$(PRODUCT_NAME:rfc1034identifier)"; 1201 | PRODUCT_NAME = "$(TARGET_NAME)"; 1202 | SDKROOT = macosx; 1203 | SWIFT_OBJC_BRIDGING_HEADER = "SDMacVersionTests/SDMacVersionTests-Bridging-Header.h"; 1204 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 1205 | SWIFT_VERSION = 3.0; 1206 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDMacVersion.app/Contents/MacOS/SDMacVersion"; 1207 | }; 1208 | name = Debug; 1209 | }; 1210 | E2D975381B8265E000675936 /* Release */ = { 1211 | isa = XCBuildConfiguration; 1212 | buildSettings = { 1213 | BUNDLE_LOADER = "$(TEST_HOST)"; 1214 | CLANG_ENABLE_MODULES = YES; 1215 | COMBINE_HIDPI_IMAGES = YES; 1216 | COPY_PHASE_STRIP = NO; 1217 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1218 | FRAMEWORK_SEARCH_PATHS = ( 1219 | "$(DEVELOPER_FRAMEWORKS_DIR)", 1220 | "$(inherited)", 1221 | ); 1222 | GCC_NO_COMMON_BLOCKS = YES; 1223 | INFOPLIST_FILE = SDMacVersionTests/Info.plist; 1224 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 1225 | MACOSX_DEPLOYMENT_TARGET = 10.9; 1226 | PRODUCT_BUNDLE_IDENTIFIER = "com.dobrincusebastian.$(PRODUCT_NAME:rfc1034identifier)"; 1227 | PRODUCT_NAME = "$(TARGET_NAME)"; 1228 | SDKROOT = macosx; 1229 | SWIFT_OBJC_BRIDGING_HEADER = "SDMacVersionTests/SDMacVersionTests-Bridging-Header.h"; 1230 | SWIFT_VERSION = 3.0; 1231 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDMacVersion.app/Contents/MacOS/SDMacVersion"; 1232 | }; 1233 | name = Release; 1234 | }; 1235 | /* End XCBuildConfiguration section */ 1236 | 1237 | /* Begin XCConfigurationList section */ 1238 | 1FC73D211D244B87005F81DA /* Build configuration list for PBXNativeTarget "SDwatchOSVersion Extension" */ = { 1239 | isa = XCConfigurationList; 1240 | buildConfigurations = ( 1241 | 1FC73D1F1D244B87005F81DA /* Debug */, 1242 | 1FC73D201D244B87005F81DA /* Release */, 1243 | ); 1244 | defaultConfigurationIsVisible = 0; 1245 | defaultConfigurationName = Release; 1246 | }; 1247 | 1FC73D231D244B87005F81DA /* Build configuration list for PBXNativeTarget "SDwatchOSVersion" */ = { 1248 | isa = XCConfigurationList; 1249 | buildConfigurations = ( 1250 | 1FC73D1D1D244B87005F81DA /* Debug */, 1251 | 1FC73D1E1D244B87005F81DA /* Release */, 1252 | ); 1253 | defaultConfigurationIsVisible = 0; 1254 | defaultConfigurationName = Release; 1255 | }; 1256 | 1FE53CDB1D3FF491005739A5 /* Build configuration list for PBXNativeTarget "SDtvOSVersion" */ = { 1257 | isa = XCConfigurationList; 1258 | buildConfigurations = ( 1259 | 1FE53CDC1D3FF491005739A5 /* Debug */, 1260 | 1FE53CDD1D3FF491005739A5 /* Release */, 1261 | ); 1262 | defaultConfigurationIsVisible = 0; 1263 | defaultConfigurationName = Release; 1264 | }; 1265 | 1FE53CDE1D3FF491005739A5 /* Build configuration list for PBXNativeTarget "SDtvOSVersionTests" */ = { 1266 | isa = XCConfigurationList; 1267 | buildConfigurations = ( 1268 | 1FE53CDF1D3FF491005739A5 /* Debug */, 1269 | 1FE53CE01D3FF491005739A5 /* Release */, 1270 | ); 1271 | defaultConfigurationIsVisible = 0; 1272 | defaultConfigurationName = Release; 1273 | }; 1274 | 9AA6624319BFABFC0055042F /* Build configuration list for PBXProject "SDVersion" */ = { 1275 | isa = XCConfigurationList; 1276 | buildConfigurations = ( 1277 | 9AA6626919BFABFC0055042F /* Debug */, 1278 | 9AA6626A19BFABFC0055042F /* Release */, 1279 | ); 1280 | defaultConfigurationIsVisible = 0; 1281 | defaultConfigurationName = Release; 1282 | }; 1283 | 9AA6626B19BFABFC0055042F /* Build configuration list for PBXNativeTarget "SDiOSVersion" */ = { 1284 | isa = XCConfigurationList; 1285 | buildConfigurations = ( 1286 | 9AA6626C19BFABFC0055042F /* Debug */, 1287 | 9AA6626D19BFABFC0055042F /* Release */, 1288 | ); 1289 | defaultConfigurationIsVisible = 0; 1290 | defaultConfigurationName = Release; 1291 | }; 1292 | 9AA6626E19BFABFC0055042F /* Build configuration list for PBXNativeTarget "SDiOSVersionTests" */ = { 1293 | isa = XCConfigurationList; 1294 | buildConfigurations = ( 1295 | 9AA6626F19BFABFC0055042F /* Debug */, 1296 | 9AA6627019BFABFC0055042F /* Release */, 1297 | ); 1298 | defaultConfigurationIsVisible = 0; 1299 | defaultConfigurationName = Release; 1300 | }; 1301 | E2D975391B8265E000675936 /* Build configuration list for PBXNativeTarget "SDMacVersion" */ = { 1302 | isa = XCConfigurationList; 1303 | buildConfigurations = ( 1304 | E2D975351B8265E000675936 /* Debug */, 1305 | E2D975361B8265E000675936 /* Release */, 1306 | ); 1307 | defaultConfigurationIsVisible = 0; 1308 | defaultConfigurationName = Release; 1309 | }; 1310 | E2D9753A1B8265E000675936 /* Build configuration list for PBXNativeTarget "SDMacVersionTests" */ = { 1311 | isa = XCConfigurationList; 1312 | buildConfigurations = ( 1313 | E2D975371B8265E000675936 /* Debug */, 1314 | E2D975381B8265E000675936 /* Release */, 1315 | ); 1316 | defaultConfigurationIsVisible = 0; 1317 | defaultConfigurationName = Release; 1318 | }; 1319 | /* End XCConfigurationList section */ 1320 | }; 1321 | rootObject = 9AA6624019BFABFC0055042F /* Project object */; 1322 | } 1323 | --------------------------------------------------------------------------------