It’s really dependent on what reviewer you get. I develop a coding app for iPad (Codea) and for the longest time was not allowed to let users share their code in any form. I asked the reviewer “but they can just copy and paste it?” And the reviewer said “that is ok.”
In the end, it was down to whether it _looked like_ your app was downloading executable code more than whether it actually did. Reviewers are non-technical, and when the policy is technical they often make an inference that may be incorrect — however they will not budge on that without consulting actual engineers further up the chain, which can take weeks
They have become a lot more relaxed about this policy in the last five years or so (ever since Shortcuts)
In the end, it was down to whether it _looked like_ your app was downloading executable code more than whether it actually did. Reviewers are non-technical, and when the policy is technical they often make an inference that may be incorrect — however they will not budge on that without consulting actual engineers further up the chain, which can take weeks
They have become a lot more relaxed about this policy in the last five years or so (ever since Shortcuts)