├── .gitignore ├── HelloWorld-Bridging-Header.h ├── HelloWorld.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── HelloWorld.xccheckout ├── HelloWorld.xcworkspace └── contents.xcworkspacedata ├── HelloWorld ├── AppDelegate.swift ├── Base.lproj │ └── Main.storyboard ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── Info.plist └── ViewController.swift ├── HelloWorldTests ├── HelloWorldTests.swift └── Info.plist ├── Podfile ├── Podfile.lock └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | *.xcuserdatad 2 | HelloWorld/OpenTok.framework 3 | Pods 4 | 5 | -------------------------------------------------------------------------------- /HelloWorld-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 -------------------------------------------------------------------------------- /HelloWorld.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | CD99C5E51B0C3A3F003D4FED /* GLKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD99C5E41B0C3A3F003D4FED /* GLKit.framework */; }; 11 | CD99C5E71B0C3A46003D4FED /* VideoToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD99C5E61B0C3A46003D4FED /* VideoToolbox.framework */; }; 12 | CDC39155193E9E790006FFCB /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC39154193E9E790006FFCB /* libsqlite3.dylib */; }; 13 | CDC39157193E9E970006FFCB /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC39156193E9E970006FFCB /* CoreTelephony.framework */; }; 14 | CDC39159193E9EA20006FFCB /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC39158193E9EA20006FFCB /* SystemConfiguration.framework */; }; 15 | CDC3915B193E9EA90006FFCB /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC3915A193E9EA90006FFCB /* OpenGLES.framework */; }; 16 | CDC3915D193E9EB00006FFCB /* CoreVideo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC3915C193E9EB00006FFCB /* CoreVideo.framework */; }; 17 | CDC3915F193E9EEC0006FFCB /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC3915E193E9EEC0006FFCB /* CoreMedia.framework */; }; 18 | CDC39161193E9EF20006FFCB /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC39160193E9EF20006FFCB /* CoreGraphics.framework */; }; 19 | CDC39163193E9EF70006FFCB /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC39162193E9EF70006FFCB /* AudioToolbox.framework */; }; 20 | CDC39165193E9EFB0006FFCB /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC39164193E9EFB0006FFCB /* AVFoundation.framework */; }; 21 | CDC39167193E9F010006FFCB /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC39166193E9F010006FFCB /* QuartzCore.framework */; }; 22 | CDC39169193E9F070006FFCB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC39168193E9F070006FFCB /* UIKit.framework */; }; 23 | CDC3916B193E9F0B0006FFCB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC3916A193E9F0B0006FFCB /* Foundation.framework */; }; 24 | CDC3916F193E9F260006FFCB /* libpthread.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC3916E193E9F260006FFCB /* libpthread.dylib */; }; 25 | CDC39171193E9F2B0006FFCB /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC39170193E9F2B0006FFCB /* libxml2.dylib */; }; 26 | CDC904D0193E3BAF00E878A8 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDC904CF193E3BAF00E878A8 /* AppDelegate.swift */; }; 27 | CDC904D2193E3BAF00E878A8 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDC904D1193E3BAF00E878A8 /* ViewController.swift */; }; 28 | CDC904D5193E3BAF00E878A8 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CDC904D3193E3BAF00E878A8 /* Main.storyboard */; }; 29 | CDC904D7193E3BAF00E878A8 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CDC904D6193E3BAF00E878A8 /* Images.xcassets */; }; 30 | CDC904E3193E3BAF00E878A8 /* HelloWorldTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDC904E2193E3BAF00E878A8 /* HelloWorldTests.swift */; }; 31 | CDC904ED193E3BD300E878A8 /* OpenTok.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDC904EC193E3BD300E878A8 /* OpenTok.framework */; }; 32 | CDF416561A89A85D002B5CEF /* libc++.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = CDF416551A89A85D002B5CEF /* libc++.dylib */; }; 33 | FB8345A49A2BBE549E378746 /* Pods_HelloWorld.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B0585F25B616222416DABDC /* Pods_HelloWorld.framework */; }; 34 | /* End PBXBuildFile section */ 35 | 36 | /* Begin PBXContainerItemProxy section */ 37 | CDC904DD193E3BAF00E878A8 /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = CDC904C2193E3BAF00E878A8 /* Project object */; 40 | proxyType = 1; 41 | remoteGlobalIDString = CDC904C9193E3BAF00E878A8; 42 | remoteInfo = HelloWorld; 43 | }; 44 | /* End PBXContainerItemProxy section */ 45 | 46 | /* Begin PBXFileReference section */ 47 | 1B0585F25B616222416DABDC /* Pods_HelloWorld.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_HelloWorld.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 1C79593A8377560D907374C8 /* Pods-HelloWorld.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HelloWorld.release.xcconfig"; path = "Pods/Target Support Files/Pods-HelloWorld/Pods-HelloWorld.release.xcconfig"; sourceTree = ""; }; 49 | 2207FCF67FFBA5751C2CE546 /* Pods-HelloWorld.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HelloWorld.debug.xcconfig"; path = "Pods/Target Support Files/Pods-HelloWorld/Pods-HelloWorld.debug.xcconfig"; sourceTree = ""; }; 50 | CD99C5E41B0C3A3F003D4FED /* GLKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GLKit.framework; path = System/Library/Frameworks/GLKit.framework; sourceTree = SDKROOT; }; 51 | CD99C5E61B0C3A46003D4FED /* VideoToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = VideoToolbox.framework; path = System/Library/Frameworks/VideoToolbox.framework; sourceTree = SDKROOT; }; 52 | CDC39154193E9E790006FFCB /* libsqlite3.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libsqlite3.dylib; path = usr/lib/libsqlite3.dylib; sourceTree = SDKROOT; }; 53 | CDC39156193E9E970006FFCB /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; }; 54 | CDC39158193E9EA20006FFCB /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; 55 | CDC3915A193E9EA90006FFCB /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; }; 56 | CDC3915C193E9EB00006FFCB /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = System/Library/Frameworks/CoreVideo.framework; sourceTree = SDKROOT; }; 57 | CDC3915E193E9EEC0006FFCB /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; }; 58 | CDC39160193E9EF20006FFCB /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 59 | CDC39162193E9EF70006FFCB /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; 60 | CDC39164193E9EFB0006FFCB /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; 61 | CDC39166193E9F010006FFCB /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; 62 | CDC39168193E9F070006FFCB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 63 | CDC3916A193E9F0B0006FFCB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 64 | CDC3916C193E9F210006FFCB /* libstdc++.6.0.9.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libstdc++.6.0.9.dylib"; path = "usr/lib/libstdc++.6.0.9.dylib"; sourceTree = SDKROOT; }; 65 | CDC3916E193E9F260006FFCB /* libpthread.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libpthread.dylib; path = usr/lib/libpthread.dylib; sourceTree = SDKROOT; }; 66 | CDC39170193E9F2B0006FFCB /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = usr/lib/libxml2.dylib; sourceTree = SDKROOT; }; 67 | CDC904CA193E3BAF00E878A8 /* HelloWorld.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloWorld.app; sourceTree = BUILT_PRODUCTS_DIR; }; 68 | CDC904CE193E3BAF00E878A8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 69 | CDC904CF193E3BAF00E878A8 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 70 | CDC904D1193E3BAF00E878A8 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 71 | CDC904D4193E3BAF00E878A8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 72 | CDC904D6193E3BAF00E878A8 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 73 | CDC904DC193E3BAF00E878A8 /* HelloWorldTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HelloWorldTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | CDC904E1193E3BAF00E878A8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 75 | CDC904E2193E3BAF00E878A8 /* HelloWorldTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HelloWorldTests.swift; sourceTree = ""; }; 76 | CDC904EC193E3BD300E878A8 /* OpenTok.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OpenTok.framework; sourceTree = ""; }; 77 | CDC904EE193E3C0000E878A8 /* HelloWorld-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HelloWorld-Bridging-Header.h"; sourceTree = SOURCE_ROOT; }; 78 | CDF416551A89A85D002B5CEF /* libc++.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libc++.dylib"; path = "usr/lib/libc++.dylib"; sourceTree = SDKROOT; }; 79 | /* End PBXFileReference section */ 80 | 81 | /* Begin PBXFrameworksBuildPhase section */ 82 | CDC904C7193E3BAF00E878A8 /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | CD99C5E71B0C3A46003D4FED /* VideoToolbox.framework in Frameworks */, 87 | CD99C5E51B0C3A3F003D4FED /* GLKit.framework in Frameworks */, 88 | CDF416561A89A85D002B5CEF /* libc++.dylib in Frameworks */, 89 | CDC39171193E9F2B0006FFCB /* libxml2.dylib in Frameworks */, 90 | CDC3916F193E9F260006FFCB /* libpthread.dylib in Frameworks */, 91 | CDC3916B193E9F0B0006FFCB /* Foundation.framework in Frameworks */, 92 | CDC39169193E9F070006FFCB /* UIKit.framework in Frameworks */, 93 | CDC39167193E9F010006FFCB /* QuartzCore.framework in Frameworks */, 94 | CDC39165193E9EFB0006FFCB /* AVFoundation.framework in Frameworks */, 95 | CDC39163193E9EF70006FFCB /* AudioToolbox.framework in Frameworks */, 96 | CDC39161193E9EF20006FFCB /* CoreGraphics.framework in Frameworks */, 97 | CDC3915F193E9EEC0006FFCB /* CoreMedia.framework in Frameworks */, 98 | CDC3915D193E9EB00006FFCB /* CoreVideo.framework in Frameworks */, 99 | CDC3915B193E9EA90006FFCB /* OpenGLES.framework in Frameworks */, 100 | CDC39159193E9EA20006FFCB /* SystemConfiguration.framework in Frameworks */, 101 | CDC39157193E9E970006FFCB /* CoreTelephony.framework in Frameworks */, 102 | CDC39155193E9E790006FFCB /* libsqlite3.dylib in Frameworks */, 103 | CDC904ED193E3BD300E878A8 /* OpenTok.framework in Frameworks */, 104 | FB8345A49A2BBE549E378746 /* Pods_HelloWorld.framework in Frameworks */, 105 | ); 106 | runOnlyForDeploymentPostprocessing = 0; 107 | }; 108 | CDC904D9193E3BAF00E878A8 /* Frameworks */ = { 109 | isa = PBXFrameworksBuildPhase; 110 | buildActionMask = 2147483647; 111 | files = ( 112 | ); 113 | runOnlyForDeploymentPostprocessing = 0; 114 | }; 115 | /* End PBXFrameworksBuildPhase section */ 116 | 117 | /* Begin PBXGroup section */ 118 | 0A27ED2031A03211CE1F4E45 /* Pods */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 2207FCF67FFBA5751C2CE546 /* Pods-HelloWorld.debug.xcconfig */, 122 | 1C79593A8377560D907374C8 /* Pods-HelloWorld.release.xcconfig */, 123 | ); 124 | name = Pods; 125 | sourceTree = ""; 126 | }; 127 | 249360835D1287AF8F14779B /* Frameworks */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 1B0585F25B616222416DABDC /* Pods_HelloWorld.framework */, 131 | ); 132 | name = Frameworks; 133 | sourceTree = ""; 134 | }; 135 | CDC39172193ED8D20006FFCB /* Platform Frameworks */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | CDC39170193E9F2B0006FFCB /* libxml2.dylib */, 139 | CDC3916E193E9F260006FFCB /* libpthread.dylib */, 140 | CDF416551A89A85D002B5CEF /* libc++.dylib */, 141 | CDC3916C193E9F210006FFCB /* libstdc++.6.0.9.dylib */, 142 | CDC3916A193E9F0B0006FFCB /* Foundation.framework */, 143 | CDC39168193E9F070006FFCB /* UIKit.framework */, 144 | CDC39166193E9F010006FFCB /* QuartzCore.framework */, 145 | CDC39164193E9EFB0006FFCB /* AVFoundation.framework */, 146 | CDC39162193E9EF70006FFCB /* AudioToolbox.framework */, 147 | CDC39160193E9EF20006FFCB /* CoreGraphics.framework */, 148 | CDC3915E193E9EEC0006FFCB /* CoreMedia.framework */, 149 | CDC3915C193E9EB00006FFCB /* CoreVideo.framework */, 150 | CDC3915A193E9EA90006FFCB /* OpenGLES.framework */, 151 | CDC39158193E9EA20006FFCB /* SystemConfiguration.framework */, 152 | CDC39156193E9E970006FFCB /* CoreTelephony.framework */, 153 | CDC39154193E9E790006FFCB /* libsqlite3.dylib */, 154 | ); 155 | name = "Platform Frameworks"; 156 | sourceTree = ""; 157 | }; 158 | CDC904C1193E3BAF00E878A8 = { 159 | isa = PBXGroup; 160 | children = ( 161 | CD99C5E61B0C3A46003D4FED /* VideoToolbox.framework */, 162 | CD99C5E41B0C3A3F003D4FED /* GLKit.framework */, 163 | CDC39172193ED8D20006FFCB /* Platform Frameworks */, 164 | CDC904CC193E3BAF00E878A8 /* HelloWorld */, 165 | CDC904DF193E3BAF00E878A8 /* HelloWorldTests */, 166 | CDC904CB193E3BAF00E878A8 /* Products */, 167 | 0A27ED2031A03211CE1F4E45 /* Pods */, 168 | 249360835D1287AF8F14779B /* Frameworks */, 169 | ); 170 | sourceTree = ""; 171 | }; 172 | CDC904CB193E3BAF00E878A8 /* Products */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | CDC904CA193E3BAF00E878A8 /* HelloWorld.app */, 176 | CDC904DC193E3BAF00E878A8 /* HelloWorldTests.xctest */, 177 | ); 178 | name = Products; 179 | sourceTree = ""; 180 | }; 181 | CDC904CC193E3BAF00E878A8 /* HelloWorld */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | CDC904EC193E3BD300E878A8 /* OpenTok.framework */, 185 | CDC904CF193E3BAF00E878A8 /* AppDelegate.swift */, 186 | CDC904D1193E3BAF00E878A8 /* ViewController.swift */, 187 | CDC904D3193E3BAF00E878A8 /* Main.storyboard */, 188 | CDC904D6193E3BAF00E878A8 /* Images.xcassets */, 189 | CDC904CD193E3BAF00E878A8 /* Supporting Files */, 190 | ); 191 | path = HelloWorld; 192 | sourceTree = ""; 193 | }; 194 | CDC904CD193E3BAF00E878A8 /* Supporting Files */ = { 195 | isa = PBXGroup; 196 | children = ( 197 | CDC904EE193E3C0000E878A8 /* HelloWorld-Bridging-Header.h */, 198 | CDC904CE193E3BAF00E878A8 /* Info.plist */, 199 | ); 200 | name = "Supporting Files"; 201 | sourceTree = ""; 202 | }; 203 | CDC904DF193E3BAF00E878A8 /* HelloWorldTests */ = { 204 | isa = PBXGroup; 205 | children = ( 206 | CDC904E2193E3BAF00E878A8 /* HelloWorldTests.swift */, 207 | CDC904E0193E3BAF00E878A8 /* Supporting Files */, 208 | ); 209 | path = HelloWorldTests; 210 | sourceTree = ""; 211 | }; 212 | CDC904E0193E3BAF00E878A8 /* Supporting Files */ = { 213 | isa = PBXGroup; 214 | children = ( 215 | CDC904E1193E3BAF00E878A8 /* Info.plist */, 216 | ); 217 | name = "Supporting Files"; 218 | sourceTree = ""; 219 | }; 220 | /* End PBXGroup section */ 221 | 222 | /* Begin PBXNativeTarget section */ 223 | CDC904C9193E3BAF00E878A8 /* HelloWorld */ = { 224 | isa = PBXNativeTarget; 225 | buildConfigurationList = CDC904E6193E3BAF00E878A8 /* Build configuration list for PBXNativeTarget "HelloWorld" */; 226 | buildPhases = ( 227 | 42CFADA748C3E1F8EC381820 /* Check Pods Manifest.lock */, 228 | CDC904C6193E3BAF00E878A8 /* Sources */, 229 | CDC904C7193E3BAF00E878A8 /* Frameworks */, 230 | CDC904C8193E3BAF00E878A8 /* Resources */, 231 | 704E2CAB3E8C96124E4898E7 /* Copy Pods Resources */, 232 | 6A43121D8DF7F4123AE1D3C3 /* Embed Pods Frameworks */, 233 | ); 234 | buildRules = ( 235 | ); 236 | dependencies = ( 237 | ); 238 | name = HelloWorld; 239 | productName = HelloWorld; 240 | productReference = CDC904CA193E3BAF00E878A8 /* HelloWorld.app */; 241 | productType = "com.apple.product-type.application"; 242 | }; 243 | CDC904DB193E3BAF00E878A8 /* HelloWorldTests */ = { 244 | isa = PBXNativeTarget; 245 | buildConfigurationList = CDC904E9193E3BAF00E878A8 /* Build configuration list for PBXNativeTarget "HelloWorldTests" */; 246 | buildPhases = ( 247 | CDC904D8193E3BAF00E878A8 /* Sources */, 248 | CDC904D9193E3BAF00E878A8 /* Frameworks */, 249 | CDC904DA193E3BAF00E878A8 /* Resources */, 250 | ); 251 | buildRules = ( 252 | ); 253 | dependencies = ( 254 | CDC904DE193E3BAF00E878A8 /* PBXTargetDependency */, 255 | ); 256 | name = HelloWorldTests; 257 | productName = HelloWorldTests; 258 | productReference = CDC904DC193E3BAF00E878A8 /* HelloWorldTests.xctest */; 259 | productType = "com.apple.product-type.bundle.unit-test"; 260 | }; 261 | /* End PBXNativeTarget section */ 262 | 263 | /* Begin PBXProject section */ 264 | CDC904C2193E3BAF00E878A8 /* Project object */ = { 265 | isa = PBXProject; 266 | attributes = { 267 | LastSwiftUpdateCheck = 0710; 268 | LastUpgradeCheck = 0630; 269 | ORGANIZATIONNAME = "Patrick Quinn-Graham"; 270 | TargetAttributes = { 271 | CDC904C9193E3BAF00E878A8 = { 272 | CreatedOnToolsVersion = 6.0; 273 | }; 274 | CDC904DB193E3BAF00E878A8 = { 275 | CreatedOnToolsVersion = 6.0; 276 | TestTargetID = CDC904C9193E3BAF00E878A8; 277 | }; 278 | }; 279 | }; 280 | buildConfigurationList = CDC904C5193E3BAF00E878A8 /* Build configuration list for PBXProject "HelloWorld" */; 281 | compatibilityVersion = "Xcode 3.2"; 282 | developmentRegion = English; 283 | hasScannedForEncodings = 0; 284 | knownRegions = ( 285 | en, 286 | Base, 287 | ); 288 | mainGroup = CDC904C1193E3BAF00E878A8; 289 | productRefGroup = CDC904CB193E3BAF00E878A8 /* Products */; 290 | projectDirPath = ""; 291 | projectRoot = ""; 292 | targets = ( 293 | CDC904C9193E3BAF00E878A8 /* HelloWorld */, 294 | CDC904DB193E3BAF00E878A8 /* HelloWorldTests */, 295 | ); 296 | }; 297 | /* End PBXProject section */ 298 | 299 | /* Begin PBXResourcesBuildPhase section */ 300 | CDC904C8193E3BAF00E878A8 /* Resources */ = { 301 | isa = PBXResourcesBuildPhase; 302 | buildActionMask = 2147483647; 303 | files = ( 304 | CDC904D5193E3BAF00E878A8 /* Main.storyboard in Resources */, 305 | CDC904D7193E3BAF00E878A8 /* Images.xcassets in Resources */, 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | }; 309 | CDC904DA193E3BAF00E878A8 /* Resources */ = { 310 | isa = PBXResourcesBuildPhase; 311 | buildActionMask = 2147483647; 312 | files = ( 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | }; 316 | /* End PBXResourcesBuildPhase section */ 317 | 318 | /* Begin PBXShellScriptBuildPhase section */ 319 | 42CFADA748C3E1F8EC381820 /* Check Pods Manifest.lock */ = { 320 | isa = PBXShellScriptBuildPhase; 321 | buildActionMask = 2147483647; 322 | files = ( 323 | ); 324 | inputPaths = ( 325 | ); 326 | name = "Check Pods Manifest.lock"; 327 | outputPaths = ( 328 | ); 329 | runOnlyForDeploymentPostprocessing = 0; 330 | shellPath = /bin/sh; 331 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 332 | showEnvVarsInLog = 0; 333 | }; 334 | 6A43121D8DF7F4123AE1D3C3 /* Embed Pods Frameworks */ = { 335 | isa = PBXShellScriptBuildPhase; 336 | buildActionMask = 2147483647; 337 | files = ( 338 | ); 339 | inputPaths = ( 340 | ); 341 | name = "Embed Pods Frameworks"; 342 | outputPaths = ( 343 | ); 344 | runOnlyForDeploymentPostprocessing = 0; 345 | shellPath = /bin/sh; 346 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-HelloWorld/Pods-HelloWorld-frameworks.sh\"\n"; 347 | showEnvVarsInLog = 0; 348 | }; 349 | 704E2CAB3E8C96124E4898E7 /* Copy Pods Resources */ = { 350 | isa = PBXShellScriptBuildPhase; 351 | buildActionMask = 2147483647; 352 | files = ( 353 | ); 354 | inputPaths = ( 355 | ); 356 | name = "Copy Pods Resources"; 357 | outputPaths = ( 358 | ); 359 | runOnlyForDeploymentPostprocessing = 0; 360 | shellPath = /bin/sh; 361 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-HelloWorld/Pods-HelloWorld-resources.sh\"\n"; 362 | showEnvVarsInLog = 0; 363 | }; 364 | /* End PBXShellScriptBuildPhase section */ 365 | 366 | /* Begin PBXSourcesBuildPhase section */ 367 | CDC904C6193E3BAF00E878A8 /* Sources */ = { 368 | isa = PBXSourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | CDC904D2193E3BAF00E878A8 /* ViewController.swift in Sources */, 372 | CDC904D0193E3BAF00E878A8 /* AppDelegate.swift in Sources */, 373 | ); 374 | runOnlyForDeploymentPostprocessing = 0; 375 | }; 376 | CDC904D8193E3BAF00E878A8 /* Sources */ = { 377 | isa = PBXSourcesBuildPhase; 378 | buildActionMask = 2147483647; 379 | files = ( 380 | CDC904E3193E3BAF00E878A8 /* HelloWorldTests.swift in Sources */, 381 | ); 382 | runOnlyForDeploymentPostprocessing = 0; 383 | }; 384 | /* End PBXSourcesBuildPhase section */ 385 | 386 | /* Begin PBXTargetDependency section */ 387 | CDC904DE193E3BAF00E878A8 /* PBXTargetDependency */ = { 388 | isa = PBXTargetDependency; 389 | target = CDC904C9193E3BAF00E878A8 /* HelloWorld */; 390 | targetProxy = CDC904DD193E3BAF00E878A8 /* PBXContainerItemProxy */; 391 | }; 392 | /* End PBXTargetDependency section */ 393 | 394 | /* Begin PBXVariantGroup section */ 395 | CDC904D3193E3BAF00E878A8 /* Main.storyboard */ = { 396 | isa = PBXVariantGroup; 397 | children = ( 398 | CDC904D4193E3BAF00E878A8 /* Base */, 399 | ); 400 | name = Main.storyboard; 401 | sourceTree = ""; 402 | }; 403 | /* End PBXVariantGroup section */ 404 | 405 | /* Begin XCBuildConfiguration section */ 406 | CDC904E4193E3BAF00E878A8 /* Debug */ = { 407 | isa = XCBuildConfiguration; 408 | buildSettings = { 409 | ALWAYS_SEARCH_USER_PATHS = NO; 410 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 411 | CLANG_CXX_LIBRARY = "libc++"; 412 | CLANG_ENABLE_MODULES = YES; 413 | CLANG_ENABLE_OBJC_ARC = YES; 414 | CLANG_WARN_BOOL_CONVERSION = YES; 415 | CLANG_WARN_CONSTANT_CONVERSION = YES; 416 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 417 | CLANG_WARN_EMPTY_BODY = YES; 418 | CLANG_WARN_ENUM_CONVERSION = YES; 419 | CLANG_WARN_INT_CONVERSION = YES; 420 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 421 | CLANG_WARN_UNREACHABLE_CODE = YES; 422 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 423 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 424 | COPY_PHASE_STRIP = NO; 425 | ENABLE_STRICT_OBJC_MSGSEND = YES; 426 | GCC_C_LANGUAGE_STANDARD = gnu99; 427 | GCC_DYNAMIC_NO_PIC = NO; 428 | GCC_OPTIMIZATION_LEVEL = 0; 429 | GCC_PREPROCESSOR_DEFINITIONS = ( 430 | "DEBUG=1", 431 | "$(inherited)", 432 | ); 433 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 434 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 435 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 436 | GCC_WARN_UNDECLARED_SELECTOR = YES; 437 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 438 | GCC_WARN_UNUSED_FUNCTION = YES; 439 | GCC_WARN_UNUSED_VARIABLE = YES; 440 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 441 | METAL_ENABLE_DEBUG_INFO = YES; 442 | ONLY_ACTIVE_ARCH = YES; 443 | SDKROOT = iphoneos; 444 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 445 | TARGETED_DEVICE_FAMILY = "1,2"; 446 | }; 447 | name = Debug; 448 | }; 449 | CDC904E5193E3BAF00E878A8 /* Release */ = { 450 | isa = XCBuildConfiguration; 451 | buildSettings = { 452 | ALWAYS_SEARCH_USER_PATHS = NO; 453 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 454 | CLANG_CXX_LIBRARY = "libc++"; 455 | CLANG_ENABLE_MODULES = YES; 456 | CLANG_ENABLE_OBJC_ARC = YES; 457 | CLANG_WARN_BOOL_CONVERSION = YES; 458 | CLANG_WARN_CONSTANT_CONVERSION = YES; 459 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 460 | CLANG_WARN_EMPTY_BODY = YES; 461 | CLANG_WARN_ENUM_CONVERSION = YES; 462 | CLANG_WARN_INT_CONVERSION = YES; 463 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 464 | CLANG_WARN_UNREACHABLE_CODE = YES; 465 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 466 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 467 | COPY_PHASE_STRIP = YES; 468 | ENABLE_NS_ASSERTIONS = NO; 469 | ENABLE_STRICT_OBJC_MSGSEND = YES; 470 | GCC_C_LANGUAGE_STANDARD = gnu99; 471 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 472 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 473 | GCC_WARN_UNDECLARED_SELECTOR = YES; 474 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 475 | GCC_WARN_UNUSED_FUNCTION = YES; 476 | GCC_WARN_UNUSED_VARIABLE = YES; 477 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 478 | METAL_ENABLE_DEBUG_INFO = NO; 479 | SDKROOT = iphoneos; 480 | TARGETED_DEVICE_FAMILY = "1,2"; 481 | VALIDATE_PRODUCT = YES; 482 | }; 483 | name = Release; 484 | }; 485 | CDC904E7193E3BAF00E878A8 /* Debug */ = { 486 | isa = XCBuildConfiguration; 487 | baseConfigurationReference = 2207FCF67FFBA5751C2CE546 /* Pods-HelloWorld.debug.xcconfig */; 488 | buildSettings = { 489 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 490 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 491 | CLANG_ENABLE_MODULES = YES; 492 | ENABLE_BITCODE = NO; 493 | FRAMEWORK_SEARCH_PATHS = ( 494 | "$(inherited)", 495 | "$(PROJECT_DIR)/HelloWorld", 496 | ); 497 | INFOPLIST_FILE = HelloWorld/Info.plist; 498 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 499 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 500 | OTHER_LDFLAGS = "-ObjC"; 501 | PRODUCT_NAME = "$(TARGET_NAME)"; 502 | SWIFT_OBJC_BRIDGING_HEADER = "HelloWorld-Bridging-Header.h"; 503 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 504 | VALID_ARCHS = "arm64 armv7"; 505 | }; 506 | name = Debug; 507 | }; 508 | CDC904E8193E3BAF00E878A8 /* Release */ = { 509 | isa = XCBuildConfiguration; 510 | baseConfigurationReference = 1C79593A8377560D907374C8 /* Pods-HelloWorld.release.xcconfig */; 511 | buildSettings = { 512 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 513 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 514 | CLANG_ENABLE_MODULES = YES; 515 | ENABLE_BITCODE = NO; 516 | FRAMEWORK_SEARCH_PATHS = ( 517 | "$(inherited)", 518 | "$(PROJECT_DIR)/HelloWorld", 519 | ); 520 | INFOPLIST_FILE = HelloWorld/Info.plist; 521 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 522 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 523 | OTHER_LDFLAGS = "-ObjC"; 524 | PRODUCT_NAME = "$(TARGET_NAME)"; 525 | SWIFT_OBJC_BRIDGING_HEADER = "HelloWorld-Bridging-Header.h"; 526 | VALID_ARCHS = "arm64 armv7"; 527 | }; 528 | name = Release; 529 | }; 530 | CDC904EA193E3BAF00E878A8 /* Debug */ = { 531 | isa = XCBuildConfiguration; 532 | buildSettings = { 533 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/HelloWorld.app/HelloWorld"; 534 | FRAMEWORK_SEARCH_PATHS = ( 535 | "$(SDKROOT)/Developer/Library/Frameworks", 536 | "$(inherited)", 537 | ); 538 | GCC_PREPROCESSOR_DEFINITIONS = ( 539 | "DEBUG=1", 540 | "$(inherited)", 541 | ); 542 | INFOPLIST_FILE = HelloWorldTests/Info.plist; 543 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 544 | METAL_ENABLE_DEBUG_INFO = YES; 545 | PRODUCT_NAME = "$(TARGET_NAME)"; 546 | TEST_HOST = "$(BUNDLE_LOADER)"; 547 | }; 548 | name = Debug; 549 | }; 550 | CDC904EB193E3BAF00E878A8 /* Release */ = { 551 | isa = XCBuildConfiguration; 552 | buildSettings = { 553 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/HelloWorld.app/HelloWorld"; 554 | FRAMEWORK_SEARCH_PATHS = ( 555 | "$(SDKROOT)/Developer/Library/Frameworks", 556 | "$(inherited)", 557 | ); 558 | INFOPLIST_FILE = HelloWorldTests/Info.plist; 559 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 560 | METAL_ENABLE_DEBUG_INFO = NO; 561 | PRODUCT_NAME = "$(TARGET_NAME)"; 562 | TEST_HOST = "$(BUNDLE_LOADER)"; 563 | }; 564 | name = Release; 565 | }; 566 | /* End XCBuildConfiguration section */ 567 | 568 | /* Begin XCConfigurationList section */ 569 | CDC904C5193E3BAF00E878A8 /* Build configuration list for PBXProject "HelloWorld" */ = { 570 | isa = XCConfigurationList; 571 | buildConfigurations = ( 572 | CDC904E4193E3BAF00E878A8 /* Debug */, 573 | CDC904E5193E3BAF00E878A8 /* Release */, 574 | ); 575 | defaultConfigurationIsVisible = 0; 576 | defaultConfigurationName = Release; 577 | }; 578 | CDC904E6193E3BAF00E878A8 /* Build configuration list for PBXNativeTarget "HelloWorld" */ = { 579 | isa = XCConfigurationList; 580 | buildConfigurations = ( 581 | CDC904E7193E3BAF00E878A8 /* Debug */, 582 | CDC904E8193E3BAF00E878A8 /* Release */, 583 | ); 584 | defaultConfigurationIsVisible = 0; 585 | defaultConfigurationName = Release; 586 | }; 587 | CDC904E9193E3BAF00E878A8 /* Build configuration list for PBXNativeTarget "HelloWorldTests" */ = { 588 | isa = XCConfigurationList; 589 | buildConfigurations = ( 590 | CDC904EA193E3BAF00E878A8 /* Debug */, 591 | CDC904EB193E3BAF00E878A8 /* Release */, 592 | ); 593 | defaultConfigurationIsVisible = 0; 594 | defaultConfigurationName = Release; 595 | }; 596 | /* End XCConfigurationList section */ 597 | }; 598 | rootObject = CDC904C2193E3BAF00E878A8 /* Project object */; 599 | } 600 | -------------------------------------------------------------------------------- /HelloWorld.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /HelloWorld.xcodeproj/project.xcworkspace/xcshareddata/HelloWorld.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 119A4325-D007-4498-A1BE-3834142312AB 9 | IDESourceControlProjectName 10 | HelloWorld 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | CEE117A0E658AE5CF6B6D735C8597739491A03E3 14 | github.com:thepatrick/Opentok-HelloWorld-Swift.git 15 | 16 | IDESourceControlProjectPath 17 | HelloWorld.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | CEE117A0E658AE5CF6B6D735C8597739491A03E3 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | github.com:thepatrick/Opentok-HelloWorld-Swift.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | CEE117A0E658AE5CF6B6D735C8597739491A03E3 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | CEE117A0E658AE5CF6B6D735C8597739491A03E3 36 | IDESourceControlWCCName 37 | Opentok-HelloWorld-Swift 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /HelloWorld.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /HelloWorld/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // HelloWorld 4 | // 5 | // Created by Patrick Quinn-Graham on 3/06/2014. 6 | // Copyright (c) 2014 Patrick Quinn-Graham. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool { 17 | // Override point for customization after application launch. 18 | return true 19 | 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 | -------------------------------------------------------------------------------- /HelloWorld/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 | -------------------------------------------------------------------------------- /HelloWorld/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 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /HelloWorld/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } -------------------------------------------------------------------------------- /HelloWorld/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.pftqg.tokbox.${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 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /HelloWorld/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // HelloWorld 4 | // 5 | // Created by Patrick Quinn-Graham on 3/06/2014. 6 | // Copyright (c) 2014 TokBox, Inc. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let videoWidth : CGFloat = 320 12 | let videoHeight : CGFloat = 240 13 | 14 | // *** Fill the following variables using your own Project info *** 15 | // *** https://dashboard.tokbox.com/projects *** 16 | // Replace with your OpenTok API key 17 | let ApiKey = "" 18 | // Replace with your generated session ID 19 | let SessionID = "" 20 | // Replace with your generated token 21 | let Token = "" 22 | 23 | // Change to YES to subscribe to your own stream. 24 | let SubscribeToSelf = false 25 | 26 | class ViewController: UIViewController, OTSessionDelegate, OTSubscriberKitDelegate, OTPublisherDelegate { 27 | 28 | var session : OTSession? 29 | var publisher : OTPublisher? 30 | var subscriber : OTSubscriber? 31 | 32 | override func viewDidLoad() { 33 | super.viewDidLoad() 34 | 35 | // Step 1: As the view is loaded initialize a new instance of OTSession 36 | session = OTSession(apiKey: ApiKey, sessionId: SessionID, delegate: self) 37 | } 38 | 39 | override func viewWillAppear(animated: Bool) { 40 | // Step 2: As the view comes into the foreground, begin the connection process. 41 | doConnect() 42 | } 43 | 44 | override func prefersStatusBarHidden() -> Bool { 45 | return true 46 | } 47 | 48 | // MARK: - OpenTok Methods 49 | 50 | /** 51 | * Asynchronously begins the session connect process. Some time later, we will 52 | * expect a delegate method to call us back with the results of this action. 53 | */ 54 | func doConnect() { 55 | if let session = self.session { 56 | var maybeError : OTError? 57 | session.connectWithToken(Token, error: &maybeError) 58 | if let error = maybeError { 59 | showAlert(error.localizedDescription) 60 | } 61 | } 62 | } 63 | 64 | /** 65 | * Sets up an instance of OTPublisher to use with this session. OTPubilsher 66 | * binds to the device camera and microphone, and will provide A/V streams 67 | * to the OpenTok session. 68 | */ 69 | func doPublish() { 70 | publisher = OTPublisher(delegate: self) 71 | 72 | var maybeError : OTError? 73 | session?.publish(publisher, error: &maybeError) 74 | 75 | if let error = maybeError { 76 | showAlert(error.localizedDescription) 77 | } 78 | 79 | view.addSubview(publisher!.view) 80 | publisher!.view.frame = CGRect(x: 0.0, y: 0, width: videoWidth, height: videoHeight) 81 | } 82 | 83 | /** 84 | * Instantiates a subscriber for the given stream and asynchronously begins the 85 | * process to begin receiving A/V content for this stream. Unlike doPublish, 86 | * this method does not add the subscriber to the view hierarchy. Instead, we 87 | * add the subscriber only after it has connected and begins receiving data. 88 | */ 89 | func doSubscribe(stream : OTStream) { 90 | if let session = self.session { 91 | subscriber = OTSubscriber(stream: stream, delegate: self) 92 | 93 | var maybeError : OTError? 94 | session.subscribe(subscriber, error: &maybeError) 95 | if let error = maybeError { 96 | showAlert(error.localizedDescription) 97 | } 98 | } 99 | } 100 | 101 | /** 102 | * Cleans the subscriber from the view hierarchy, if any. 103 | */ 104 | func doUnsubscribe() { 105 | if let subscriber = self.subscriber { 106 | var maybeError : OTError? 107 | session?.unsubscribe(subscriber, error: &maybeError) 108 | if let error = maybeError { 109 | showAlert(error.localizedDescription) 110 | } 111 | 112 | subscriber.view.removeFromSuperview() 113 | self.subscriber = nil 114 | } 115 | } 116 | 117 | // MARK: - OTSession delegate callbacks 118 | 119 | func sessionDidConnect(session: OTSession) { 120 | NSLog("sessionDidConnect (\(session.sessionId))") 121 | 122 | // Step 2: We have successfully connected, now instantiate a publisher and 123 | // begin pushing A/V streams into OpenTok. 124 | doPublish() 125 | } 126 | 127 | func sessionDidDisconnect(session : OTSession) { 128 | NSLog("Session disconnected (\( session.sessionId))") 129 | } 130 | 131 | func session(session: OTSession, streamCreated stream: OTStream) { 132 | NSLog("session streamCreated (\(stream.streamId))") 133 | 134 | // Step 3a: (if NO == subscribeToSelf): Begin subscribing to a stream we 135 | // have seen on the OpenTok session. 136 | if subscriber == nil && !SubscribeToSelf { 137 | doSubscribe(stream) 138 | } 139 | } 140 | 141 | func session(session: OTSession, streamDestroyed stream: OTStream) { 142 | NSLog("session streamCreated (\(stream.streamId))") 143 | 144 | if subscriber?.stream.streamId == stream.streamId { 145 | doUnsubscribe() 146 | } 147 | } 148 | 149 | func session(session: OTSession, connectionCreated connection : OTConnection) { 150 | NSLog("session connectionCreated (\(connection.connectionId))") 151 | } 152 | 153 | func session(session: OTSession, connectionDestroyed connection : OTConnection) { 154 | NSLog("session connectionDestroyed (\(connection.connectionId))") 155 | } 156 | 157 | func session(session: OTSession, didFailWithError error: OTError) { 158 | NSLog("session didFailWithError (%@)", error) 159 | } 160 | 161 | // MARK: - OTSubscriber delegate callbacks 162 | 163 | func subscriberDidConnectToStream(subscriberKit: OTSubscriberKit) { 164 | NSLog("subscriberDidConnectToStream (\(subscriberKit))") 165 | if let view = subscriber?.view { 166 | view.frame = CGRect(x: 0.0, y: videoHeight, width: videoWidth, height: videoHeight) 167 | self.view.addSubview(view) 168 | } 169 | } 170 | 171 | func subscriber(subscriber: OTSubscriberKit, didFailWithError error : OTError) { 172 | NSLog("subscriber %@ didFailWithError %@", subscriber.stream.streamId, error) 173 | } 174 | 175 | // MARK: - OTPublisher delegate callbacks 176 | 177 | func publisher(publisher: OTPublisherKit, streamCreated stream: OTStream) { 178 | NSLog("publisher streamCreated %@", stream) 179 | 180 | // Step 3b: (if YES == subscribeToSelf): Our own publisher is now visible to 181 | // all participants in the OpenTok session. We will attempt to subscribe to 182 | // our own stream. Expect to see a slight delay in the subscriber video and 183 | // an echo of the audio coming from the device microphone. 184 | if subscriber == nil && SubscribeToSelf { 185 | doSubscribe(stream) 186 | } 187 | } 188 | 189 | func publisher(publisher: OTPublisherKit, streamDestroyed stream: OTStream) { 190 | NSLog("publisher streamDestroyed %@", stream) 191 | 192 | if subscriber?.stream.streamId == stream.streamId { 193 | doUnsubscribe() 194 | } 195 | } 196 | 197 | func publisher(publisher: OTPublisherKit, didFailWithError error: OTError) { 198 | NSLog("publisher didFailWithError %@", error) 199 | } 200 | 201 | // MARK: - Helpers 202 | 203 | func showAlert(message: String) { 204 | // show alertview on main UI 205 | dispatch_async(dispatch_get_main_queue()) { 206 | let al = UIAlertView(title: "OTError", message: message, delegate: nil, cancelButtonTitle: "OK") 207 | } 208 | } 209 | 210 | } 211 | 212 | -------------------------------------------------------------------------------- /HelloWorldTests/HelloWorldTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HelloWorldTests.swift 3 | // HelloWorldTests 4 | // 5 | // Created by Patrick Quinn-Graham on 3/06/2014. 6 | // Copyright (c) 2014 Patrick Quinn-Graham. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class HelloWorldTests: 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 | // This is an example of a functional test case. 25 | XCTAssert(true, "Pass") 26 | } 27 | 28 | func testPerformanceExample() { 29 | // This is an example of a performance test case. 30 | self.measureBlock() { 31 | // Put the code you want to measure the time of here. 32 | } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /HelloWorldTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.pftqg.tokbox.${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 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | platform :ios, '8.0' 3 | use_frameworks! 4 | 5 | target 'HelloWorld' do 6 | pod 'OpenTok', '~> 2.6' 7 | end 8 | 9 | target 'HelloWorldTests' do 10 | 11 | end 12 | 13 | -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - OpenTok (2.6.1) 3 | 4 | DEPENDENCIES: 5 | - OpenTok (~> 2.6) 6 | 7 | SPEC CHECKSUMS: 8 | OpenTok: 6c094ee06dc954a4327c0a736f494f0eaf35c48c 9 | 10 | COCOAPODS: 0.39.0 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | OpenTok Hello World (in swift) 2 | ============================== 3 | 4 | Install 5 | ------- 6 | 7 | 8 | # install SDK from Podfile 9 | $ pod install 10 | 11 | # open the project in XCode and run on your device 12 | $ open HelloWorld.xcworkspace 13 | 14 | 15 | Modify `ViewController.swift` with your credential. --------------------------------------------------------------------------------