简体   繁体   English

在iOS应用中使用Clang API编译源代码?

[英]Compile the sources using Clang API in ios app?

Since on iOS it's restricted to launch external processes (compiler in this case) is it possible to compile c/c++ sources with clang via API as shared lib to walk-around the restriction? 由于在iOS上它被限制为启动外部进程(在这种情况下为编译器),是否有可能通过API将clang的c / c ++源代码编译为共享库来解决该限制? Any examples? 有什么例子吗?

No. Basically you can not run code that Apple can not validate the operation of. 否。基本上,您不能运行Apple无法验证其操作的代码。

This is for a couple of reasons (IMO): 这有两个原因(IMO):
1. Security against rouge code not in the app at review time. 1.审查时针对应用程序中未存在的胭脂代码的安全性。
2. Parental permissions: Apple provides parents the ability to restrict what content is available on an age basis, if they can not see the content they can not review the content and assertion if it has an applicable age rating. 2.父母许可:Apple允许父母根据年龄限制可以使用哪些内容,如果他们看不到内容,则他们无法查看内容并断言是否具有适用的年龄等级。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM