简体   繁体   English

配给配置文件问题

[英]Provisioning profile issues

What I'm trying to do is use my own Iphone and Ipad as a simulator through xcode. 我想做的是通过xcode将自己的Iphone和Ipad用作模拟器。 I'm doing this because the built in simulator cannot get past the log in page on my app, any valid user name and password will result in the error message "Service Error, A server with the specified host name could not be found". 我这样做是因为内置模拟器无法通过我的应用程序上的登录页面,任何有效的用户名和密码都将导致错误消息“服务错误,找不到具有指定主机名的服务器”。 Because of this error, I cannot test the code I've changed. 由于这个错误,我无法测试已更改的代码。

I believe I have the profiles and certificates set up correctly on xcode, when I look at my phone's provisioning profiles in the organizer I see "Ad Hoc, Dist, Dev, and iOS Team Provisioning profile" all with a "Valid profile" status.. 我相信我已经在xcode上正确设置了配置文件和证书,当我在组织者中查看手机的配置文件时,看到“ Ad Hoc,Dist,Dev和iOS Team Provisioning配置文件”都处于“有效配置文件”状态。 。

But when I try to run the app on my phone I get the "Code Sign error: Provisioning profile 'random letters and numbers" cant be found.. I've searched this issue and came to the conclusion that I needed to modify my .xcodeproj project folder, specifically the project.pbxproj file. 但是,当我尝试在手机上运行该应用程序时,出现了“代码签名错误:配置文件'随机字母和数字'。”我搜索了此问题,得出结论,我需要修改。 xcodeproj项目文件夹,特别是project.pbxproj文件。 I go to that file and delete the line "provisioning_profile[sdk=iphoneos*]" = "random numbers and letters".. 我转到该文件,然后删除“ provisioning_profile [sdk = iphoneos *]”行=“随机数和字母”。

Now when I run the app on my iphone after deleting that line it gives me the error "libxml/tree.h" file not found... I've found the fix to this problem, but once I fix it ill get the error "openssl/ssl.h not found".. 现在,当我删除该行后在我的iphone上运行该应用程序时,它给了我找不到错误“ libxml / tree.h”文件的信息...我已经找到了解决此问题的方法,但是一旦我将其修复,就会收到该错误“找不到openssl / ssl.h”。

It seems like there is another underlying cause to these problems, because once I fix something it will just break something else. 这些问题似乎还有另一个根本原因,因为一旦我修复了某些东西,它就会破坏其他东西。 Thanks for reading and hopefully there is someone out there who had this problem and fixed it. 感谢您的阅读,希望那里有人解决了这个问题。

XCode: 4.6.3 Please let me know if there are any other specs needed that would help in debugging this problem. XCode:4.6.3请让我知道是否需要其他有助于调试此问题的规范。

Often when I've run into this it is because XCode is holding on to old profiles in memory... have you tried restarting XCode since adding your profiles? 通常,当我遇到这个问题时,是因为XCode保留了内存中的旧配置文件...自从添加配置文件以来,您是否尝试过重新启动XCode? Seemingly dumb question but hey, I have to ask. 看似愚蠢的问题,但嘿,我不得不问。

Also when you're selecting your profiles from Build Settings are choosing one of the valid profiles from the top/middle of the list or from the very bottom? 另外,当您从“构建设置”中选择配置文件时,是从列表的顶部/中间还是从底部选择有效的配置文件之一? The ones on the bottom may be invalid even though they give you a checkmark. 底部的那些即使给您打勾也可能无效。

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

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