I’ve successfully created an action that reads a javascript file from the drafts folder in my iCloud Drive with the require() function. This all works flawlessly on my iPad. However on my iPhone, when I run the action drafts gives me the error message ‘Script error: Error: The file “script.js” couldn’t be opened.’ When I open the files app on my iPhone I find the file in my Drafts/Scripts folder just like I do on my iPad. I don’t understand why one works and the other fails. What am I missing?
TLDR: iPhone drafts can’t open script file from iCloud Drive, but iPad can. Why?!