-->

Does Apple allow to download OpenGL shaders in iOS

2019-06-28 01:07发布

问题:

I am planning to implement iOS game where certains assets - textures, shaders, etc. are downloaded at runtime when user buys specific in-app purchases . Its well known fact about Apple prohibiting downloading & emitting iOS app code at runtime:

3.3.2 An Application may not download or install executable code. Interpreted code may only
be used in an Application if all scripts, code and interpreters are packaged in the    Application and
not downloaded. The only exception to the foregoing is scripts and code downloaded and run by
Apple's built-in WebKit framework.

Does this restriction also include Open GL shaders, i.e. can shaders code be downloaded at runtime?

回答1:

Alex and co are correct. Section 2.4 of the agreement states that you may not use the In-App Purchase API to "add any additional executable code" to the app - only data is permitted. They explicitly state that the functionality must be embedded within the app and unlocked by the purchase.

I can see why it would be desirable to add shaders as part of new content though; maybe you should contact Apple directly for a ruling to be certain?