Or, you can have multiple app stores and kid-friendly app stores will specially curate apps to make sure there is no adult content, or other unwanted features. We already do this with a wide variety of physical goods.
Apple doesn't get the source code for the App anyway, so a third party can perform the same type of automated + manual review that Apple does. Its time to open up the app store to competition. As a consumer, if you don't trust a particular app store, great, don't use it.