简体   繁体   English

Xcode:开发者帐户转移后更新应用

[英]Xcode: update app after developer account transfer

I began developing iOS apps under my father's developer account due to the age restriction, but now I have my own, and have transferred my apps over to it. 由于年龄的限制,我开始使用父亲的开发者帐户来开发iOS应用程序,但现在我拥有了自己的应用程序,并将其转移到该应用程序上。 I now want to update an app of mine that creates and maintains data on the device local to the app. 我现在想更新一个我的应用程序,该应用程序在该应用程序本地的设备上创建和维护数据。

Since my father's account is still active, I can still sign the app via that account's "Team" in Xcode, and everything works fine when installing on a device. 由于父亲的帐户仍处于活动状态,因此我仍然可以通过Xcode中该帐户的“团队”对应用程序进行签名,并且在设备上安装时一切正常。 However, I want to sign it with my own account in case my father ever decides to stop renewing his membership, but if I do, whenever I try to install it over top of the old version I get an error in Xcode with the title "App installation failed" and the message "Could not write to the device". 但是,我想用自己的帐户签名,以防万一父亲决定停止续订会员资格,但是如果这样做,每当我尝试将其安装在旧版本之上时,我都会在Xcode中看到标题为“应用安装失败”和消息“无法写入设备”。

After googling around, people suggest to simply delete the old version of the app from the device and install the new version, but since the app utilizes its local documents directory, this would mean that all the user's files would be deleted when deleting the app, which is unacceptable, since this is the main feature of the app. 谷歌搜索后,人们建议只从设备中删除该应用的旧版本并安装新版本,但是由于该应用利用其本地文档目录,因此这意味着在删除该应用时,所有用户文件都将被删除,这是不可接受的,因为这是应用程序的主要功能。

Since the app has iTunes File Sharing enabled, users could copy all their files off the device via iTunes, delete the app, install the new version, and copy all their files back. 由于该应用程序启用了iTunes File Sharing,因此用户可以通过iTunes从设备上复制所有文件,删除该应用程序,安装新版本,然后将其所有文件复制回来。 However, some users do not have computers, owning solely phones or tablets, so this is also unacceptable since they would not be able to download the update without losing everything. 但是,某些用户没有计算机,仅拥有手机或平板电脑,因此这也是不可接受的,因为他们将无法下载更新而不会丢失所有内容。 Plus, many of the apps users are older folks that aren't great with technology, which would just make this a massive pain for everyone. 此外,许多应用程序用户都是年龄较大的人,他们对技术并不满意,这只会给所有人带来巨大的痛苦。

I haven't tried anything except changing the signing team because I don't want to mess anything up by polluting my account with manually created certificates and provisioning profiles that end up not working. 除了更改签名团队之外,我没有尝试过其他任何事情,因为我不想用手动创建的证书污染我的帐户,并且最终配置不起作用而置备了配置文件。 It seems strange to changing the team doesn't work since we have to get a new distribution certificate every year which still changes how the app was signed when releasing an update. 更换团队似乎没有用,这很奇怪,因为我们每年都必须获得新的发行证书,这仍然会更改发布更新时应用程序的签名方式。 I must be missing something since it seems like this is a common enough scenario that Apple would have a process to do it. 我必须丢失一些东西,因为看来这是苹果公司将要制定流程的足够普遍的情况。

What else do I need to do? 我还需要做什么?

Notes: 笔记:

  1. Xcode usually automatically creates provisioning profiles for apps (assuming the "Automatically manage signing" checkbox is checked, which it is), but has not created one for this app on my account, every though when I roll my mouse over the info icon next to the "Xcode Managed Profile" line in Targets -> myApp -> General, it says it has a provisioning profile under my account's development certificate. Xcode通常会自动为应用创建配置文件(假设选中了“自动管理签名”复选框,但是它并未)为此帐户创建了该应用的配置文件,即使我将鼠标悬停在旁边的信息图标上Targets-> myApp-> General中的“ Xcode Managed Profile”行,它说在我帐户的开发证书下有一个配置文件。

  2. I have access to the certificates and provisioning profiles of my father's account on my computer, so grabbing the p12 of the certificate used to sign the current release isn't applicable. 我可以在我的计算机上访问父亲帐户的证书和配置文件,因此不适用于获取用于签署当前版本的证书的p12

It's been a while since I asked this question, but if I remember correctly, I think the answer was that I simply didn't have to do anything. 自问这个问题已经有一段时间了,但是如果我没记错的话,我认为答案是我根本不需要做任何事情。

The issue stemmed from the fact that I was trying to install an app that was signed with different credentials than the currently installed version was signed with. 该问题源于以下事实:我正在尝试安装使用与当前安装版本不同的凭据签名的应用程序。 For example, if I have an app installed that is signed by account1, then installing any app with the same bundle ID but signed with anything other than account1 (let's call it account2) will fail. 例如,如果我安装了一个由account1签名的应用程序,则安装具有相同捆绑软件ID但使用account1以外的其他任何东西签名的应用程序(将其称为account2)将失败。 In my case, account1 was my father's account and account2 was my account. 在我的情况下,account1是我父亲的帐户,而account2是我的帐户。

When it comes to the App Store, after reviewing your app, Apple signs it and publishes it to the App Store. 谈到App Store时,Apple在审查您的应用程序后对其进行签名并发布到App Store。 As a result, everything on the App Store is signed by Apple. 结果,App Store上的所有内容均由Apple签名。

This means that the version of the app submitted under account1 is Apple-signed, and after being transferred to account2, any versions account2 submits will also be Apple-signed. 这意味着在account1下提交的应用程序的版本是Apple签名的,并且在转移到account2之后,account2提交的任何版本也将由Apple签名。 From the final user's perspective, since the old version (submitted by account1) and the new version (submitted by account2) are signed by the same entity (Apple), there is no conflict and the user never knows that the app was transferred to another account. 从最终用户的角度来看,由于旧版本(由account1提交)和新版本(由account2提交)是由同一实体(Apple)签名的,因此没有冲突,并且用户永远都不知道该应用程序已转移到另一个应用程序帐户。

So even if you see conflicts on your end, the end user won't. 因此,即使最终看到冲突,最终用户也不会。 To stop seeing them, simply uninstall any versions of the app that were signed with account1 and install your new version signed with account2. 要停止查看它们,只需卸载用account1签名的应用程序的任何版本,然后安装用account2签名的新版本。 Everything should work just fine. 一切都应该正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将应用转移到新帐户后提交应用更新 - Submit App Update after App transfer to new account 有没有办法测试iOS应用开发者帐户转移? - Is there a way to test an iOS app developer account transfer? 无法将应用转移到另一个开发者帐户 - Unable to transfer app to another developer account 使用其他开发者帐户在XCode中签名应用 - Sign app in XCode with another developer account 将应用程序转移到我在Play商店和App Store中的开发者帐户 - Transfer App to my developer account in Play Store and App Store 将转移的 iOS 应用更新到另一个开发者帐户 - Update Transfered iOS app to another developer account 您可以将Apple TV和iOS应用程序转移到另一个开发者帐户吗? - Can you transfer an Apple TV and iOS App to another Developer Account? 如何将应用程序从一个开发者帐户转移到另一个 - How to transfer app from one developer account to another 将使用 Apple 登录和 Firebase 的 iOS 应用程序转移到新的开发者帐户 - Transfer iOS app that uses Apple Sign in and Firebase to a new developer account 将应用程序从一个Facebook开发者帐户转移到另一个Facebook开发者帐户 - Transfer app from one Facebook developer account to another Facebook developer account
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM