denoni / SpotifyClone

An iOS app that visually clones Spotify's app and consumes the official Spotify's Web API to show(and play) songs, podcasts, artists and more.
MIT License
235 stars 47 forks source link

How to login #6

Open Hung6129 opened 1 year ago

Hung6129 commented 1 year ago

image image

So i try to login using one of my created Spotify account This happen

2023-03-07 14:59:33.353601+0700 SpotifyClone[14831:2666004] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2023-03-07 14:59:33.353668+0700 SpotifyClone[14831:2666004] [ProcessSuspension] 0x1140bc300 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=15029, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2023-03-07 14:59:34.784421+0700 SpotifyClone[14831:2658531] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2023-03-07 14:59:40.019264+0700 SpotifyClone[14831:2658531] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-03-07 14:59:40.019434+0700 SpotifyClone[14831:2658531] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-03-07 14:59:40.051591+0700 SpotifyClone[14831:2666004] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>
2023-03-07 14:59:40.051674+0700 SpotifyClone[14831:2666004] [ProcessSuspension] 0x11401d440 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=15031, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}

I added clientid and clientserver I also add a user and access May i ask how can i login from here

Thanks

t8s1n commented 1 year ago

having the same issue

romankotko commented 1 year ago

Same issue for me

denoni commented 1 year ago

Hello, there! Sorry for the late reply.

The problem is that you need to specify the redirect_uri to be the same both in your code and in https://developer.spotify.com/dashboard/.

Do the following:

  1. Open the Spotify Developer Dashboard
  2. Select your current project(or create one)
  3. Select "Edit settings"
  4. In Redirect URIs, type any website(for the sake of simplicity I recommend: https://www.github.com)
  5. In your code, in AuthViewModel.swift change the redirectURI to the same website(by default it's set to https://www.github.com).