简体   繁体   English

用于运行配置文件/检查器的XCode无效配置配置文件-iPhone App

[英]XCode Invalid Provision Profile for running a profile/inspector - iPhone App

"A valid provisioning profile for this executable was not found" is displayed when I do a "command I" or XCode Product Menu and select the Profile menu item. 当我执行“命令I”或XCode产品菜单并选择“配置文件”菜单项时,将显示“找不到此可执行文件的有效配置文件”。

I want to profile my iPhone application for memory leaks. 我想分析我的iPhone应用程序是否存在内存泄漏。 I have a valid team provision profile and I have a valid app specific provisioning profile and distribution profile. 我有一个有效的团队配置文件,并且有一个有效的应用程序特定的配置文件和分发配置文件。

I must need to setup something in the build settings but I can't figure it out. 我必须在构建设置中进行一些设置,但无法弄清楚。 Searching for invalid provisioning profile for profiling has too many profile words in it and I don't find anything. 搜索无效的配置文件以进行概要分析,其中包含太多的配置文件字词,但我什么也没找到。

I hate to bother everyone, but I am out of ideas on how to search for a solution or find the answer. 我讨厌打扰大家,但是我对如何寻找解决方案或找到答案的想法不多。

Most secure way how to setup your provisioning settings from my experience is as follows: 根据我的经验,最安全的设置方式如下:

  1. Go to the Project build settings tabs (above your targets where you set your code signing) 转到“项目构建设置”选项卡(位于设置代码签名的目标上方)
  2. Set "Don't code sign" to all the fields, this is to make sure you not going to run into any trouble in the future. 在所有字段中都设置“ Do n't code sign”,以确保将来不会遇到任何麻烦。 This has cased me a lot of trouble during app submissions in the past 在过去的应用提交过程中,这给我带来了很多麻烦
  3. Go to your targets Build settings tab 转到目标“构建设置”选项卡
  4. Set both debug (Parent Debug and it's Any iOS SDK child to "iPhone developer" this is extremely important especially if you work in a team. There is nothing worse than someone setting up their own profile and than committing to the code repository! 将两个调试都设置为“ iPhone开发人员”(Parent Debug和它的任何iOS SDK子级都为“ iPhone开发人员”),这一点尤为重要,特别是如果您在团队中工作。
  5. Set provisioning for your Production / Enterprise or AdHoc statically as you should be in control of what provisioning profile is being used for the any distribution build. 为生产/企业或AdHoc静态设置设置,因为您应该控制任何发行版本所使用的设置配置文件。

Since I have switched to this, I never had a problem with a build that didn't work, was incorrectly signed or similar! 自从我切换到这个选项后,我再也不会遇到无法正常工作,签名错误或类似问题的问题!

Also, every device I connect to any machine for the first time I add to the developer portal through the nice + (plus) button to make sure both device and Mac have the latest provisionings! 另外,我第一次连接到任何计算机的每台设备都是通过“ +”(加号)按钮添加到开发人员门户的,以确保设备和Mac都具有最新的配置!

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM