maui: Adding resx file for additional language gives an error while trying to build iOS project
Description
When I add a second language resource file (i.e. AppResources.es.resx) I can no longer build the iOS project. If I remove it from the project then it builds and deploys just fine.
Steps to Reproduce
- Create a File > New .NET MAUI App
- Add a resx Resource file (i.e. AppResources.resx)
- Add a second resx Resource file (i.e. AppResources.es.resx)
- Try to build iOS project.
Version with bug
Release Candidate 1 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15
Did you find any workaround?
Remove all resx files other than the default from the project
Relevant log output
This is the error:
ALINK : error AL1012: 'arm64' is not a valid setting for option 'platform'
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 27 (8 by maintainers)
As for the localization not working, see my write-up here: https://github.com/dotnet/maui/issues/7362#issuecomment-1218201040
We’ve moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Hey everyone! I just had a quick look at this and with the latest versions I don’t seem to be able to reproduce the build error anymore. It all builds find for me (also using the reproduction linked in this issue), however, unfortunately, the localization doesn’t seem to work on iOS. I think that is due to a (already fixed) bug in the runtime, I’m asking around about that now.
Can someone confirm that the build error is gone?
This “self explaining” error message did cost me quite some time. Add the following line to the .csproj file:
<GenerateSatelliteAssembliesForCore>true</GenerateSatelliteAssembliesForCore>