我怎样才能code签署的iOS .xarchive让客户端可以正常辞职? (使用推送通知) [英] How can I code sign an iOS .xarchive so a client can resign properly? (using push notifications)

查看:131
本文介绍了我怎样才能code签署的iOS .xarchive让客户端可以正常辞职? (使用推送通知)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建使用开发人员配置在iOS .xarchive文件,客户端可以使用他们的分布曲线(S)辞职。

I need to create an iOS .xarchive file using a developer profile, that a client can resign using their distribution profile(s).

(我看了这一点,但它并没有任何实际的解决方案:<一href=\"http://stackoverflow.com/questions/4919937/how-can-i-send-ios-app-to-client-for-them-to-$c$c-sign\">How我可以给iOS应用客户,为他们code-SIGN )

(I have read this but it didn't have any real solutions: How can I send iOS app to client, for them to code-sign)

客户不希望分享自己的私钥,也没有给我在上面的会员中心开发者的访问。而我们不希望分享我们的源$ C ​​$ C。

The client doesn't want to share their private keys, nor give me access above 'Developer' in the member center. And we don't want to share our source code.

我们需要支持推送通知,所以这意味着我们需要一个完全合格的应用程序ID。

We need to support push notifications, so this means we need a fully qualified app id.

我不能想出一个办法,让我来构建和导出.xarchive与APS生产签署'获得任务,让'假,而且还使用客户端分发证书匹配的证书。

I cannot figure out a way that allows me to build and export an .xarchive signed with 'aps production', 'get-task-allow' as false, BUT ALSO using the certificate that matches the clients distribution certificate.

这感觉就像在X code进行的错误,不应该更改为APS生产'和'获得任务,让被捆绑的配置,而不​​是供应配置文件的类型?我使用'释放',但我的开发人员配置。

This feels like a bug in Xcode, shouldn't the changes to 'aps production' and 'get-task-allow' be tied to the configuration, not the type of provisioning profile? I am using 'Release', but with my developer profile.

我缺少的东西,或者这只是不可能的?

Am I missing something, or is this just not possible?

推荐答案

我想通了这个问题的答案通过试验和错误。尽管技术说明和大部分网络资源说,如果你使用的是X code4 +你不需要entitlements.plist,有一定的情况下,你怎么做。两起案件正在重新通过上面我的问题psented $ P $:

I figured out the answer to this question through trial and error. Even though tech notes and most web resources say you don't need an entitlements.plist if you are using XCode4+, there are certain cases where you do. Two cases are represented by my question above:


  • 建筑Release配置(即:归档),但与开发商供应配置文件签署

  • 使用推送通知

我的最终定制entitlements.plist有3个值:

My final custom entitlements.plist has 3 values:

<?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>get-task-allow</key>
    <false/>
    <key>aps-environment</key>
    <string>production</string>
    <key>keychain-access-groups</key>
    <array>
        <string>L23874DF.com.your.appid</string>
    </array>
</dict>
</plist>

有一次,我在我的entitlements.plist,我与开发商供应轮廓为这个应用程序ID建成。然后我归档它,然后从主办方出口存档。导出后,我把它给我的客户。客户端能够与辞职的一个特设的个人资料档案,并给我回一个IPA文件,我装上我的设备。我也成功地收到了来自城市飞艇推送通知这个IPA!

Once I had that in my entitlements.plist, I built with the developer provisioning profile for this app id. Then I archived it, and exported the archive from the organizer. Once exported, I sent it to my client. The client was able to resign the archive with an ad hoc profile, and send me back an IPA file, which I loaded onto my device. I also successfully received a push notification from Urban Airship to this IPA!

这篇关于我怎样才能code签署的iOS .xarchive让客户端可以正常辞职? (使用推送通知)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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