How can I copy the iOS.xarchive sign so the client can resign? (using push notifications)

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

(I read this, but he had no real solutions: How can I send the iOS application to the client so that they can encode the code )

The client does not want to share their secret keys and does not give me access to the "Developer" in the participants center. And we do not want to share our source code.

We need to support push notifications, so this means that we need a fully qualified application identifier.

I can not understand the way that allows me to create and export .xarchive, signed with "aps production", "get-task-allow" as false, BUT ALSO using a certificate that matches the client distribution certificate.

This seems like an error in Xcode, should you not bind the bindings to "aps production" and "get-task-allow" to the configuration, and not to the type of initialization profile? I use "Release", but with my developer profile.

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

+6
source share
1 answer

I found out the answer to this question through trial and error. Despite the fact that the technical notes and most of the web resources say that you do not need the rights.plist file if you are using XCode4 +, there are certain cases when you do this. Two cases are presented by my question above:

  • Creating a release configuration (i.e. Archive), but when signing up with a developer training profile
  • using push notifications

My final user rights. plist has 3 meanings:

<?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> 

As soon as I had it in my rights.plist, I built with a developer training profile for this application identifier. Then I archived it and exported the archive from the organizer. After exporting, I sent it to my client. The client was able to cancel the archive using a special profile and send me the IPA file that I downloaded to my device. I also successfully received a push notification from Urban Airship on this IPA!

+5
source

Source: https://habr.com/ru/post/910739/


All Articles