Detect any files in a 'Resources' subdirectory of the app and show an error at build time
- Dominant language
- C#
- Stars
- 2.9k
- Forks
- 576
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 123
Description
### Description
Hi
So far, my project has been working perfectly. After updating to VS version 17.14.0 Preview 5 from 4, I was able to compile my project but could no longer run it on the simulator.
I have already:
1. Cleared the XMA cache on the Mac build host
2. Cleared the XMA cache on the Windows computer
3. Deleted all bin and obj folders in my project
4. Enabled manual provisioning with a valid profile and signing identity
5. Reinstalled the app on the simulator
6. Reset the simulator
No success. Compiling works fine, but running on the simulator doesn't.
Xamarin logs only show an error, but no precise description.
However, I found something interesting in the Mac Core Simulator logs:
```
May 20 06:32:23 HOST123 com.apple.CoreSimulator.simctl[33576] : installApplication:withOptions:error:: Error Domain=IXErrorDomain Code=13 "Simulator device failed to install the application." UserInfo={NSLocalizedFailureReason=Missing bundle ID., NSUnderlyingError=0x60000064d3e0 {Error Domain=IXErrorDomain Code=13 "Failed to get bundle ID from /Users/maxmustermann/Library/Caches/Xamarin/mtbs/builds/Company.TestApp.Ios/9b4e85111146e6a7e75c45f4991af1c3612e297b62ce513af7059ab2a308df03/bin/Debug/net9.0-ios/iossimulator-arm64/Company.TestApp.Ios.app" UserInfo={NSLocalizedDescription=Failed to get bundle ID from /Users/maxmustermann/Library/Caches/Xamarin/mtbs/builds/Company.TestApp.Ios/9b4e85111146e6a7e75c45f4991af1c3612e297b62ce513af7059ab2a308df03/bin/Debug/net9.0-ios/iossimulator-arm64/Company.TestApp.Ios.app, SourceFileLine=740, FunctionName=+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:isFromSerializedPlaceholder:error:], NSLocalizedFailureReason=Missing bundle ID.}}, SimCallingSelector=installApplication:withOptions:error:, SourceFileLine=740, FunctionName=+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:isFromSerializedPlaceholder:error:], NSLocalizedDescription=Simulator device failed to install the application.}
```
It looks like a problem with a placeholder for the bundle identifier, but my knowledge of Maui isn't enough to figure it out.
Does anyone have any idea where I could start?
The bundle identifier in the project file is correct and exactly the same as in the Info.plist.
I've also tried setting the bundle identifier only in the project file and not in the Info.plist, but it doesn't work.
### Steps to Reproduce
_No response_
### Link to public reproduction project repository
_No response_
### Version with bug
9.0.60 SR6
### Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
### Last version that worked well
Unknown/Other
### Affected platforms
iOS
### Affected platform versions
IOS 18.4
### Did you find any workaround?
_No response_
### Relevant log output
```shell
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.