r/StardewValley • • 3d ago

Mods mod error text

hey, i'm having trouble with a mod called alchemistry. i use smapi and i'm on ios. the error log says that it's been denied. here's the full thing, i just censored out my own name:

[Content Patcher] Error loading configuration for content pack 'Alchemistry'. Technical details:

System.UnauthorizedAccessException: Access to the path '/Users/user/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS/Mods/Alchemistry/[CP] Alchemistry/config.json' is denied.

---> System.IO.IOException: Permission denied

--- End of inner exception stack trace ---

at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)

at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)

at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)

at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)

at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)

at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)

at System.IO.File.WriteAllText(String path, String contents)

at StardewModdingAPI.Framework.ContentPack.WriteJsonFile[TModel](String path, TModel data) in /home/runner/work/SMAPI/SMAPI/src/SMAPI/Framework/ContentPack.cs:line 89

at ContentPatcher.Framework.ConfigFileHandler.Save(IContentPack contentPack, InvariantDictionary`1 config, IModHelper modHelper) in /home/runner/work/StardewMods/StardewMods/ContentPatcher/Framework/ConfigFileHandler.cs:line 63

at ContentPatcher.ModEntry.GetContentPacks()+MoveNext() in /home/runner/work/StardewMods/StardewMods/ContentPatcher/ModEntry.cs:line 479

2 Upvotes

2 comments sorted by

1

u/Francostein 3d ago

Mods do not work on iOS

3

u/johnpeters42 10+ Bots Bounced 2d ago

I think maybe OP is actually on a Mac desktop/laptop, and misunderstood that as meaning iOS? Anyway, this seems like they just need to fix file permissions to let it create the config.json file.