Last remaining fixes for swift 3
This commit is contained in:
@@ -247,7 +247,7 @@
|
||||
TargetAttributes = {
|
||||
0C3CAEA31C3350C800B856AD = {
|
||||
CreatedOnToolsVersion = 7.2;
|
||||
DevelopmentTeam = 64S2YWUDC5;
|
||||
DevelopmentTeam = FZ6BMA5HA9;
|
||||
LastSwiftMigration = 0810;
|
||||
};
|
||||
};
|
||||
@@ -421,6 +421,7 @@
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
DEVELOPMENT_TEAM = FZ6BMA5HA9;
|
||||
INFOPLIST_FILE = "$(SRCROOT)/XIONControlPanel/SupportingFiles/Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
@@ -443,6 +444,7 @@
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
DEVELOPMENT_TEAM = FZ6BMA5HA9;
|
||||
INFOPLIST_FILE = "$(SRCROOT)/XIONControlPanel/SupportingFiles/Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
|
||||
@@ -34,7 +34,7 @@ class VisualizationViewController: UIViewController
|
||||
|
||||
override func loadView()
|
||||
{
|
||||
let opts = [SCNView.Option.preferredRenderingAPI.rawValue : SCNRenderingAPI.openGLES2]
|
||||
let opts = [SCNView.Option.preferredRenderingAPI.rawValue : SCNRenderingAPI.openGLES2.rawValue]
|
||||
let view = SCNView(frame: UIScreen.main.bounds, options: opts)
|
||||
view.backgroundColor = UIColor.black
|
||||
view.scene = _scene
|
||||
|
||||
@@ -156,14 +156,14 @@ internal class FetchDevicesOperation : WemoOperation
|
||||
{
|
||||
let semaphore = Semaphore(value: 0)
|
||||
let url = self.baseURL.appendingPathComponent("api/environment")
|
||||
let task = self.session.dataTask(with: url, completionHandler: { (data: Data?, response: URLResponse?, error: NSError?) -> Void in
|
||||
let task = self.session.dataTask(with: url, completionHandler: { (data: Data?, response: URLResponse?, error: Error?) -> Void in
|
||||
if (data != nil) {
|
||||
self.devices = self._parseDevices(data!)
|
||||
} else {
|
||||
self.error = NSError.xionError(.connectionError, underlying: error)
|
||||
self.error = error
|
||||
}
|
||||
semaphore.signal()
|
||||
} as! (Data?, URLResponse?, Error?) -> Void)
|
||||
})
|
||||
task.resume()
|
||||
semaphore.wait()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user