├── ObjCApp ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── ViewController.h ├── ViewController.m └── main.m ├── README.md ├── SimpleFramework.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── SimpleFramework ├── Info.plist ├── SFClass.h ├── SFClass.m ├── SimpleClass.swift └── SimpleFramework.h ├── SimpleFrameworkTests ├── Info.plist └── SimpleFrameworkTests.swift └── SwiftApp ├── AppDelegate.swift ├── Base.lproj ├── LaunchScreen.xib └── Main.storyboard ├── Images.xcassets └── AppIcon.appiconset │ └── Contents.json ├── Info.plist └── ViewController.swift /ObjCApp/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // ObjCApp 4 | // 5 | // Created by Michael Harper on 10/7/14. 6 | // Copyright (c) 2014 Radius Networks. 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 | -------------------------------------------------------------------------------- /ObjCApp/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // ObjCApp 4 | // 5 | // Created by Michael Harper on 10/7/14. 6 | // Copyright (c) 2014 Radius Networks. 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 | -------------------------------------------------------------------------------- /ObjCApp/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /ObjCApp/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 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /ObjCApp/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 | } -------------------------------------------------------------------------------- /ObjCApp/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.radiusnetworks.$(PRODUCT_NAME:rfc1034identifier) 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 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /ObjCApp/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // ObjCApp 4 | // 5 | // Created by Michael Harper on 10/7/14. 6 | // Copyright (c) 2014 Radius Networks. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /ObjCApp/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // ObjCApp 4 | // 5 | // Created by Michael Harper on 10/7/14. 6 | // Copyright (c) 2014 Radius Networks. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | @import SimpleFramework; 11 | 12 | @interface ViewController () 13 | 14 | @end 15 | 16 | @implementation ViewController 17 | 18 | - (void)viewDidLoad { 19 | [super viewDidLoad]; 20 | SimpleClass *sc = [[SimpleClass alloc] init:@"Hello Swift framework from Objective C!!!"]; 21 | [sc printMessage]; 22 | } 23 | 24 | - (void)didReceiveMemoryWarning { 25 | [super didReceiveMemoryWarning]; 26 | // Dispose of any resources that can be recreated. 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /ObjCApp/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ObjCApp 4 | // 5 | // Created by Michael Harper on 10/7/14. 6 | // Copyright (c) 2014 Radius Networks. 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SimpleFramework 2 | 3 | ## Overview 4 | 5 | The purpose of this project is to demonstrate (and remember) how to create a Swift framework for iOS that in turn uses Objective-C code. Then, this framework is used by two different iOS apps -- one Swift and one Objective-C. 6 | 7 | ## Creating the Framework 8 | 9 | 1. Create a new Xcode project. 10 | 1. Create a new Cocoa Touch framework target using Swift. 11 | 2. Create a new Objective C Cocoa Touch class named `SFClass` as a subclass of `NSObject`. 12 | 3. Select `SFClass.h` and make sure its Target Membership is `SimpleFramework` _and_ "Public". Turns out this is _critical_. 13 | 3. Add the following code to `SFClass.h`: 14 | 15 | ``` 16 | -(void) printMessage:(NSString *) message; 17 | 18 | ``` 19 | 20 | 1. Add the following code to `SFClass.m`: 21 | 22 | ``` 23 | -(void) printMessage:(NSString *) message { 24 | NSLog(@"The message is %@", message); 25 | } 26 | 27 | ``` 28 | 29 | 1. Create a new Swift class named `SimpleClass` as a subclass of `NSObject` and add the following code to `SimpleClass.swift`. Note the usage of `public` in front of the class, the initializer, and the `printMessage` method. This makes the class and methods available to those who consume the framework. 30 | 31 | ``` 32 | public class SimpleClass: NSObject { 33 | 34 | var message: String 35 | var object: SFClass = SFClass() 36 | 37 | public init(_ newMessage: String) { 38 | self.message = newMessage 39 | } 40 | 41 | public func printMessage() { 42 | object.printMessage(self.message) 43 | } 44 | } 45 | ``` 46 | 1. When you created the framework target, Xcode automatically created `SimpleFramework.h` for you. Add the following to that file: 47 | 48 | ``` 49 | #import "SFClass.h" 50 | ``` 51 | 52 | ## Consuming the Framework from a Swift app 53 | 54 | 1. Create a new single-view iOS app target in the project and name it `SwiftApp` and use Swift. 55 | 2. Select the new target and go to the `General` settings. Under `Embedded Binaries`, click the `+` and add `SimpleFramework.framework`. 56 | 3. In the `ViewController.swift` file that was created, add the following line at the top: 57 | 58 | ``` 59 | import SimpleFramework 60 | ``` 61 | 62 | and the following method should replace the existing `viewDidLoad`: 63 | 64 | ``` 65 | override func viewDidLoad() { 66 | super.viewDidLoad() 67 | let sc = SimpleClass("Hello Swift framework from Swift!!!") 68 | sc.printMessage() 69 | } 70 | ``` 71 | 72 | ## Consuming the Framework from an Objective-C app 73 | 1. Create a new single-view iOS app target in the project and name it `ObjCApp` and use Objective C. 74 | 2. Select the new target and go to the `General` settings. Under `Embedded Binaries`, click the `+` and add `SimpleFramework.framework`. 75 | 3. Under the `Build Settings` for the target, find the setting for `Embedded Content Contains Swift Code` and set it to `Yes`. 76 | 4. In the ViewController.m file that was created, add the following line at the top: 77 | 78 | ``` 79 | @import SimpleFramework; 80 | ``` 81 | 82 | and the following method should replace the existing `viewDidLoad`: 83 | 84 | ``` 85 | - (void)viewDidLoad { 86 | [super viewDidLoad]; 87 | SimpleClass *sc = [[SimpleClass alloc] init:@"Hello Swift framework from Objective C!!!"]; 88 | [sc printMessage]; 89 | } 90 | ``` 91 | 92 | -------------------------------------------------------------------------------- /SimpleFramework.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | D8AA98D419E4665900CEAFA5 /* SimpleFramework.h in Headers */ = {isa = PBXBuildFile; fileRef = D8AA98D319E4665900CEAFA5 /* SimpleFramework.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | D8AA98DE19E4665900CEAFA5 /* SimpleFrameworkTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8AA98DD19E4665900CEAFA5 /* SimpleFrameworkTests.swift */; }; 12 | D8AA98ED19E46E0A00CEAFA5 /* SimpleClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8AA98EC19E46E0A00CEAFA5 /* SimpleClass.swift */; }; 13 | D8AA98F119E4725E00CEAFA5 /* SFClass.h in Headers */ = {isa = PBXBuildFile; fileRef = D8AA98EF19E4725E00CEAFA5 /* SFClass.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | D8AA98F219E4725E00CEAFA5 /* SFClass.m in Sources */ = {isa = PBXBuildFile; fileRef = D8AA98F019E4725E00CEAFA5 /* SFClass.m */; }; 15 | D8AA98F519E473F900CEAFA5 /* SimpleFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D8AA98CE19E4665900CEAFA5 /* SimpleFramework.framework */; }; 16 | D8AA98FF19E4769200CEAFA5 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8AA98FE19E4769200CEAFA5 /* AppDelegate.swift */; }; 17 | D8AA990119E4769200CEAFA5 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8AA990019E4769200CEAFA5 /* ViewController.swift */; }; 18 | D8AA990419E4769200CEAFA5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D8AA990219E4769200CEAFA5 /* Main.storyboard */; }; 19 | D8AA990619E4769200CEAFA5 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D8AA990519E4769200CEAFA5 /* Images.xcassets */; }; 20 | D8AA990919E4769200CEAFA5 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = D8AA990719E4769200CEAFA5 /* LaunchScreen.xib */; }; 21 | D8AA991C19E476A400CEAFA5 /* SimpleFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D8AA98CE19E4665900CEAFA5 /* SimpleFramework.framework */; }; 22 | D8AA991D19E476A400CEAFA5 /* SimpleFramework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D8AA98CE19E4665900CEAFA5 /* SimpleFramework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 23 | D8AA992A19E47B0C00CEAFA5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D8AA992919E47B0C00CEAFA5 /* main.m */; }; 24 | D8AA992D19E47B0C00CEAFA5 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = D8AA992C19E47B0C00CEAFA5 /* AppDelegate.m */; }; 25 | D8AA993019E47B0C00CEAFA5 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D8AA992F19E47B0C00CEAFA5 /* ViewController.m */; }; 26 | D8AA993319E47B0C00CEAFA5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D8AA993119E47B0C00CEAFA5 /* Main.storyboard */; }; 27 | D8AA993519E47B0C00CEAFA5 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D8AA993419E47B0C00CEAFA5 /* Images.xcassets */; }; 28 | D8AA993819E47B0C00CEAFA5 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = D8AA993619E47B0C00CEAFA5 /* LaunchScreen.xib */; }; 29 | D8AA994B19E47B2000CEAFA5 /* SimpleFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D8AA98CE19E4665900CEAFA5 /* SimpleFramework.framework */; }; 30 | D8AA994C19E47B2000CEAFA5 /* SimpleFramework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D8AA98CE19E4665900CEAFA5 /* SimpleFramework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 31 | /* End PBXBuildFile section */ 32 | 33 | /* Begin PBXContainerItemProxy section */ 34 | D8AA98F319E473DA00CEAFA5 /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = D8AA98C519E4665900CEAFA5 /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = D8AA98CD19E4665900CEAFA5; 39 | remoteInfo = SimpleFramework; 40 | }; 41 | D8AA991E19E476A400CEAFA5 /* PBXContainerItemProxy */ = { 42 | isa = PBXContainerItemProxy; 43 | containerPortal = D8AA98C519E4665900CEAFA5 /* Project object */; 44 | proxyType = 1; 45 | remoteGlobalIDString = D8AA98CD19E4665900CEAFA5; 46 | remoteInfo = SimpleFramework; 47 | }; 48 | D8AA994D19E47B2000CEAFA5 /* PBXContainerItemProxy */ = { 49 | isa = PBXContainerItemProxy; 50 | containerPortal = D8AA98C519E4665900CEAFA5 /* Project object */; 51 | proxyType = 1; 52 | remoteGlobalIDString = D8AA98CD19E4665900CEAFA5; 53 | remoteInfo = SimpleFramework; 54 | }; 55 | /* End PBXContainerItemProxy section */ 56 | 57 | /* Begin PBXCopyFilesBuildPhase section */ 58 | D8AA992019E476A400CEAFA5 /* Embed Frameworks */ = { 59 | isa = PBXCopyFilesBuildPhase; 60 | buildActionMask = 2147483647; 61 | dstPath = ""; 62 | dstSubfolderSpec = 10; 63 | files = ( 64 | D8AA991D19E476A400CEAFA5 /* SimpleFramework.framework in Embed Frameworks */, 65 | ); 66 | name = "Embed Frameworks"; 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | D8AA994F19E47B2000CEAFA5 /* Embed Frameworks */ = { 70 | isa = PBXCopyFilesBuildPhase; 71 | buildActionMask = 2147483647; 72 | dstPath = ""; 73 | dstSubfolderSpec = 10; 74 | files = ( 75 | D8AA994C19E47B2000CEAFA5 /* SimpleFramework.framework in Embed Frameworks */, 76 | ); 77 | name = "Embed Frameworks"; 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | /* End PBXCopyFilesBuildPhase section */ 81 | 82 | /* Begin PBXFileReference section */ 83 | D8AA98CE19E4665900CEAFA5 /* SimpleFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SimpleFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 84 | D8AA98D219E4665900CEAFA5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 85 | D8AA98D319E4665900CEAFA5 /* SimpleFramework.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SimpleFramework.h; sourceTree = ""; }; 86 | D8AA98D919E4665900CEAFA5 /* SimpleFrameworkTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SimpleFrameworkTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 87 | D8AA98DC19E4665900CEAFA5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 88 | D8AA98DD19E4665900CEAFA5 /* SimpleFrameworkTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimpleFrameworkTests.swift; sourceTree = ""; }; 89 | D8AA98EC19E46E0A00CEAFA5 /* SimpleClass.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SimpleClass.swift; sourceTree = ""; }; 90 | D8AA98EF19E4725E00CEAFA5 /* SFClass.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SFClass.h; sourceTree = ""; }; 91 | D8AA98F019E4725E00CEAFA5 /* SFClass.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SFClass.m; sourceTree = ""; }; 92 | D8AA98FA19E4769200CEAFA5 /* SwiftApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 93 | D8AA98FD19E4769200CEAFA5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 94 | D8AA98FE19E4769200CEAFA5 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 95 | D8AA990019E4769200CEAFA5 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 96 | D8AA990319E4769200CEAFA5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 97 | D8AA990519E4769200CEAFA5 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 98 | D8AA990819E4769200CEAFA5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 99 | D8AA992519E47B0C00CEAFA5 /* ObjCApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ObjCApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 100 | D8AA992819E47B0C00CEAFA5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 101 | D8AA992919E47B0C00CEAFA5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 102 | D8AA992B19E47B0C00CEAFA5 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 103 | D8AA992C19E47B0C00CEAFA5 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 104 | D8AA992E19E47B0C00CEAFA5 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 105 | D8AA992F19E47B0C00CEAFA5 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 106 | D8AA993219E47B0C00CEAFA5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 107 | D8AA993419E47B0C00CEAFA5 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 108 | D8AA993719E47B0C00CEAFA5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 109 | D8AA995019E4801700CEAFA5 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 110 | /* End PBXFileReference section */ 111 | 112 | /* Begin PBXFrameworksBuildPhase section */ 113 | D8AA98CA19E4665900CEAFA5 /* Frameworks */ = { 114 | isa = PBXFrameworksBuildPhase; 115 | buildActionMask = 2147483647; 116 | files = ( 117 | ); 118 | runOnlyForDeploymentPostprocessing = 0; 119 | }; 120 | D8AA98D619E4665900CEAFA5 /* Frameworks */ = { 121 | isa = PBXFrameworksBuildPhase; 122 | buildActionMask = 2147483647; 123 | files = ( 124 | D8AA98F519E473F900CEAFA5 /* SimpleFramework.framework in Frameworks */, 125 | ); 126 | runOnlyForDeploymentPostprocessing = 0; 127 | }; 128 | D8AA98F719E4769200CEAFA5 /* Frameworks */ = { 129 | isa = PBXFrameworksBuildPhase; 130 | buildActionMask = 2147483647; 131 | files = ( 132 | D8AA991C19E476A400CEAFA5 /* SimpleFramework.framework in Frameworks */, 133 | ); 134 | runOnlyForDeploymentPostprocessing = 0; 135 | }; 136 | D8AA992219E47B0C00CEAFA5 /* Frameworks */ = { 137 | isa = PBXFrameworksBuildPhase; 138 | buildActionMask = 2147483647; 139 | files = ( 140 | D8AA994B19E47B2000CEAFA5 /* SimpleFramework.framework in Frameworks */, 141 | ); 142 | runOnlyForDeploymentPostprocessing = 0; 143 | }; 144 | /* End PBXFrameworksBuildPhase section */ 145 | 146 | /* Begin PBXGroup section */ 147 | D8AA98C419E4665900CEAFA5 = { 148 | isa = PBXGroup; 149 | children = ( 150 | D8AA995019E4801700CEAFA5 /* README.md */, 151 | D8AA98D019E4665900CEAFA5 /* SimpleFramework */, 152 | D8AA98DA19E4665900CEAFA5 /* SimpleFrameworkTests */, 153 | D8AA98FB19E4769200CEAFA5 /* SwiftApp */, 154 | D8AA992619E47B0C00CEAFA5 /* ObjCApp */, 155 | D8AA98CF19E4665900CEAFA5 /* Products */, 156 | ); 157 | sourceTree = ""; 158 | }; 159 | D8AA98CF19E4665900CEAFA5 /* Products */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | D8AA98CE19E4665900CEAFA5 /* SimpleFramework.framework */, 163 | D8AA98D919E4665900CEAFA5 /* SimpleFrameworkTests.xctest */, 164 | D8AA98FA19E4769200CEAFA5 /* SwiftApp.app */, 165 | D8AA992519E47B0C00CEAFA5 /* ObjCApp.app */, 166 | ); 167 | name = Products; 168 | sourceTree = ""; 169 | }; 170 | D8AA98D019E4665900CEAFA5 /* SimpleFramework */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | D8AA98D319E4665900CEAFA5 /* SimpleFramework.h */, 174 | D8AA98EC19E46E0A00CEAFA5 /* SimpleClass.swift */, 175 | D8AA98EF19E4725E00CEAFA5 /* SFClass.h */, 176 | D8AA98F019E4725E00CEAFA5 /* SFClass.m */, 177 | D8AA98D119E4665900CEAFA5 /* Supporting Files */, 178 | ); 179 | path = SimpleFramework; 180 | sourceTree = ""; 181 | }; 182 | D8AA98D119E4665900CEAFA5 /* Supporting Files */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | D8AA98D219E4665900CEAFA5 /* Info.plist */, 186 | ); 187 | name = "Supporting Files"; 188 | sourceTree = ""; 189 | }; 190 | D8AA98DA19E4665900CEAFA5 /* SimpleFrameworkTests */ = { 191 | isa = PBXGroup; 192 | children = ( 193 | D8AA98DD19E4665900CEAFA5 /* SimpleFrameworkTests.swift */, 194 | D8AA98DB19E4665900CEAFA5 /* Supporting Files */, 195 | ); 196 | path = SimpleFrameworkTests; 197 | sourceTree = ""; 198 | }; 199 | D8AA98DB19E4665900CEAFA5 /* Supporting Files */ = { 200 | isa = PBXGroup; 201 | children = ( 202 | D8AA98DC19E4665900CEAFA5 /* Info.plist */, 203 | ); 204 | name = "Supporting Files"; 205 | sourceTree = ""; 206 | }; 207 | D8AA98FB19E4769200CEAFA5 /* SwiftApp */ = { 208 | isa = PBXGroup; 209 | children = ( 210 | D8AA98FE19E4769200CEAFA5 /* AppDelegate.swift */, 211 | D8AA990019E4769200CEAFA5 /* ViewController.swift */, 212 | D8AA990219E4769200CEAFA5 /* Main.storyboard */, 213 | D8AA990519E4769200CEAFA5 /* Images.xcassets */, 214 | D8AA990719E4769200CEAFA5 /* LaunchScreen.xib */, 215 | D8AA98FC19E4769200CEAFA5 /* Supporting Files */, 216 | ); 217 | path = SwiftApp; 218 | sourceTree = ""; 219 | }; 220 | D8AA98FC19E4769200CEAFA5 /* Supporting Files */ = { 221 | isa = PBXGroup; 222 | children = ( 223 | D8AA98FD19E4769200CEAFA5 /* Info.plist */, 224 | ); 225 | name = "Supporting Files"; 226 | sourceTree = ""; 227 | }; 228 | D8AA992619E47B0C00CEAFA5 /* ObjCApp */ = { 229 | isa = PBXGroup; 230 | children = ( 231 | D8AA992B19E47B0C00CEAFA5 /* AppDelegate.h */, 232 | D8AA992C19E47B0C00CEAFA5 /* AppDelegate.m */, 233 | D8AA992E19E47B0C00CEAFA5 /* ViewController.h */, 234 | D8AA992F19E47B0C00CEAFA5 /* ViewController.m */, 235 | D8AA993119E47B0C00CEAFA5 /* Main.storyboard */, 236 | D8AA993419E47B0C00CEAFA5 /* Images.xcassets */, 237 | D8AA993619E47B0C00CEAFA5 /* LaunchScreen.xib */, 238 | D8AA992719E47B0C00CEAFA5 /* Supporting Files */, 239 | ); 240 | path = ObjCApp; 241 | sourceTree = ""; 242 | }; 243 | D8AA992719E47B0C00CEAFA5 /* Supporting Files */ = { 244 | isa = PBXGroup; 245 | children = ( 246 | D8AA992819E47B0C00CEAFA5 /* Info.plist */, 247 | D8AA992919E47B0C00CEAFA5 /* main.m */, 248 | ); 249 | name = "Supporting Files"; 250 | sourceTree = ""; 251 | }; 252 | /* End PBXGroup section */ 253 | 254 | /* Begin PBXHeadersBuildPhase section */ 255 | D8AA98CB19E4665900CEAFA5 /* Headers */ = { 256 | isa = PBXHeadersBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | D8AA98F119E4725E00CEAFA5 /* SFClass.h in Headers */, 260 | D8AA98D419E4665900CEAFA5 /* SimpleFramework.h in Headers */, 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | /* End PBXHeadersBuildPhase section */ 265 | 266 | /* Begin PBXNativeTarget section */ 267 | D8AA98CD19E4665900CEAFA5 /* SimpleFramework */ = { 268 | isa = PBXNativeTarget; 269 | buildConfigurationList = D8AA98E119E4665900CEAFA5 /* Build configuration list for PBXNativeTarget "SimpleFramework" */; 270 | buildPhases = ( 271 | D8AA98C919E4665900CEAFA5 /* Sources */, 272 | D8AA98CA19E4665900CEAFA5 /* Frameworks */, 273 | D8AA98CB19E4665900CEAFA5 /* Headers */, 274 | D8AA98CC19E4665900CEAFA5 /* Resources */, 275 | ); 276 | buildRules = ( 277 | ); 278 | dependencies = ( 279 | ); 280 | name = SimpleFramework; 281 | productName = SimpleFramework; 282 | productReference = D8AA98CE19E4665900CEAFA5 /* SimpleFramework.framework */; 283 | productType = "com.apple.product-type.framework"; 284 | }; 285 | D8AA98D819E4665900CEAFA5 /* SimpleFrameworkTests */ = { 286 | isa = PBXNativeTarget; 287 | buildConfigurationList = D8AA98E419E4665900CEAFA5 /* Build configuration list for PBXNativeTarget "SimpleFrameworkTests" */; 288 | buildPhases = ( 289 | D8AA98D519E4665900CEAFA5 /* Sources */, 290 | D8AA98D619E4665900CEAFA5 /* Frameworks */, 291 | D8AA98D719E4665900CEAFA5 /* Resources */, 292 | ); 293 | buildRules = ( 294 | ); 295 | dependencies = ( 296 | D8AA98F419E473DA00CEAFA5 /* PBXTargetDependency */, 297 | ); 298 | name = SimpleFrameworkTests; 299 | productName = SimpleFrameworkTests; 300 | productReference = D8AA98D919E4665900CEAFA5 /* SimpleFrameworkTests.xctest */; 301 | productType = "com.apple.product-type.bundle.unit-test"; 302 | }; 303 | D8AA98F919E4769200CEAFA5 /* SwiftApp */ = { 304 | isa = PBXNativeTarget; 305 | buildConfigurationList = D8AA991619E4769200CEAFA5 /* Build configuration list for PBXNativeTarget "SwiftApp" */; 306 | buildPhases = ( 307 | D8AA98F619E4769200CEAFA5 /* Sources */, 308 | D8AA98F719E4769200CEAFA5 /* Frameworks */, 309 | D8AA98F819E4769200CEAFA5 /* Resources */, 310 | D8AA992019E476A400CEAFA5 /* Embed Frameworks */, 311 | ); 312 | buildRules = ( 313 | ); 314 | dependencies = ( 315 | D8AA991F19E476A400CEAFA5 /* PBXTargetDependency */, 316 | ); 317 | name = SwiftApp; 318 | productName = SwiftApp; 319 | productReference = D8AA98FA19E4769200CEAFA5 /* SwiftApp.app */; 320 | productType = "com.apple.product-type.application"; 321 | }; 322 | D8AA992419E47B0C00CEAFA5 /* ObjCApp */ = { 323 | isa = PBXNativeTarget; 324 | buildConfigurationList = D8AA994519E47B0C00CEAFA5 /* Build configuration list for PBXNativeTarget "ObjCApp" */; 325 | buildPhases = ( 326 | D8AA992119E47B0C00CEAFA5 /* Sources */, 327 | D8AA992219E47B0C00CEAFA5 /* Frameworks */, 328 | D8AA992319E47B0C00CEAFA5 /* Resources */, 329 | D8AA994F19E47B2000CEAFA5 /* Embed Frameworks */, 330 | ); 331 | buildRules = ( 332 | ); 333 | dependencies = ( 334 | D8AA994E19E47B2000CEAFA5 /* PBXTargetDependency */, 335 | ); 336 | name = ObjCApp; 337 | productName = ObjCApp; 338 | productReference = D8AA992519E47B0C00CEAFA5 /* ObjCApp.app */; 339 | productType = "com.apple.product-type.application"; 340 | }; 341 | /* End PBXNativeTarget section */ 342 | 343 | /* Begin PBXProject section */ 344 | D8AA98C519E4665900CEAFA5 /* Project object */ = { 345 | isa = PBXProject; 346 | attributes = { 347 | LastUpgradeCheck = 0600; 348 | ORGANIZATIONNAME = "Radius Networks"; 349 | TargetAttributes = { 350 | D8AA98CD19E4665900CEAFA5 = { 351 | CreatedOnToolsVersion = 6.0.1; 352 | }; 353 | D8AA98D819E4665900CEAFA5 = { 354 | CreatedOnToolsVersion = 6.0.1; 355 | }; 356 | D8AA98F919E4769200CEAFA5 = { 357 | CreatedOnToolsVersion = 6.0.1; 358 | }; 359 | D8AA992419E47B0C00CEAFA5 = { 360 | CreatedOnToolsVersion = 6.0.1; 361 | }; 362 | }; 363 | }; 364 | buildConfigurationList = D8AA98C819E4665900CEAFA5 /* Build configuration list for PBXProject "SimpleFramework" */; 365 | compatibilityVersion = "Xcode 3.2"; 366 | developmentRegion = English; 367 | hasScannedForEncodings = 0; 368 | knownRegions = ( 369 | en, 370 | Base, 371 | ); 372 | mainGroup = D8AA98C419E4665900CEAFA5; 373 | productRefGroup = D8AA98CF19E4665900CEAFA5 /* Products */; 374 | projectDirPath = ""; 375 | projectRoot = ""; 376 | targets = ( 377 | D8AA98CD19E4665900CEAFA5 /* SimpleFramework */, 378 | D8AA98D819E4665900CEAFA5 /* SimpleFrameworkTests */, 379 | D8AA98F919E4769200CEAFA5 /* SwiftApp */, 380 | D8AA992419E47B0C00CEAFA5 /* ObjCApp */, 381 | ); 382 | }; 383 | /* End PBXProject section */ 384 | 385 | /* Begin PBXResourcesBuildPhase section */ 386 | D8AA98CC19E4665900CEAFA5 /* Resources */ = { 387 | isa = PBXResourcesBuildPhase; 388 | buildActionMask = 2147483647; 389 | files = ( 390 | ); 391 | runOnlyForDeploymentPostprocessing = 0; 392 | }; 393 | D8AA98D719E4665900CEAFA5 /* Resources */ = { 394 | isa = PBXResourcesBuildPhase; 395 | buildActionMask = 2147483647; 396 | files = ( 397 | ); 398 | runOnlyForDeploymentPostprocessing = 0; 399 | }; 400 | D8AA98F819E4769200CEAFA5 /* Resources */ = { 401 | isa = PBXResourcesBuildPhase; 402 | buildActionMask = 2147483647; 403 | files = ( 404 | D8AA990419E4769200CEAFA5 /* Main.storyboard in Resources */, 405 | D8AA990919E4769200CEAFA5 /* LaunchScreen.xib in Resources */, 406 | D8AA990619E4769200CEAFA5 /* Images.xcassets in Resources */, 407 | ); 408 | runOnlyForDeploymentPostprocessing = 0; 409 | }; 410 | D8AA992319E47B0C00CEAFA5 /* Resources */ = { 411 | isa = PBXResourcesBuildPhase; 412 | buildActionMask = 2147483647; 413 | files = ( 414 | D8AA993319E47B0C00CEAFA5 /* Main.storyboard in Resources */, 415 | D8AA993819E47B0C00CEAFA5 /* LaunchScreen.xib in Resources */, 416 | D8AA993519E47B0C00CEAFA5 /* Images.xcassets in Resources */, 417 | ); 418 | runOnlyForDeploymentPostprocessing = 0; 419 | }; 420 | /* End PBXResourcesBuildPhase section */ 421 | 422 | /* Begin PBXSourcesBuildPhase section */ 423 | D8AA98C919E4665900CEAFA5 /* Sources */ = { 424 | isa = PBXSourcesBuildPhase; 425 | buildActionMask = 2147483647; 426 | files = ( 427 | D8AA98ED19E46E0A00CEAFA5 /* SimpleClass.swift in Sources */, 428 | D8AA98F219E4725E00CEAFA5 /* SFClass.m in Sources */, 429 | ); 430 | runOnlyForDeploymentPostprocessing = 0; 431 | }; 432 | D8AA98D519E4665900CEAFA5 /* Sources */ = { 433 | isa = PBXSourcesBuildPhase; 434 | buildActionMask = 2147483647; 435 | files = ( 436 | D8AA98DE19E4665900CEAFA5 /* SimpleFrameworkTests.swift in Sources */, 437 | ); 438 | runOnlyForDeploymentPostprocessing = 0; 439 | }; 440 | D8AA98F619E4769200CEAFA5 /* Sources */ = { 441 | isa = PBXSourcesBuildPhase; 442 | buildActionMask = 2147483647; 443 | files = ( 444 | D8AA990119E4769200CEAFA5 /* ViewController.swift in Sources */, 445 | D8AA98FF19E4769200CEAFA5 /* AppDelegate.swift in Sources */, 446 | ); 447 | runOnlyForDeploymentPostprocessing = 0; 448 | }; 449 | D8AA992119E47B0C00CEAFA5 /* Sources */ = { 450 | isa = PBXSourcesBuildPhase; 451 | buildActionMask = 2147483647; 452 | files = ( 453 | D8AA993019E47B0C00CEAFA5 /* ViewController.m in Sources */, 454 | D8AA992D19E47B0C00CEAFA5 /* AppDelegate.m in Sources */, 455 | D8AA992A19E47B0C00CEAFA5 /* main.m in Sources */, 456 | ); 457 | runOnlyForDeploymentPostprocessing = 0; 458 | }; 459 | /* End PBXSourcesBuildPhase section */ 460 | 461 | /* Begin PBXTargetDependency section */ 462 | D8AA98F419E473DA00CEAFA5 /* PBXTargetDependency */ = { 463 | isa = PBXTargetDependency; 464 | target = D8AA98CD19E4665900CEAFA5 /* SimpleFramework */; 465 | targetProxy = D8AA98F319E473DA00CEAFA5 /* PBXContainerItemProxy */; 466 | }; 467 | D8AA991F19E476A400CEAFA5 /* PBXTargetDependency */ = { 468 | isa = PBXTargetDependency; 469 | target = D8AA98CD19E4665900CEAFA5 /* SimpleFramework */; 470 | targetProxy = D8AA991E19E476A400CEAFA5 /* PBXContainerItemProxy */; 471 | }; 472 | D8AA994E19E47B2000CEAFA5 /* PBXTargetDependency */ = { 473 | isa = PBXTargetDependency; 474 | target = D8AA98CD19E4665900CEAFA5 /* SimpleFramework */; 475 | targetProxy = D8AA994D19E47B2000CEAFA5 /* PBXContainerItemProxy */; 476 | }; 477 | /* End PBXTargetDependency section */ 478 | 479 | /* Begin PBXVariantGroup section */ 480 | D8AA990219E4769200CEAFA5 /* Main.storyboard */ = { 481 | isa = PBXVariantGroup; 482 | children = ( 483 | D8AA990319E4769200CEAFA5 /* Base */, 484 | ); 485 | name = Main.storyboard; 486 | sourceTree = ""; 487 | }; 488 | D8AA990719E4769200CEAFA5 /* LaunchScreen.xib */ = { 489 | isa = PBXVariantGroup; 490 | children = ( 491 | D8AA990819E4769200CEAFA5 /* Base */, 492 | ); 493 | name = LaunchScreen.xib; 494 | sourceTree = ""; 495 | }; 496 | D8AA993119E47B0C00CEAFA5 /* Main.storyboard */ = { 497 | isa = PBXVariantGroup; 498 | children = ( 499 | D8AA993219E47B0C00CEAFA5 /* Base */, 500 | ); 501 | name = Main.storyboard; 502 | sourceTree = ""; 503 | }; 504 | D8AA993619E47B0C00CEAFA5 /* LaunchScreen.xib */ = { 505 | isa = PBXVariantGroup; 506 | children = ( 507 | D8AA993719E47B0C00CEAFA5 /* Base */, 508 | ); 509 | name = LaunchScreen.xib; 510 | sourceTree = ""; 511 | }; 512 | /* End PBXVariantGroup section */ 513 | 514 | /* Begin XCBuildConfiguration section */ 515 | D8AA98DF19E4665900CEAFA5 /* Debug */ = { 516 | isa = XCBuildConfiguration; 517 | buildSettings = { 518 | ALWAYS_SEARCH_USER_PATHS = NO; 519 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 520 | CLANG_CXX_LIBRARY = "libc++"; 521 | CLANG_ENABLE_MODULES = YES; 522 | CLANG_ENABLE_OBJC_ARC = YES; 523 | CLANG_WARN_BOOL_CONVERSION = YES; 524 | CLANG_WARN_CONSTANT_CONVERSION = YES; 525 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 526 | CLANG_WARN_EMPTY_BODY = YES; 527 | CLANG_WARN_ENUM_CONVERSION = YES; 528 | CLANG_WARN_INT_CONVERSION = YES; 529 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 530 | CLANG_WARN_UNREACHABLE_CODE = YES; 531 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 532 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 533 | COPY_PHASE_STRIP = NO; 534 | CURRENT_PROJECT_VERSION = 1; 535 | ENABLE_STRICT_OBJC_MSGSEND = YES; 536 | GCC_C_LANGUAGE_STANDARD = gnu99; 537 | GCC_DYNAMIC_NO_PIC = NO; 538 | GCC_OPTIMIZATION_LEVEL = 0; 539 | GCC_PREPROCESSOR_DEFINITIONS = ( 540 | "DEBUG=1", 541 | "$(inherited)", 542 | ); 543 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 544 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 545 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 546 | GCC_WARN_UNDECLARED_SELECTOR = YES; 547 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 548 | GCC_WARN_UNUSED_FUNCTION = YES; 549 | GCC_WARN_UNUSED_VARIABLE = YES; 550 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 551 | MTL_ENABLE_DEBUG_INFO = YES; 552 | ONLY_ACTIVE_ARCH = YES; 553 | SDKROOT = iphoneos; 554 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 555 | TARGETED_DEVICE_FAMILY = "1,2"; 556 | VERSIONING_SYSTEM = "apple-generic"; 557 | VERSION_INFO_PREFIX = ""; 558 | }; 559 | name = Debug; 560 | }; 561 | D8AA98E019E4665900CEAFA5 /* Release */ = { 562 | isa = XCBuildConfiguration; 563 | buildSettings = { 564 | ALWAYS_SEARCH_USER_PATHS = NO; 565 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 566 | CLANG_CXX_LIBRARY = "libc++"; 567 | CLANG_ENABLE_MODULES = YES; 568 | CLANG_ENABLE_OBJC_ARC = YES; 569 | CLANG_WARN_BOOL_CONVERSION = YES; 570 | CLANG_WARN_CONSTANT_CONVERSION = YES; 571 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 572 | CLANG_WARN_EMPTY_BODY = YES; 573 | CLANG_WARN_ENUM_CONVERSION = YES; 574 | CLANG_WARN_INT_CONVERSION = YES; 575 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 576 | CLANG_WARN_UNREACHABLE_CODE = YES; 577 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 578 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 579 | COPY_PHASE_STRIP = YES; 580 | CURRENT_PROJECT_VERSION = 1; 581 | ENABLE_NS_ASSERTIONS = NO; 582 | ENABLE_STRICT_OBJC_MSGSEND = YES; 583 | GCC_C_LANGUAGE_STANDARD = gnu99; 584 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 585 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 586 | GCC_WARN_UNDECLARED_SELECTOR = YES; 587 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 588 | GCC_WARN_UNUSED_FUNCTION = YES; 589 | GCC_WARN_UNUSED_VARIABLE = YES; 590 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 591 | MTL_ENABLE_DEBUG_INFO = NO; 592 | SDKROOT = iphoneos; 593 | TARGETED_DEVICE_FAMILY = "1,2"; 594 | VALIDATE_PRODUCT = YES; 595 | VERSIONING_SYSTEM = "apple-generic"; 596 | VERSION_INFO_PREFIX = ""; 597 | }; 598 | name = Release; 599 | }; 600 | D8AA98E219E4665900CEAFA5 /* Debug */ = { 601 | isa = XCBuildConfiguration; 602 | buildSettings = { 603 | CLANG_ENABLE_MODULES = YES; 604 | DEFINES_MODULE = YES; 605 | DYLIB_COMPATIBILITY_VERSION = 1; 606 | DYLIB_CURRENT_VERSION = 1; 607 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 608 | INFOPLIST_FILE = SimpleFramework/Info.plist; 609 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 610 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 611 | PRODUCT_NAME = "$(TARGET_NAME)"; 612 | SKIP_INSTALL = YES; 613 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 614 | }; 615 | name = Debug; 616 | }; 617 | D8AA98E319E4665900CEAFA5 /* Release */ = { 618 | isa = XCBuildConfiguration; 619 | buildSettings = { 620 | CLANG_ENABLE_MODULES = YES; 621 | DEFINES_MODULE = YES; 622 | DYLIB_COMPATIBILITY_VERSION = 1; 623 | DYLIB_CURRENT_VERSION = 1; 624 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 625 | INFOPLIST_FILE = SimpleFramework/Info.plist; 626 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 627 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 628 | PRODUCT_NAME = "$(TARGET_NAME)"; 629 | SKIP_INSTALL = YES; 630 | }; 631 | name = Release; 632 | }; 633 | D8AA98E519E4665900CEAFA5 /* Debug */ = { 634 | isa = XCBuildConfiguration; 635 | buildSettings = { 636 | FRAMEWORK_SEARCH_PATHS = ( 637 | "$(SDKROOT)/Developer/Library/Frameworks", 638 | "$(inherited)", 639 | ); 640 | GCC_PREPROCESSOR_DEFINITIONS = ( 641 | "DEBUG=1", 642 | "$(inherited)", 643 | ); 644 | INFOPLIST_FILE = SimpleFrameworkTests/Info.plist; 645 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 646 | PRODUCT_NAME = "$(TARGET_NAME)"; 647 | }; 648 | name = Debug; 649 | }; 650 | D8AA98E619E4665900CEAFA5 /* Release */ = { 651 | isa = XCBuildConfiguration; 652 | buildSettings = { 653 | FRAMEWORK_SEARCH_PATHS = ( 654 | "$(SDKROOT)/Developer/Library/Frameworks", 655 | "$(inherited)", 656 | ); 657 | INFOPLIST_FILE = SimpleFrameworkTests/Info.plist; 658 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 659 | PRODUCT_NAME = "$(TARGET_NAME)"; 660 | }; 661 | name = Release; 662 | }; 663 | D8AA991719E4769200CEAFA5 /* Debug */ = { 664 | isa = XCBuildConfiguration; 665 | buildSettings = { 666 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 667 | GCC_PREPROCESSOR_DEFINITIONS = ( 668 | "DEBUG=1", 669 | "$(inherited)", 670 | ); 671 | INFOPLIST_FILE = SwiftApp/Info.plist; 672 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 673 | PRODUCT_NAME = "$(TARGET_NAME)"; 674 | }; 675 | name = Debug; 676 | }; 677 | D8AA991819E4769200CEAFA5 /* Release */ = { 678 | isa = XCBuildConfiguration; 679 | buildSettings = { 680 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 681 | INFOPLIST_FILE = SwiftApp/Info.plist; 682 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 683 | PRODUCT_NAME = "$(TARGET_NAME)"; 684 | }; 685 | name = Release; 686 | }; 687 | D8AA994619E47B0C00CEAFA5 /* Debug */ = { 688 | isa = XCBuildConfiguration; 689 | buildSettings = { 690 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 691 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES; 692 | GCC_PREPROCESSOR_DEFINITIONS = ( 693 | "DEBUG=1", 694 | "$(inherited)", 695 | ); 696 | INFOPLIST_FILE = ObjCApp/Info.plist; 697 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 698 | PRODUCT_NAME = "$(TARGET_NAME)"; 699 | }; 700 | name = Debug; 701 | }; 702 | D8AA994719E47B0C00CEAFA5 /* Release */ = { 703 | isa = XCBuildConfiguration; 704 | buildSettings = { 705 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 706 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES; 707 | INFOPLIST_FILE = ObjCApp/Info.plist; 708 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 709 | PRODUCT_NAME = "$(TARGET_NAME)"; 710 | }; 711 | name = Release; 712 | }; 713 | /* End XCBuildConfiguration section */ 714 | 715 | /* Begin XCConfigurationList section */ 716 | D8AA98C819E4665900CEAFA5 /* Build configuration list for PBXProject "SimpleFramework" */ = { 717 | isa = XCConfigurationList; 718 | buildConfigurations = ( 719 | D8AA98DF19E4665900CEAFA5 /* Debug */, 720 | D8AA98E019E4665900CEAFA5 /* Release */, 721 | ); 722 | defaultConfigurationIsVisible = 0; 723 | defaultConfigurationName = Release; 724 | }; 725 | D8AA98E119E4665900CEAFA5 /* Build configuration list for PBXNativeTarget "SimpleFramework" */ = { 726 | isa = XCConfigurationList; 727 | buildConfigurations = ( 728 | D8AA98E219E4665900CEAFA5 /* Debug */, 729 | D8AA98E319E4665900CEAFA5 /* Release */, 730 | ); 731 | defaultConfigurationIsVisible = 0; 732 | }; 733 | D8AA98E419E4665900CEAFA5 /* Build configuration list for PBXNativeTarget "SimpleFrameworkTests" */ = { 734 | isa = XCConfigurationList; 735 | buildConfigurations = ( 736 | D8AA98E519E4665900CEAFA5 /* Debug */, 737 | D8AA98E619E4665900CEAFA5 /* Release */, 738 | ); 739 | defaultConfigurationIsVisible = 0; 740 | }; 741 | D8AA991619E4769200CEAFA5 /* Build configuration list for PBXNativeTarget "SwiftApp" */ = { 742 | isa = XCConfigurationList; 743 | buildConfigurations = ( 744 | D8AA991719E4769200CEAFA5 /* Debug */, 745 | D8AA991819E4769200CEAFA5 /* Release */, 746 | ); 747 | defaultConfigurationIsVisible = 0; 748 | }; 749 | D8AA994519E47B0C00CEAFA5 /* Build configuration list for PBXNativeTarget "ObjCApp" */ = { 750 | isa = XCConfigurationList; 751 | buildConfigurations = ( 752 | D8AA994619E47B0C00CEAFA5 /* Debug */, 753 | D8AA994719E47B0C00CEAFA5 /* Release */, 754 | ); 755 | defaultConfigurationIsVisible = 0; 756 | }; 757 | /* End XCConfigurationList section */ 758 | }; 759 | rootObject = D8AA98C519E4665900CEAFA5 /* Project object */; 760 | } 761 | -------------------------------------------------------------------------------- /SimpleFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SimpleFramework/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.radiusnetworks.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /SimpleFramework/SFClass.h: -------------------------------------------------------------------------------- 1 | // 2 | // SFClass.h 3 | // SimpleFramework 4 | // 5 | // Created by Michael Harper on 10/7/14. 6 | // Copyright (c) 2014 Radius Networks. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SFClass : NSObject 12 | 13 | -(void) printMessage:(NSString *) message; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /SimpleFramework/SFClass.m: -------------------------------------------------------------------------------- 1 | // 2 | // SFClass.m 3 | // SimpleFramework 4 | // 5 | // Created by Michael Harper on 10/7/14. 6 | // Copyright (c) 2014 Radius Networks. All rights reserved. 7 | // 8 | 9 | #import "SFClass.h" 10 | 11 | @implementation SFClass 12 | 13 | -(void) printMessage:(NSString *) message { 14 | NSLog(@"The message is %@", message); 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /SimpleFramework/SimpleClass.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SimpleClass.swift 3 | // SimpleFramework 4 | // 5 | // Created by Michael Harper on 10/7/14. 6 | // Copyright (c) 2014 Radius Networks. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public class SimpleClass: NSObject { 12 | 13 | var message: String 14 | var object: SFClass = SFClass() 15 | 16 | public init(_ newMessage: String) { 17 | self.message = newMessage 18 | } 19 | 20 | public func printMessage() { 21 | object.printMessage(self.message) 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /SimpleFramework/SimpleFramework.h: -------------------------------------------------------------------------------- 1 | // 2 | // SimpleFramework.h 3 | // SimpleFramework 4 | // 5 | // Created by Michael Harper on 10/7/14. 6 | // Copyright (c) 2014 Radius Networks. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for SimpleFramework. 12 | FOUNDATION_EXPORT double SimpleFrameworkVersionNumber; 13 | 14 | //! Project version string for SimpleFramework. 15 | FOUNDATION_EXPORT const unsigned char SimpleFrameworkVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | #import "SFClass.h" -------------------------------------------------------------------------------- /SimpleFrameworkTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.radiusnetworks.$(PRODUCT_NAME:rfc1034identifier) 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 | -------------------------------------------------------------------------------- /SimpleFrameworkTests/SimpleFrameworkTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SimpleFrameworkTests.swift 3 | // SimpleFrameworkTests 4 | // 5 | // Created by Michael Harper on 10/7/14. 6 | // Copyright (c) 2014 Radius Networks. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | import SimpleFramework 12 | 13 | class SimpleFrameworkTests: XCTestCase { 14 | 15 | override func setUp() { 16 | super.setUp() 17 | // Put setup code here. This method is called before the invocation of each test method in the class. 18 | } 19 | 20 | override func tearDown() { 21 | // Put teardown code here. This method is called after the invocation of each test method in the class. 22 | super.tearDown() 23 | } 24 | 25 | func testSimpleClass() { 26 | let simpleInstance = SimpleClass("Hello, Framework") 27 | simpleInstance.printMessage() 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /SwiftApp/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SwiftApp 4 | // 5 | // Created by Michael Harper on 10/7/14. 6 | // Copyright (c) 2014 Radius Networks. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(application: UIApplication) { 23 | // 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. 24 | // 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. 25 | } 26 | 27 | func applicationDidEnterBackground(application: UIApplication) { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(application: UIApplication) { 33 | // 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. 34 | } 35 | 36 | func applicationDidBecomeActive(application: UIApplication) { 37 | // 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. 38 | } 39 | 40 | func applicationWillTerminate(application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /SwiftApp/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /SwiftApp/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 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /SwiftApp/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 | } -------------------------------------------------------------------------------- /SwiftApp/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.radiusnetworks.$(PRODUCT_NAME:rfc1034identifier) 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 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /SwiftApp/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // SwiftApp 4 | // 5 | // Created by Michael Harper on 10/7/14. 6 | // Copyright (c) 2014 Radius Networks. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SimpleFramework 11 | 12 | class ViewController: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | let sc = SimpleClass("Hello Swift framework from Swift!!!") 17 | sc.printMessage() 18 | } 19 | 20 | override func didReceiveMemoryWarning() { 21 | super.didReceiveMemoryWarning() 22 | // Dispose of any resources that can be recreated. 23 | } 24 | 25 | 26 | } 27 | 28 | --------------------------------------------------------------------------------