ios 如何为 Application Loader 创建上传文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5937660/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 19:51:16  来源:igfitidea点击:

How to Create the Upload File for Application Loader?

iosuploadreleaseipaapplication-loader

提问by Ohad Regev

When I use Application Loader, I get to the point where it asks me to "Choose..." the file to be uploaded.

当我使用 Application Loader 时,它会要求我“选择...”要上传的文件。

If I understand correctly, it supposes to be the appName.app file I see under "Products" on my app bundle (I right click it and select "Show in Finder" to get to the specific file in library; then I'm supposed to ZIP it and the ZIP file is what I will choose in Application Loader). First, am I correct with this assumption?

如果我理解正确,它应该是我在我的应用程序包的“产品”下看到的 appName.app 文件(我右键单击它并选择“在 Finder 中显示”以访问库中的特定文件;然后我应该压缩它,ZIP 文件是我将在 Application Loader 中选择的文件)。首先,我对这个假设是否正确?

if yes...

如果是...

What should I define different in XCode than the way I used to build the application for testing (on simulator and on my personal iPhone)?

我应该在 XCode 中定义什么不同于我用来构建测试应用程序的方式(在模拟器和我的个人 iPhone 上)?

Should I change the Info--->Command-line build usefrom Debugto Release?

我应该将Info--->Command-line build useDebug更改为Release吗?

How should I define the Build Settings--->Code Signingsection (in which field should I select the "iPhone Developer" option and in which should it be "iPhone Distribution")?

我应该如何定义构建设置--->代码签名部分(我应该在哪个字段中选择“ iPhone Developer”选项,在哪个字段中选择“ iPhone Distribution”)?

Are there any other important Info/Build Settings/p.list/etc... fields I should relate to?

是否还有其他重要的 Info/Build Settings/p.list/etc... 字段我应该相关?

any help will be appreciated...

任何帮助将不胜感激...

回答by Muhammad Nasir

  • Launch Xcode 5 (Product> Archiveto build the archive)
  • Goto Window> Organizer
  • Select the latest archive and click on the Exportbutton
  • Select Save for Enterprise Deploymentor Save for Ad Hoc Deployment
  • Select your provisioning profile and then Export
  • Choose a location to save the .ipa file
  • 启动 Xcode 5(Product>Archive以构建存档)
  • 转到Window>Organizer
  • 选择最新的存档并单击Export按钮
  • 选择Save for Enterprise DeploymentSave for Ad Hoc Deployment
  • 选择您的配置文件,然后 Export
  • 选择一个位置来保存 .ipa 文件

This is basically it. Hope it will help anyone looking for the answer.

基本上就是这样。希望它能帮助任何寻找答案的人。

回答by phi

Go and login to the iOS Provisioning Portal. From the menu on the left, select "Distribution" and you should be landed to the "Prepare App" tab. Read through the instructions carefully, you mostly need the information under "Building your Application with Xcode for Distribution". Remember that "Only Team Agents are authorized to prepare and submit applications for distribution".

前往并登录iOS Provisioning Portal。从左侧的菜单中,选择“分发”,您应该会进入“准备应用程序”选项卡。仔细阅读说明,您最需要“使用 Xcode 构建您的应用程序以进行分发”下的信息。请记住“只有团队代理有权准备和提交分发申请”。

回答by spiceIt

If I remember correctly, the file that you need to choose is a "*.ipa" file which I was able to generated by archiving to project.

如果我没记错的话,您需要选择的文件是“*.ipa”文件,我可以通过归档到项目生成该文件。

If you have xcode 4 it is recommended to add another scheme e.g. dist scheme and configure the scheme to release. Than compile (using the dist scheme) and go to the organizer to view/share/ or submit the application.

如果您有 xcode 4,建议添加另一个方案,例如 dist 方案并将方案配置为发布。然后编译(使用 dist 方案)并去组织者查看/分享/或提交申请。

If you are using xcode 4, it has a bug which crashes the xcode if you choose validate or submit, in this case you should save upload the *.ipa using the application loader.

如果您使用的是 xcode 4,它有一个错误,如果您选择验证或提交,它会导致 xcode 崩溃,在这种情况下,您应该使用应用程序加载器保存上传 *.ipa。

Hope this helps.

希望这可以帮助。

回答by user3444710

I fixed this issue simply by renaming the storyboard file for the iPhone storyboard to Main_iPhone.storyboard.

我通过将 iPhone 故事板的故事板文件重命名为 Main_iPhone.storyboard 来解决这个问题。

Xcode looks for this file because it's built in to your plist (property list) file when you create a new project.

Xcode 会查找此文件,因为在您创建新项目时,它已内置到您的 plist(属性列表)文件中。

I created a universal app, and somewhere along the way I renamed that storyboard file. Because my app is universal, I didn't want to go monkeying around with deleting plist keys.

我创建了一个通用应用程序,并在此过程中的某个地方重命名了该故事板文件。因为我的应用程序是通用的,所以我不想在删除 plist 键上胡闹。

After trying again, I got the same error. Then I quit Xcode, restarted, re-validated, and it worked.

再次尝试后,我得到了同样的错误。然后我退出 Xcode,重新启动,重新验证,并且它起作用了。

Good luck.

祝你好运。

回答by coolcool1994

Download the latest Application loader from here: https://itunesconnect.apple.com/apploader/ApplicationLoader_3.1.dmg. (Download the latest one. This doesn't get updated automatically. If you haven;t downloaded this recetnly you probably have a older version that may have errors which are solved in the newer version)

从这里下载最新的应用程序加载器:https: //itunesconnect.apple.com/apploader/ApplicationLoader_3.1.dmg。(下载最新的。这不会自动更新。如果你最近没有下载这个,你可能有一个旧版本,可能有错误在新版本中解决)

Then 1) Archive your build. 2) After your build archives, you will be in the builds page. 3) Export that build 4) Click "App Store blablabla" row 5) Save the file somewhere 6) Open Application Loader 7) click upload 8) upload that saved file.

然后 1) 归档您的构建。2) 构建存档后,您将进入构建页面。3)导出该构建 4)单击“App Store blablabla”行 5)将文件保存在某处 6)打开应用程序加载器 7)单击上传 8)上传保存的文件。

Done.

完毕。