iOS Swift中Spotify SDK授权遇未知错误,排查无果求解决
Spotify iOS SDK授权失败,日志提示“An unknown error has occurred”
我已经查阅Spotify官方指南、各类技术文章及YouTube教程,甚至运行他人的现成项目,但所有授权操作均失败。打开Spotify后界面显示“X”,日志始终提示An unknown error has occurred。
我尝试过两种授权方式,结果完全一致:
appRemote.authorizeAndPlayURI("") // 也试过这种方式 sessionManager.initiateSession(with: scopes, options: .clientOnly)
info.plist配置已确认无误,Spotify控制台的Bundle ID和Redirect URI也完全匹配,当前info.plist相关内容如下:
<key>LSApplicationQueriesSchemes</key> <array> <string>spotify</string> </array> <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>com.blaBlaBla.blaBlaBla</string> <key>CFBundleURLSchemes</key> <array> <string>blaBlaBla</string> </array> </dict> </array>
【更新】我已将个人Spotify账号添加到开发模式的授权用户列表中,但问题仍未解决。
请问问题可能出在哪里?该如何修复?感谢任何可行的建议。
内容的提问来源于stack exchange,提问作者Koder 228
相关产品推荐
相关产品推荐

