简体   繁体   English

提交给 Apple 之前 iPhone 应用程序源代码的组织

[英]Organization of iPhone app source code before submission to Apple

I am about to submit my iPhone app to the app store, and I am wondering: is there a standard for how I organize my source code (the directories, the naming of the directories, which file goes to which folder, etc.)?我准备将我的 iPhone 应用程序提交到应用程序商店,我想知道:是否有一个标准来组织我的源代码(目录、目录的命名、哪个文件到哪个文件夹等)? Actually, do I even submit the source code to Apple at all?实际上,我什至将源代码提交给 Apple 了吗? Maybe I missed it, but I do not think source code was mentioned in the guideline.也许我错过了,但我认为指南中没有提到源代码。

  1. You do not submit your source code to Apple, only the binary application signed with your distribution certificate.您不向 Apple 提交您的源代码,只向 Apple 提交使用您的分发证书签名的二进制应用程序。
  2. Some static analysis of your binary is done when you submit it via the Application Loader app. static 当您通过 Application Loader 应用程序提交二进制文件时,会对其进行一些 static 分析。 In theory, undocumented API calls should be caught at this time.理论上,此时应该捕获未记录的 API 调用。 If nothing is caught, Apple will surely catch them and let you know.如果什么都没被抓到,Apple 肯定会抓到它们并通知您。

In general, undocumented API calls are prefixed with an underscore.通常,未记录的 API 调用带有下划线前缀。 Not all follow this convention, but you could search the source code for methods and functions that begin with _ or __ .并非所有方法都遵循此约定,但您可以在源代码中搜索以___开头的方法和函数。 Google searching any questionable code symbols will likely yield at least some information about whether the method or function is supported and what it does.谷歌搜索任何有问题的代码符号可能会至少产生一些关于该方法或 function 是否受支持及其作用的信息。 Good luck!祝你好运!

First point has been answered already.第一点已经回答了。

For the second point I would like to suggest the usage of the Xcode feature called "Validate Built Product".对于第二点,我想建议使用名为“验证内置产品”的 Xcode 功能。 This option will perform the same tests on your app the Apple themselves do once you submit your app.一旦您提交了您的应用程序,此选项将对您的应用程序执行相同的测试,Apple 将对您的应用程序执行相同的测试。

在此处输入图像描述

  1. You do not have to submit any of your source code to Apple.您不必向 Apple 提交任何源代码。
  2. There is no real way to check without going through all of the code, just submit it, and see what happens !没有检查所有代码的真正方法,只需提交它,看看会发生什么!

1.Code is not submitted to apple. 1.代码没有提交给apple。 Only binary of the app is submitted.仅提交应用程序的二进制文件。 You can send your app flow separately from your iTunes connect account.您可以从您的 iTunes 连接帐户单独发送您的应用程序流。

  1. Make sure your app obey all the points of app review notes.确保您的应用遵守应用审查说明的所有要点。 specially data storage policy.特别是数据存储策略。

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

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