无法安装iOS应用程序
我试图测试一个.ipa文件,但是当我用xCode安装它时,出现以下错误:安装应用程序时,请在选项字典中包含kCFBundleIdentifierKey。无法安装iOS应用程序
我已经检查并重新检查了我的包ID,它与我的特别配置文件相匹配,所以这里有什么问题?如果我用iTunes安装应用程序,应用程序图标会变灰,如果我按下应用程序打开它,它只会写“安装...”,并一直说。
任何帮助表示赞赏,一直坚持这个现在5小时:(
继承人我的.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>GolfBox</string>
<key>CFBundleExecutable</key>
<string>GP Mobil</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>icon.png</string>
<string>[email protected]</string>
</array>
</dict>
</dict>
<key>CFBundleIdentifier</key>
<string>dk.golferportal.golfersDK</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>dk.golferportal.golfersDK</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.7.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
<key>UIStatusBarHidden</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
解决方法:不要使用““(空格)在.ipa文件的文件名中
听起来好像您的应用没有捆绑标识
这样做:
- 鼠标右键点击你的.plist文件,
- 单击打开为 - >源代码
- 复制该代码粘贴到您的文章,所以我们可以看看你的plist配置。机会是缺少的东西,需要添加的东西,如您的包标识符密钥
一旦你更新了你的文章,我有机会看看它,我可以更新我的帖子来帮助纠正你的情况
UPDATE
事实证明,发生由于必须不能出现在文件名中空格字符的问题。取出空格字符解决了问题。
我的.plist现在在帖子中 – user2408952
好的,我已经检查了你的.plist,在那里没有任何错误。 让我们试试其他的东西吧,尝试用一个简单的基于视图的应用程序创建一个新的.ipa,根本没有代码 - 只是基本的应用程序 - 然后看看你是否成功,或者如果你再次发现这个问题。如果.IPA成功,那么我会建议移植你的代码和视图控制器到新的应用程序..这可能是一个肮脏的选择,但它可能可以节省你的时间,因为我不能说我们知道的信息其他任何东西 – Pavan
当我创建一个新的项目,我工作......无赖,因为这是一个非常大的应用程序。如果这真的是最好的解决方案,会是一种痛苦。无论如何,非常感谢! – user2408952
[Ad Hoc发布应用程序灰色,从iTunes传输到iPhone后可能有重复](http://stackoverflow.com/questions/20973028/ad-hoc-distribution-app-is-gray-after-transfer- from-itunes-iphone) – rckoenes