iphone:创建可以安装在测试设备上的二进制文件

发布于 2024-11-05 01:25:29 字数 159 浏览 2 评论 0原文

我这里有一种情况,我的 mac 上已准备好开发人员证书和配置文件,但这些已在其他一些 mac 计算机上准备好,

现在我想安装此证书 + 配置文件并创建一个二进制文件并将其发送给我的合作伙伴,以便他可以在他的设备上测试

这个是否可行,或者是否有必要将该设备连接到我的 Mac

I have a situation here I have developers certificate and provisioning profile on my mac ready but these are prepared on some other mac machines

now I want to install this certificate + provisioning profile and create a binary and sent it across to my partner so that he can test this on his device

is this thing possible or is it necessary to connect that device to my mac

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不再让梦枯萎 2024-11-12 01:25:29

首先,您必须向他发送包含其设备 ID 的配置文件,并让他将其安装在他的 iPhone 上。然后你必须创建一个 ipa 文件,它基本上只是一个 .zip,已被重命名为整个 .app 目录的 .ipa,这是我编写的一些 ruby​​ 代码,基本上可以完成此操作(不会开箱即用,只是有用的例子):

source_dir = Dir.pwd
build_path = build_directory + "/build/#{config_name}-iphoneos"
app_path = build_path + "/#{target}.app"
ipa_path = build_path + "/#{target}.ipa"
payload = build_path + "/payload/"

# Fail on error here.
Dir.mkdir(payload)
FileUtils.cp_r(app_path, payload)

Dir.chdir(build_path)
ret = `zip -r #{target}.ipa payload`
Dir.chdir(source_dir);

if($?.exitstatus != 0)
  # This shouldn't fail, figure out when it does and how to fix it.
  unexpected_error(ret)
end

return ipa_path;

此时itunes,iphone配置实用程序,也可以通过互联网进行远程安装,但这要困难得多。

First you are going to have to send him the provisioning profile that includes his device id, and have him install that on his iphone. Then you have to create an ipa file, which is basically just a .zip that's been renamed .ipa of the entire .app directory, here is some ruby code I wrote that does basically this (Won't run out of the box, just useful as an example):

source_dir = Dir.pwd
build_path = build_directory + "/build/#{config_name}-iphoneos"
app_path = build_path + "/#{target}.app"
ipa_path = build_path + "/#{target}.ipa"
payload = build_path + "/payload/"

# Fail on error here.
Dir.mkdir(payload)
FileUtils.cp_r(app_path, payload)

Dir.chdir(build_path)
ret = `zip -r #{target}.ipa payload`
Dir.chdir(source_dir);

if($?.exitstatus != 0)
  # This shouldn't fail, figure out when it does and how to fix it.
  unexpected_error(ret)
end

return ipa_path;

At this point itunes, the iphone configuration utility, It's also possible to do a remote install over the internet, but this is much more difficult.

国粹 2024-11-12 01:25:29

这当然是可能的。您需要将合作伙伴的设备 ID 包含在您的配置文件中,然后我相信只需向他发送可执行文件即可,他可以使用 iPhone 配置实用程序将其安装在手机上。他还需要在手机上安装配置文件。

It is certainly possible. You will need to include your partner's device id in your provisioning profile, and then I believe it's just a matter of sending him the executable, which he can install on his phone using the iPhone Configuration Utility. He'll need to install the provisioning profile on his phone as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文