-1
我正在使用带有iOS客户端的本地安装的MFP服务器使用IBM MobileFirst示例代码进行测试。我期待以下代码给我一个错误或令牌。但是,他们都是零。 。无法使用MobileFirst和Swift客户端注册设备
WLAuthorizationManager.sharedInstance()obtainAccessToken(forScope:无){(令牌,错误) - >在
if (error != nil) {
self.titleLabel.text = "Bummer..."
self.connectionStatusLabel.text = "Failed to connect to MobileFirst Server\n\(serverURL)"
print("Did not recieve an access token from server: " + error.debugDescription)
} else {
self.titleLabel.text = "Yay!"
self.connectionStatusLabel.text = "Connected to MobileFirst Server\n\(serverURL)"
print("Recieved the following access token value: " + token!.value)
}
self.testServerButton.isEnabled = true
}
你在'error.debugDescription'中得到了什么错误? –