2014-01-07 58 views
0

我試圖測試一個.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文件的文件名中

+0

[Ad Hoc發佈應用程序灰色,從iTunes傳輸到iPhone後可能有重複](http://stackoverflow.com/questions/20973028/ad-hoc-distribution-app-is-gray-after-transfer- from-itunes-iphone) – rckoenes

回答

0

聽起來好像您的應用沒有捆綁標識

這樣做:

  1. 鼠標右鍵點擊你的.plist文件,
  2. 單擊打開爲 - >源代碼
  3. 複製該代碼粘貼到您的文章,所以我們可以看看你的plist配置。機會是缺少的東西,需要添加的東西,如您的包標識符密鑰

一旦你更新了你的文章,我有機會看看它,我可以更新我的帖子來幫助糾正你的情況

UPDATE

事實證明,發生由於必須不能出現在文件名中空格字符的問題。取出空格字符解決了問題。

+0

我的.plist現在在帖子中 – user2408952

+0

好的,我已經檢查了你的.plist,在那裏沒有任何錯誤。 讓我們試試其他的東西吧,嘗試用一個簡單的基於視圖的應用程序創建一個新的.ipa,根本沒有代碼 - 只是基本的應用程序 - 然後看看你是否成功,或者如果你再次發現這個問題。如果.IPA成功,那麼我會建議移植你的代碼和視圖控制器到新的應用程序..這可能是一個骯髒的選擇,但它可能可以節省你的時間,因爲我不能說我們知道的信息其他任何東西 – Pavan

+0

當我創建一個新的項目,我工作......無賴,因爲這是一個非常大的應用程序。如果這真的是最好的解決方案,會是一種痛苦。無論如何,非常感謝! – user2408952

相關問題