-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Secure Storage not working on .NET MAUI Mac Catalyst – Launch failed with RBSRequestErrorDomain Code=5 #29691
Copy link
Copy link
Closed
Labels
area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App InfoEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infoplatform/macosmacOS / Mac CatalystmacOS / Mac Catalysts/needs-attentionIssue has more information and needs another lookIssue has more information and needs another lookt/bugSomething isn't workingSomething isn't working
Description
Description
When attempting to use Secure Storage in a .NET MAUI app targeting Mac Catalyst, the application fails to launch with the following error:
The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed."
UserInfo={NSLocalizedFailureReason=Launch failed.,
NSUnderlyingError=0x122205be0 {Error Domain=NSPOSIXErrorDomain Code=153 "Unknown error: 153"
UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}
Steps to Reproduce
- Create a new .NET MAUI project.
- Implement Secure Storage functionality.
- Add the required entitlements in entitlements.plist
<dict>
<key>keychain-access-groups</key>
<array>
<string>com.companyname.securestoragemaui</string>
</array>- Configure the project for Mac Catalyst.
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-maccatalyst|AnyCPU'">
<CodesignEntitlements>Platforms\MacCatalyst\Entitlements.plist</CodesignEntitlements>
</PropertyGroup>- Run the app in Debug mode. I followed the official documentation for configuring Secure Storage on Mac Catalyst. [https://learn.microsoft.com/en-us/dotnet/maui/mac-catalyst/entitlements?view=net-maui-9.0].
Link to public reproduction project repository
No response
Version with bug
10.0.0-preview.4
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
No response
Affected platforms
macOS
Affected platform versions
MAUI Mac catalyst
Did you find any workaround?
No response
Relevant log output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App InfoEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infoplatform/macosmacOS / Mac CatalystmacOS / Mac Catalysts/needs-attentionIssue has more information and needs another lookIssue has more information and needs another lookt/bugSomething isn't workingSomething isn't working