为什么我会收到“安全策略错误”?何时启动我的iPhone OS应用程序? [英] Why do I get a "security policy error" when launching my iPhone OS app?

查看:1941
本文介绍了为什么我会收到“安全策略错误”?何时启动我的iPhone OS应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我前段时间创建了一个iPhone OS 2.2应用程序,最近安装了3.1 SDK。

I created an iPhone OS 2.2 app some time ago and recently installed the 3.1 SDK.

当我尝试在我的(3.1)iPod Touch上运行我的应用程序时,启动窗口显示调试器出错:启动远程程序时出错:安全策略错误。

When I try to run my app on my (3.1) iPod Touch, the launch window says "Error from Debugger: Error launching remote program: security policy error."

查看iPod Touch的控制台(通过Xcode管理器中我的设备的控制台选项卡) )显示:

Viewing the iPod Touch's Console (via the Console tab for my device in Xcode's Organizer) shows:

Wed Feb  3 23:29:17 unknown SpringBoard[24] <Warning>: Unable to launch com.blahblah.Blah_Blah because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.
Wed Feb  3 23:29:17 unknown com.apple.debugserver-43[789] <Error>: error: unable to launch the application with CFBundleIdentifier 'com.blahblah.Blah_Blah' sbs_error = 9

我已经筛选了一堆代码签名问题,只是为了让它构建和部署,所以我想这个可能是别的。

I already sifted through a bunch of code-signing issues just to get it to build and deploy, so I think this might be something else.

推荐答案

问题原来是可执行文件名中的空格(我认为)。

The problem turned out to be spaces in the executable's filename (I think).

我之前通过将:rfc1034identifier附加到我的info.plist中的PRODUCT_NAME来解决了包标识符的类似问题,但这有点不同。

I had previously sorted out a similar problem with bundle identifiers by appending ":rfc1034identifier" to PRODUCT_NAME in my info.plist, but this is a little different.

我不确定如何直接设置可执行文件名,但我最终只是将我的Target的Build选项卡上的Packaging部分中的Product Name更改为没有有任何空间。固定!

I'm not sure how to set the executable name directly, but I eventually just changed the Product Name in the "Packaging" section on the "Build" tab for my Target to something that didn't have any spaces. Fixed!

这篇关于为什么我会收到“安全策略错误”?何时启动我的iPhone OS应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆