ios 使用或不使用 iTunes 将 .ipa 安装到 iPad
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20160285/
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
Install .ipa to iPad with or without iTunes
提问by URAndroid
I have the .ipa
from PhoneGap build and I need to test it. I got provisioning profile from Developer account.
我有.ipa
来自 PhoneGap 的构建,我需要测试它。我从开发人员帐户获得了配置文件。
So my question is: can I directly put my .ipa
to iPad to install for testing, or do I have to follow some rules to install?
所以我的问题是:我可以直接将我.ipa
的 iPad 安装进行测试,还是必须遵循一些规则才能安装?
采纳答案by user7388
Yes, you can install IPA in iPad, first you have to import that IPA to your itunes. Connect your iPad to iTunes then install application just by click on install and then sync.
是的,您可以在 iPad 中安装 IPA,首先您必须将该 IPA 导入您的 iTunes。将您的 iPad 连接到 iTunes,然后只需单击安装然后同步即可安装应用程序。
回答by ???
No need to bother with iTunesConnectfor sharing your adhoc builds. Just upload your ipa file to diawiand after successful uploading you will get a link open the link in safari and you will be asked to install app. Tap on install and enjoy
无需费心使用iTunesConnect来共享您的临时构建。只需将您的 ipa 文件上传到diawi,成功上传后,您将获得一个链接,在 safari 中打开该链接,您将被要求安装应用程序。点击安装并享受
回答by Mark Horgan
In Xcode 5 open the organizer (Window > Organizer) and select "Devices" at the top. Your plugged in device should show up on the left hand side. Drag the IPA file over to that device.
在 Xcode 5 中打开管理器(窗口 > 管理器)并选择顶部的“设备”。您插入的设备应显示在左侧。将 IPA 文件拖到该设备上。
In Xcode 6 and Xcode 7 open Devices (Window > Devices). Again your device should show up in the left hand column. Drag the IPA file to the list of apps underneath "Installed Apps".
在 Xcode 6 和 Xcode 7 中打开设备(窗口 > 设备)。您的设备应再次显示在左侧栏中。将 IPA 文件拖到“已安装的应用程序”下方的应用程序列表中。
For iOS 9 devices, refer to this poston how to get the app running after doing this.
对于 iOS 9 设备,请参阅这篇文章,了解如何在执行此操作后运行应用程序。
回答by Jagdeep
There are four ways, all of which I tested:
有四种方式,我都测试过:
Install from iTunes - Create .ipa as ad-hoc and normal sync with ipad & itunes.
Or best way you can create a URL for install while creating ipa select as enterprise and create index file with plist. This will work with individual developer account too.
回答by mix3d
You can also checkout ios-deploy.
您还可以结帐ios-deploy。
It is as simple as running ios-deploy -b path/to/ipa/file
.
它就像运行一样简单ios-deploy -b path/to/ipa/file
。
It even works with path/to/project.app, which should be in the same location if you are doing cordova/phonegap builds locally.
它甚至适用于 path/to/project.app,如果您在本地进行 cordova/phonegap 构建,它应该在同一位置。
Cheers!
干杯!
回答by Vittal Pai
回答by mtc
In Xcode 8, with iPhone plugged in, open Window -> Devices. In the left navigation, select the iPhone plugged in. Click on the + symbol under Installed Apps. Navigate to the ipa you want installed. Select and click open to install app.
在 Xcode 8 中,插入 iPhone,打开窗口 -> 设备。在左侧导航中,选择插入的 iPhone。单击 Installed Apps 下的 + 符号。导航到您要安装的 ipa。选择并单击打开以安装应用程序。
回答by Nikos M.
You can create the ipa for ad hoc distribution and use diawito create a link for the your ipad. You just upload the .ipa and the provisioning profile, then a link is generated and you can visit it from your ipad in order to install the app (if the provisioning profile is for development you have to add your ipad's UDID to it).
您可以为临时分发创建 ipa,并使用diawi为您的 ipad 创建链接。您只需上传 .ipa 和配置文件,然后会生成一个链接,您可以从 ipad 访问它以安装应用程序(如果配置文件用于开发,您必须向其中添加 ipad 的 UDID)。
回答by Francesco Galgani
iPhone doesn't allow to install an ipa directly, so provide a direct link to the ipa file is useless. That's why some people uses external services that provide a link or a qcode to install the ipa.
iPhone 不允许直接安装 ipa,因此提供 ipa 文件的直接链接是没有用的。这就是为什么有些人使用提供链接或 qcode 的外部服务来安装 ipa。
Another option, that nobody told in the other answers to this question and that it's completely independent from iTunes or any external service, is to create your own script that generates an installation link and automatically sends it to your mobile (for example by email). I created a such script for my personal use, that:
另一个选项,没有人在这个问题的其他答案中提到并且它完全独立于 iTunes 或任何外部服务,是创建您自己的脚本来生成安装链接并自动将其发送到您的手机(例如通过电子邮件)。我创建了一个这样的脚本供我个人使用,即:
- creates the html file;
- creates the plist file;
- copies ipa, html and plist files to my server;
- sends me the link.
- 创建 html 文件;
- 创建 plist 文件;
- 将 ipa、html 和 plist 文件复制到我的服务器;
- 把链接发给我。
Because I work on Linux, I created a Bash script. You can use any other scripting language, but it's important to know what to put in the html and plist files.
因为我在 Linux 上工作,所以我创建了一个 Bash 脚本。您可以使用任何其他脚本语言,但重要的是要知道在 html 和 plist 文件中放置什么。
This is the part of my script that generates the html and plist content. I hope that it's enough self-explanatory:
这是我生成 html 和 plist 内容的脚本的一部分。我希望它足够不言自明:
sha=`sha1sum ${ipa} | awk '{ print }'`
output=${sha}-${AppName}-${version}.ipa
html=${sha}-${AppName}-${version}.html
plist=${sha}-${AppName}-${version}.plist
# Generates html
echo "<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">
<meta name=\"MobileOptimized\" content=\"width\" />
<meta name=\"HandheldFriendly\" content=\"true\" />
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />
<meta http-equiv=\"cleartype\" content=\"on\" />
<title>Install ${AppName} ${version}</title>
</head>
<body>
<h1><a href=\"itms-services://?action=download-manifest&url=${serverUrl}${plist}\">
Install </a></h1>
</body>
</html>" > ${html}
# Generate plist
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
<plist version=\"1.0\">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>${serverUrl}${output}</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>${serverUrl}Icon%402x.png</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>${serverUrl}Icon.png</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>${bundle}</string>
<key>bundle-version</key>
<string>${version}</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>${AppName}</string>
</dict>
</dict>
</array>
</dict>
</plist>" > ${plist}
For a simple example you can also see: https://github.com/Saleh7/ipa-install
一个简单的例子你也可以看看:https: //github.com/Saleh7/ipa-install
回答by H?c Huy?n Minh
How about iPhone Configuration Utility?
iPhone 配置实用程序怎么样?
http://support.apple.com/kb/DL1465?viewlocale=en_US&locale=en_US
http://support.apple.com/kb/DL1465?viewlocale=en_US&locale=en_US
iPhone Configuration Utility lets you easily create, maintain, encrypt, and install configuration profiles, track and install provisioning profiles and authorized applications, and capture device information including console logs.
iPhone 配置实用程序可让您轻松创建、维护、加密和安装配置描述文件,跟踪和安装配置描述文件和授权应用程序,以及捕获包括控制台日志在内的设备信息。
Update:
更新:
Apple Configurator replaces iPhone Configuration Utility. With the the release of iOS 8, iPhone Configuration Utility is no longer supported or available for download. https://itunes.apple.com/gb/app/apple-configurator/id434433123
Apple Configurator 取代了 iPhone Configuration Utility。随着 iOS 8 的发布,iPhone 配置实用程序不再受支持或可供下载。https://itunes.apple.com/gb/app/apple-configurator/id434433123