'Could not find a storyboard named 'Main' in bundle NSBundle

I know the error message already informs the problem, but the error happens when I change App Language to English in the Xcode. (MyApp > Edit Scheme... > App Language: English).

From the tests I did, the App Region configuration has no impact on this problem.

In the PROJECT settings, in the Info tab, the location settings are below.

In the TARGETS settings, in Build Phases > Copy Bundle Resources, is the included Main.storyboard file.

And in Info.plist, the key value Main stoyboard file base name is Main.

Below is the image that shows the files inside the ios > Myapp folder.

Exception Backtrace is attached in a .txt file.

The application was developed using Flutter.

I’ve looked for different solutions, but none of them worked, can you help me?

This problem is related to: We were still unable to review your app as it crashed on launch.

Answered by ForumsContributor in 710131022

By default, within the iOS > Runner folder when a Flutter project is created, a folder named Base.lproj is generated, the error caused by changing the App Language for English setting is related to that folder, in my project that folder did not exist, only a folder named pt-BR.lproj and even generating a folder en.lproj, the error was not solved. I found that when the app first went up in the App Store, there was the Base.lproj folder and there was no pt-BR.lproj folder. So I searched which branch was responsible for this change and after finding, the branch changes were reverted (the main one was the return of the folder Base.lproj and the deletion of the folder pt-BR.lproj, in addition to the update of the location references in the file Info.plist). After these changes, the same tests that generated the error were done and the problem was solved.

What is the development language ?

I understand it is Portuguese ?

Usually you have: Main (Base) for base language

Then a localisation file for each language (may exist also for Base language).

I do not see Base here.

Could you show the Localisation you have in the File attributes of Main storyboard ?

Note: But you have no Launch in english. Is it on purpose ?

What is the development language?

R: Portuguese

I understand it is Portuguese ?

R: Yes

Usually you have: Main (Base) for base language

Then a localisation file for each language (may exist also for Base language).

I do not see Base here.

R: Yes, I couldn’t generate Main (Base) even by checking the Use Base Internalization option. How can I generate this file?

Could you show the Localisation you have in the File attributes of Main storyboard ?

R: Would it be the contents of the Main.storyboard or Main.strings file?

Note: But you have no Launch in english. Is it on purpose ?

R: It was found to simulate the error reported here: https://developer.apple.com/forums//thread/703004

Accepted Answer

By default, within the iOS > Runner folder when a Flutter project is created, a folder named Base.lproj is generated, the error caused by changing the App Language for English setting is related to that folder, in my project that folder did not exist, only a folder named pt-BR.lproj and even generating a folder en.lproj, the error was not solved. I found that when the app first went up in the App Store, there was the Base.lproj folder and there was no pt-BR.lproj folder. So I searched which branch was responsible for this change and after finding, the branch changes were reverted (the main one was the return of the folder Base.lproj and the deletion of the folder pt-BR.lproj, in addition to the update of the location references in the file Info.plist). After these changes, the same tests that generated the error were done and the problem was solved.

'Could not find a storyboard named 'Main' in bundle NSBundle
 
 
Q