Open lyager opened 3 months ago
I might be mistaken but I've looked into a little bit as well and apart from the resource_dir_from function, it seems to me like the cli would also need to copy the resources to xcodeproj's Assets folder for this to work - I don't think the target folder is of any help when the app is bundled (which should always be the case when running with ios ?)
I encountered the same problem on macOS iphone15pro simulator. I'm not familiar with native ios, maybe is there a temp way to bypass it? @lyager
@winjeysong the manual work around for me was to copy the binary files I needed manually into the IPA package.
@winjeysong the manual work around for me was to copy the binary files I needed manually into the IPA package.
Thank you for your reply. My binary files are generated by users dynamically, so I can't copy files manually. :-(
Describe the bug
Not sure to classify this as a bug, I know that you are working hard on getting V2 ready.
I've been looking at adding binary files to my IOS app, but traced the error down to the above mentioned function returning
Err:UnsupportedPlatform
. I'm uncertain how this is intended to work under IOS?Reproduction
Calling
const allFiles = await readDir('.', { baseDir: BaseDirectory.Resource, });
will throw errorunknown path
Expected behavior
Content of resource folder should be returned.
Full
tauri info
outputStack trace
No response
Additional context
No response