Skip to content

Secure Storage not working on .NET MAUI Mac Catalyst – Launch failed with RBSRequestErrorDomain Code=5 #29691

@Sgudipu

Description

@Sgudipu

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

  1. Create a new .NET MAUI project.
  2. Implement Secure Storage functionality.
  3. Add the required entitlements in entitlements.plist
<dict>
	<key>keychain-access-groups</key>
	<array>
		<string>com.companyname.securestoragemaui</string>
	</array>
  1. Configure the project for Mac Catalyst.
  <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-maccatalyst|AnyCPU'">
  <CodesignEntitlements>Platforms\MacCatalyst\Entitlements.plist</CodesignEntitlements>
</PropertyGroup>
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infoplatform/macosmacOS / Mac Catalysts/needs-attentionIssue has more information and needs another lookt/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions