Closed insomnia-creator closed 8 months ago
showing the exact input command used + script output is always helpful (and is requested in the Issues template).
delete spotify app from applications directory. re-run spotx-bash with --installmac
flag (plus any additional flags you may be using) to have spotx-bash reinstall and patch spotify. If issue still happens.. share the input command + script output via screenshot.
then we can begin resolving the issue.
it runs fine but gives the error once i open
Thanks. And.. strange. Can you run the following commands and screenshot input/output?
1.
command -v codesign
codesign -dv /Applications/Spotify.app
codesign -f --deep -s - /Applications/Spotify.app
Command # 1
just checks that the command the script is using to confirm codesign is installed actually works on your system... it should print the location of codesign.
Command # 2
would confirm if the app has an ad hoc signature or not (if it doesn't then the app was not re-signed by SpotX-Bash which explains the codesign error).
Command # 3
attempts to codesign the Spotify.app bundle.
If command # 1
works without error but # 3
fails then it's possible the issue is due to a macOS "security setting". You would need to to add your terminal app which you are using to the list in System Settings > Privacy & Security > App Management
for codesign to be "allowed" to re-sign apps. If not using the default Terminal app or you are using the default Terminal app but it is not listed in the App Management
allowances, this could explain why the script was unable to codesign the app.
Once the Spotify.app is re-codesigned using command # 3
, the app should no longer crash on run.
I have codesign binary: Command 2: Command 3: i've tried all of these commands before with no result,
Quick edit: I believe this is your 'app management right?' i've given alacritty permissions
SOLUTION: RUN INSTALL SCRIPT WITH TERMINAL(macos)
Maybe can we at least change script to prompt user if using terminal emulator?
i've tried all of these commands before with no result,
SOLUTION: RUN INSTALL SCRIPT WITH TERMINAL(macos)
Maybe can we at least change script to prompt user if using terminal emulator?
and this is why it's always best to share all input/output when dealing with cli issues. your output from command # 3
seems to explain exactly what's going on.
It appears that due to how alacritty is treated by macOS (and how alacritty works with the system), some extended attributes are being attached to the Spotify app while SpotX-Bash is working with it. This causes issues when attempting to re-codesign and the codesign never succeeds and you run into issues such as those being reported on this page.
I've updated the repo which should hopefully fix this (inb4 copycat Spotify repos steal this too...).
Please delete /Applications/Spotify.app and reattempt the following in Alacritty:
bash <(curl -sSL https://spotx-official.github.io/run.sh) --installmac
I would be surprised if Spotify crashes now -- but if it STILL crashes, supply the input/output of:
xattr -lr /Applications/Spotify.app
Your PR is working around the issue but not solving the actual problem -- this will be closed and not accepted.
Even if all is now working for you, please report back.
It works all well, I've tried it with alacritty right now and it's working fine. Thanks for your help.
🧐 Have you fully read the README and viewed similar issues?
Сountry of your account
India
What is your Spotify Plan?
Free
Do you have Spicetify installed?
No
ℹ Computer information
📝 Description
🖥️ Terminal Input/Output
Running install script works all fine
📸 Screenshots