简体   繁体   English

无法安装iOS应用

[英]Can't install iOS app

I'm trying to test out an .ipa file but when i install it with xCode i get the following error: Please include the kCFBundleIdentifierKey in the options dictionary when installing an app. 我正在尝试测试.ipa文件,但是当我使用xCode安装它时,出现以下错误:安装应用程序时,请在选项字典中包含kCFBundleIdentifierKey。

I've checked and re checked my bundle ID and it is matching the ad hoc profile i got so what's wrong here? 我已经检查并重新检查了我的捆绑包ID,它与我得到的临时配置文件匹配,所以这是怎么了? if i install the app with iTunes the app icon just gets grayed out and if i press the app to open it, it just writes "installing..." and keeps saying that. 如果我使用iTunes安装该应用程序,则该应用程序图标只会变灰,如果我按该应用程序将其打开,它只会显示“正在安装...”,并一直在说。

Any help is appreciated, been stuck with this for 5 hours now:( 感谢您的帮助,现在已经坚持了5个小时:(

Heres my .plist: 这是我的.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>icon@2x.png</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/>

SOLUTION: Don't use " "(space) in the file name of the .ipa file 解决方案:不要在.ipa文件的文件名中使用“”(空格)

It sounds like your app doesn't have a bundle identifier 听起来您的应用没有捆绑标识符

Do this: 做这个:

  1. Right click on your .plist file, 右键点击您的.plist文件,
  2. Click open as -> Source Code 单击打开为->源代码
  3. Copy and paste that code onto your post so we can take a look at your plist configuration. 复制该代码并将其粘贴到您的帖子上,以便我们查看您的plist配置。 Chances are something is missing and that something needs to be added such as your bundle identifier key 可能缺少某些东西,需要添加一些东西,例如您的捆绑包标识符密钥

Once youve updated your post and i've had a chance to take a look at it, I can update my post to help correct your situation 更新您的信息后,我有机会对其进行了查看,我可以更新我的信息以帮助纠正您的情况

UPDATE 更新

It turns out that the problem occurred due to a space character found in the filename which must not occur. 事实证明,出现此问题是由于在文件名中发现了一个空格字符(一定不能出现)。 Taking out the space character solves the problem. 取出空格字符即可解决问题。

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

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