Home IOS Development c# – NetMaui – iOS – Couldn’t discover part of the trail ‘/var/cellular/Containers/Information/Software/

c# – NetMaui – iOS – Couldn’t discover part of the trail ‘/var/cellular/Containers/Information/Software/

c# – NetMaui – iOS – Couldn’t discover part of the trail ‘/var/cellular/Containers/Information/Software/


Extra of an FYI than a query as I am certain others have discovered this and there’s no point out of it wherever I can see:

Background: Utilizing NetMaui to construct an Android / iOS app. Testing iOS model of app utilizing two strategies:

Methodology 1: iPhone plugged into home windows machine, operating as Native System.

Methodology 2: iPhone plugged into Mac, operating paired to home windows machine, so operating as distant gadget.

Utilizing two totally different strategies as a result of often get totally different outcomes, i.e. App Badge does not show accurately in home windows native mode, however does in distant mode, so use each strategies to trace precise points and IDE / implementation points).

Drawback: When switching between strategies, any photographs saved to native storage change into unreachable, when trying to load a picture (var imageBytes = await File.ReadAllBytesAsync(imageUri)) it throws an exception: Couldn't discover part of the trail '/var/cellular/Containers/Information/Software/5DB9D25D-4572-4EB8-B1A2-012E44E64E86/Library/IMAGES/...

Resolution: None actually. All of it works positive up till you run by way of a distinct methodology, at which level all beforehand saved recordsdata change into unreachable and this isn’t recoverable i.e. switching again to different methodology does not restore accessbility, these recordsdata at the moment are utterly unreachable ceaselessly. Information then added utilizing the present methodology are positive and proceed to be till the tactic is switched once more. Now that I do know that is the trigger, I am not likely nervous as it’s going to possible solely be a testing problem. However i am certain there’s another person on the market pulling their hair out making an attempt to determine this out, so I believed I would share.

  1. Checked all file paths,

  2. Checked Listing permissions,

  3. Iterated over storage to verify recordsdata nonetheless exist in right location

  4. Checked for identified points

  5. Checked all libraries and dependancies updated

  6. Cleans, Recompiles, Reboots, App deletion and reinstall

Information which might be within the utility listing needs to be accessbile



Please enter your comment!
Please enter your name here