-
Notifications
You must be signed in to change notification settings - Fork 556
Closed
Description
Steps to Reproduce
- Create new maui app
- Include a file as Content or BundleResource
- In MainPage class add the code that opens the file for reading
- Deploy the app to an iPhone
- Launch the app, minimise it and activate it again
Expected Behavior
App is resumed
Actual Behavior
App relaunches because it has crashed on minimising
[app<com.companyname.lockedfiletest(982B7E11-5EA0-4B25-9E4E-E809C83BFB63)>:1447] Terminating with context: <RBSTerminateContext| domain:15 code:0xDEAD10CC explanation:[app<com.companyname.lockedfiletest(982B7E11-5EA0-4B25-9E4E-E809C83BFB63)>:1447] was suspended with locked system files:
/var/containers/Bundle/Application/A3A31E01-7520-418A-8951-58AD7E2C90C8/LockedFileTest.app/data.bin
not in allowed directories:
/var/mobile/Containers/Data/Application/B0297286-77E2-4311-86F4-E6F82449A6D8
/var/mobile/Containers/Data/Application/B0297286-77E2-4311-86F4-E6F82449A6D8/tmp reportType:CrashLog maxTerminationResistance:Absolute>
The same code works correctly in Xamarin Forms. I've attached both examples.
Environment
Version information
JetBrains Rider 2023.3.2
Build #RD-233.13135.100, built on December 19, 2023
Runtime version: 17.0.9+7-b1087.9 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.2.1
.NET Core v7.0.10 ARM64 (Server GC)
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 10
Metal Rendering is ON
Registry:
editor.config.csharp.support=true
ide.experimental.ui=true
Non-Bundled Plugins:
com.jetbrains.rider.android (233.13135.100)
com.intellij.ml.llm (233.13135.116)
$ dotnet --version
8.0.101
iPhone 12, iOS 17.2.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
