Skip to content

Instantly share code, notes, and snippets.

@kdembler
Last active March 11, 2024 03:53
Show Gist options
  • Save kdembler/181fc7b7c3e4be27ed936152940cf341 to your computer and use it in GitHub Desktop.
Save kdembler/181fc7b7c3e4be27ed936152940cf341 to your computer and use it in GitHub Desktop.
Fix League of Legends client not launching after champion select on macOS

The issue

After fresh install of League of Legends on macOS with case-sensitive APFS volume it's not possible to start League of Legends game, after champion selection the launcher won't open the game client and is stuck with reconnect button.

Solution

Terminal method is probably more reliable as you can see real file names within terminal opposite to Finder which "beautifies" them so you can't be sure what the actual file name is.

Note that League patcher will probably install updates under old filename so it's possible that these steps will need to be taken after every patch until Riot fixes it.

Terminal.app

  1. Open Terminal.app from Applications
  2. Browse to League contents with cd /Applications/League of Legends.app/Contents/LoL/RADS/solutions/lol_game_client_sln/releases/
  3. At this point you need to list this directory's content to find most recent release number with ls
  4. Navigate to release's content: cd 0.0.1.49/deploy/. Replace release with the one from step 3
  5. Run mv LeagueofLegends.app LeagueOfLegends.app

Finder

  1. Open Finder
  2. Press Cmd+Shift+G
  3. Type /Applications/League of Legends.app/Contents/LoL/RADS/solutions/lol_game_client_sln/releases/
  4. Open directory with most recent release
  5. Open deploy directory
  6. Right click League Of Legends and choose Rename
  7. Remove all spaces from the name so it looks like LeagueOfLegends and press Return
  8. As mentioned before, Finder doesn't display file's real name so after renaming it will still display the old name. However, real file name should be changed

In-depth description

Turns out it's an issue with Apple's new APFS file system which changes handling of some filenames. Looking into client logs we can find:

000764.943|  ERROR|               lol-gameflow| processSpawn failed:: No such file or directory
000764.943|  ERROR|               lol-gameflow| Failed to launch the game client: processSpawn failed:: No such file or directory
000764.943|  ERROR|               lol-gameflow| Failed to launch reconnect: processSpawn failed:: No such file or directory

This hints that launcher simply cannot find client's app. Few lines above this one we can see what path launcher is looking for:

000764.940|   OKAY|               lol-gameflow| Game launch working directory: /Applications/League of Legends.app/Contents/LoL/RADS/solutions/lol_game_client_sln/releases/0.0.1.49/deploy/
000764.940|   OKAY|               lol-gameflow| Game client launch exe path: /Applications/League of Legends.app/Contents/LoL/RADS/solutions/lol_game_client_sln/releases/0.0.1.49/deploy/LeagueOfLegends.app/Contents/MacOS/LeagueofLegends

The problem lies with client app in deploy directory. Taking a look at deploy contest after fresh install on APFS volume we'll find "LeagueofLegends.app". However, launcher looks for "LeagueOfLegends.app".

Simply renaming app fixes the issue.

@Princezhm
Copy link

Eu estou com o mesmo problema, após a seleção de campeões, uma tela cinza aparece dizendo que não foi possível conectar ao servidor, me fazendo voltar ao cliente com a opção "reconectar", alguém achou alguma solução?

If you are using Mac and have installed the mobalitycs app installed, you have to delete it and restart your computer, that was my case, after deleting mobalytics it started to work. The problem was the over screen feature of that app

@andrecasal
Copy link

Eu estou com o mesmo problema, após a seleção de campeões, uma tela cinza aparece dizendo que não foi possível conectar ao servidor, me fazendo voltar ao cliente com a opção "reconectar", alguém achou alguma solução?

If you are using Mac and have installed the mobalitycs app installed, you have to delete it and restart your computer, that was my case, after deleting mobalytics it started to work. The problem was the over screen feature of that app

Removing Mobalitics worked for me too. But I didn't have to restart, only quit the app.

@rybarix
Copy link

rybarix commented Sep 15, 2023

I encountered same problem and managed to fix it.

Error from league logs:

Game client launch exe path: /Applications/League of Legends.app/Contents/LoL/Game/LeagueOfLegends.app/Contents/MacOS/LeagueofLegends
...
ERROR| rcp-be-lol-gameflow| Failed to launch the game client: processSpawn failed:: No such file or directory

Steps to FIX:

  1. Go to /Applications/League of Legends.app/Contents/LoL/Game
  2. As you see, game expected path .../Game/LeagueOfLegends.app/... but it is actually .../Game/League Of Legends.app/...
  3. Rename /Applications/League of Legends.app/Contents/LoL/Game/League Of Legends.app to /Applications/League of Legends.app/Contents/LoL/Game/LeagueOfLegends.app
  4. Try running the Practice tool.

@huynguyen96419
Copy link

I facing same issue, white screen after select champion, i tried too much step but it's doesn't work. rename LOL.app and reinstall, force repatch in hextex tool, remove and install again but it is the same.
Macbook pro 2017 - Macos 13.6.1 - Intel core i7

@trinvh
Copy link

trinvh commented Nov 18, 2023

@huynguyen96419 I'm getting the same issue, looks like it happens on VN client only

@pikeeee
Copy link

pikeeee commented Dec 4, 2023

@huynguyen96419Tôi gặp vấn đề tương tự, có vẻ như nó chỉ xảy ra trên máy khách VN

Have you tried changing the name of 'League Of Legends' to 'LeagueOfLegends'?

@ericsun95
Copy link

I faced the same issue and didn't find any useful solutions...

@hadim
Copy link

hadim commented Jan 24, 2024

Same issue here...

@huynguyen96419
Copy link

@huynguyen96419Tôi gặp vấn đề tương tự, có vẻ như nó chỉ xảy ra trên máy khách VN

Have you tried changing the name of 'League Of Legends' to 'LeagueOfLegends'?

I tried changing the name of'League Of Legends' to 'LeagueOfLegends' but still doesn't work

@hadim
Copy link

hadim commented Feb 16, 2024

You need to re-apply the hack at every update. I ended up creating a 'ew case sensitive disk. Then simply moved LoL there and it worked well.

@huynguyen96419
Copy link

You need to re-apply the hack at every update. I ended up creating a 'ew case sensitive disk. Then simply moved LoL there and it worked well.

I dont understand u, pls explain more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment