others-how to solve 'file:///Users/xxx/XcodeProjects/LanrenReceiver1/LanrenReceiver1/Base.lproj/LaunchScreen.storyboard: error: Illegal Configuration: Launch screens may not set custom classnames' when using launchscreen in iOS apps within xcode

1. Purpose

In this post, I would demo how to solve the below exception when configuring launchscreen in iOS apps. This error is happened when I want to add admob units to the launch screen of my app.

file:///Users/xxx/XcodeProjects/LanrenReceiver1/LanrenReceiver1/Base.lproj/LaunchScreen.storyboard: error: Illegal Configuration: Launch screens may not set custom classnames

2. Environment

  • Mac OS 10.15
  • Xcode 12
  • Swift 5

3. The solution

Make sure you have unchecked the ‘set as launch screen’ checkbox of the launch screen story board.

image-20210425204646715

And we should check as follows:

image-20210425204728604

Now it works!

4. Summary

In this post, I demonstrated how to solve the ‘Launch screens may not set custom classnames’ error when adding admob ad units to a launch screen.