-1
iOSクライアントを搭載したローカルにインストールされたMFPサーバーを使用して、IBM MobileFirstサンプルコードでテストしています。私はエラーまたはトークンを私に与えると次のコードを期待しています。しかし、それらはどちらもゼロです。MobileFirstおよびSwiftクライアントにデバイスを登録できません
WLAuthorizationManager.sharedInstance()obtainAccessToken(forScope:NIL){(トークン、エラー) - 検索する
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」で得られるエラーは何ですか? –