Skip to content

Instantly share code, notes, and snippets.

@kdembler
Last active June 15, 2024 22:44
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.

@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