可一个X code文件名为.mobileprovision通过命令行“装”? [英] Can an Xcode .mobileprovision file be 'installed' from the command line?

查看:1092
本文介绍了可一个X code文件名为.mobileprovision通过命令行“装”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想自动使用一台Mac Mini服务器上运行的bash脚本我们的客户开发应用程序(OSX 10.7)的过程。

I'm trying to automate the process of building apps for our clients using bash scripts running on a Mac Mini Server (OSX 10.7).

我的脚本是基于从GitHub最初发布的壮观有用的脚本在 https://gist.github.com/949831

My script is based on the spectacularly useful script from github originally posted at https://gist.github.com/949831

我使用的是X codebuild构建应用程序,然后签约并使用xcrun嵌入mobileprovision文件。

I'm building the app using xcodebuild, and then signing and embedding the mobileprovision file using xcrun.

当我做这一切与我手动安装到使用GUI(例如双击)X code进行mobileprovision文件,它工作正常。如果我只是尝试使用复制到服务器SCP的mobileprovision文件失败(code登录错误:发放模板123abc123'无法找到)

When I do all this with a mobileprovision file I manually installed into Xcode using the GUI (e.g. double-clicking) it works fine. If I simply try to use a mobileprovision file copied onto the server with SCP it fails (Code Sign error: Provisioning profile '123abc123' can't be found.)

presumably这是因为该文件不'安装'。

Presumably this is because the file isn't 'installed'.

有什么办法来安装来自终端的mobileprovision文件?我用这样的东西使用SSH,如打开命令将不起作用。

Is there any way to install the mobileprovision file from the terminal? I'm using SSH so using things such as the 'open' command won't work.

谢谢!

推荐答案

既然问这个问题,我已经建立了一个解决方案,我自己。秘密是简单地将文件复制到〜/图书馆/ MobileDevice /配置概况/文件夹,但(这里的棘手位)更名为[的UUID]名为.mobileprovision。

Since asking this question, I've built a solution myself. The secret is to simply copy the file to the ~/Library/MobileDevice/Provisioning Profiles/ folder, but (here's the tricky bit) renamed to [The UUID].mobileprovision.

UUID被持有的文件本身(在plist中)的文本部分内。不幸的是,文件还包括二进制这样'默认读无法读取。
幸运的是这家伙已经建立了一个小型命令行实用程序来获得UUID(和其他一些东西再出来)。

The UUID is held inside a text part of the file itself (in a plist). Unfortunately, the file also includes binary so 'defaults read' cannot read it. Luckily this guy has built a small command line utility to get the UUID (and some other things out again).

下面是我完全工作脚本:

Here's my full working script:

https://gist.github.com/2568707

这篇关于可一个X code文件名为.mobileprovision通过命令行“装”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆