简体   繁体   English

供应配置文件,证书等

[英]Provisioning Profiles, certificates and such

I'm trying to understand the whole provisioning-proccess, but I just don't get it.. 我试图了解整个配置过程,但我不明白。

I have tried to read up, but it's too weird and difficult for me to understand, especially when English is neither my primary or secondary language.. 我已经尝试阅读,但是对我来说太奇怪了而且很难理解,尤其是当英语既不是我的主要语言也不是次要语言时。

I have been developing for a while, and I remember stressing alot when setting up my iphone for development the first time. 我已经开发了一段时间,我记得第一次为开发设置iphone时要强调很多。 When I go into Settings->General on my phone I have 17 profiles, but at least I got it working in the end. 当我在手机上进入Settings->General ,我有17个配置文件,但至少最终我可以使用它。

Now, I'm porting my app to iPad, and I'm trying to add my iPad to the table. 现在,我正在将应用程序移植到iPad,并试图将iPad添加到桌面。 This is what I did: I went to developer.apple.com, added my udid in devices, I then went to provisioning on the same webpage, and saw three profiles, one uneditable(controlled by xcode), one connected to my app's AppID, and one connected to myself as an AppID. 这是我做的:我去developer.apple.com,在设备加入我的UDID,然后我去provisioning于同一网页,看到三个配置文件,一个不可编辑的(由Xcode的控制),一个连接到我的应用程序的的AppID ,并且其中一个以AppID身份连接到我自己。

I added my new iPad-device to all three of them to be sure, and downloaded them again. 我确定将我的新iPad设备添加到所有这三个设备中,然后再次下载。 I dragged the .mobileprovisions to iTunes and to Xcode, and I went into organizer and clicked Refresh to update them. 我将.mobileprovisions拖动到iTunes和Xcode,然后进入管理器并单击“ Refresh以更新它们。 I clicked Use for development on my iPad, and it says it contains those profiles. 我在iPad上单击了“ Use for development ”,它说其中包含那些配置文件。 They're also in Settings->General on my iPad. 它们也在我的iPad上的Settings->General ”中。

In my XCode project, I go under Targets->Build Settings->Code Signing , and set one of my new profiles to Debug , and one of the other to Any iOS Sdk inside it. 在我的XCode项目中,进入Targets->Build Settings->Code Signing ,并将其中一个新的配置文件设置为Debug ,将另一个新配置文件设置为其中的Any iOS Sdk I've tried multiple combinations. 我尝试了多种组合。 I also went to Project->Build Settings->Code Signing and did the same thing. 我还去了Project->Build Settings->Code Signing ,并做了同样的事情。

When I run my app on my device, it pops up two of the same error message saying A valid provisioning profile for this executable was not found. 当我在设备上运行我的应用程序时,它弹出两个相同的错误消息,提示A valid provisioning profile for this executable was not found.

When I now connect my iPhone, which has been working perfectly fine all along, the exact same thing happens. 现在,当我连接一直运行良好的iPhone时,会发生完全相同的事情。 Two of the same error message. 两个相同的错误消息。

The question: 问题:

Which profiles goes where? 哪些配置文件去哪里? What is the difference between the profile containing myself as an AppID and the one containing my actual app's ID as AppID? 包含我自己作为AppID的配置文件和包含我自己的实际应用程序ID作为AppID的配置文件有什么区别? What is the difference between Target->Build Settings and Project->Build Settings when it comes to Code Signing ? Code SigningTarget->Build SettingsProject->Build Settings什么区别?

Also, we spent a lot of time making push work, and out app is on AppStore rigth now, so I don't want to start deleting profiles and ID's, cause I think I read somewhere that that could make the notification stop working. 另外,我们花了很多时间进行推送工作,而现在应用程序已在AppStore的权限上,所以我不想开始删除配置文件和ID,因为我想我读到了可能使通知停止工作的地方。

Oh, and I downloaded a new certificate as well at some point, containing the new profiles, and it ended up in keychain named along with 1000 others.. 哦,我也在某个时候下载了一个新证书,其中包含新的配置文件,它最终以与其他1000个文件一起命名的钥匙串结尾。

Help :( ? 救命 :( ?

Sorry for long and extremely boring/noobish question. 很抱歉,这个问题很漫长而无聊。

I think that your code doesn't build because of a certificate issue - like you said at the end of your question - you "downloaded a new certificate at some point containing the profiles..." You need to understand that a certificate does not 'contain' profiles, but profiles are created and signed using a specific certificate. 我认为您的代码由于证书问题而无法构建-就像您在问题末尾所说的那样-您“在某个时间点下载了包含配置文件的新证书...”您需要了解证书不会“包含”配置文件,但是配置文件是使用特定证书创建和签名的。 Check that you have the private key of this certificate - if the signing request was not issued by you, it will require someone else exporting this certificate for you from his own keychain. 检查您是否拥有此证书的私钥 -如果不是您发出的签名请求,它将要求其他人从其自己的钥匙串中为您导出此证书。 Keep in mind that downloading the certificate available in your developer account will not suffice. 请记住,仅下载开发人员帐户中可用的证书是不够的。

As for everything else: 至于其他一切:

Which profiles goes where? 哪些配置文件去哪里? Make sure you're creating relevant profiles with correct bundle IDs for your apps. 确保您正在使用应用程序的正确捆绑包ID创建相关的配置文件。 Distribution profiles should include AdHoc and AppStore profiles, while Development profiles are, well, for development :) 发行配置文件应包括AdHoc和AppStore配置文件,而开发配置文件则适合进行开发:)

What is the difference between the profile containing myself as an AppID and the one containing my actual app's ID as AppID? 包含我自己作为AppID的配置文件和包含我自己的实际应用程序ID作为AppID的配置文件有什么区别? Not sure what you mean here. 不知道你的意思在这里。 Myself as an AppID? 我自己是AppID吗? Each profile is linked to a specific App ID that has a bundle ID - it can be used to compile any app that has this bundle or any sub-domain of it in the info.plist of the project. 每个配置文件都链接到具有捆绑软件ID的特定应用程序ID-可用于在项目的info.plist中编译具有此捆绑软件或其任何子域的任何应用程序。

What is the difference between Target->Build Settings and Project->Build Settings when it comes to Code Signing? 在代码签名方面,Target-> Build Settings和Project-> Build Settings有什么区别? You can think of your Project->Build Settings as the global settings and the Target->Build Settings as the target-specific settings. 您可以将Project-> Build Settings视为全局设置,将Target-> Build Settings视为特定于目标的设置。 If XCode can't figure out which profile to use from the target settings, it will go and fetch it from the project settings. 如果XCode无法从目标设置中找出要使用的配置文件,它将从项目设置中获取。

The problem was that after we had released our app to the AppStore, we forgot to put the "Edit Scheme->Run" back to Debug from Release. 问题是,在将应用程序发布到AppStore之后,我们忘记了将“编辑方案->运行”放回发布版中的Debug。 This had no effect on my iPhone because I have added it to the release-provisioning-test thing. 这对我的iPhone没有影响,因为我已将其添加到发布配置测试中。

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

相关问题 证书,供应配置文件,公钥/私钥揭秘 - Certificates, Provisioning Profiles, public/private keys demystified 从头到尾设置证书,供应配置文件和代码签名 - Setting up Certificates, Provisioning Profiles, and Code Signing from Beginning to End 在xcode 5中手动添加配置文件 - Adding provisioning profiles manually in xcode 5 创建供TestFlight使用的配置文件? - Creating provisioning profiles for using with TestFlight? 找不到适用于Applications / ***。app的匹配配置文件 - No matching provisioning profiles found for Applications/ ***.app 刷新配置文件时Xcode崩溃 - Xcode crashes when refreshing provisioning profiles 在XCode 7.3中将应用程序提交到App Store时,“没有匹配的配置文件” - “No matching provisioning profiles” when Submitting App to App Store in XCode 7.3 使用use_frameworks签名错误! 和独特的配置文件 - Signing errors with use_frameworks! and unique provisioning profiles 分发设置配置文件有效,但开发配置文件显示未找到有效的签名实体 - Distribution Provisioning Profiles are valid but Development Profiles say valid signing entity not found 为什么我们不能在xcode 6.1.1中选择配置文件和代码签名来进行推送通知 - why can't we select provisioning profiles and code signing in xcode 6.1.1 for push notifications
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM