2017-05-02 74 views
2

我試圖上傳到蘋果的新版本之前,驗證應用程序,我得到這個錯誤:在包Info.plist中必須包含CFBundleVersion關鍵

「Info.plist中的包必須包含CFBundleVersion項。「

但是什麼包?它可能與框架有關嗎?

兩個密鑰的文件中,所以我不知道發生了什麼事情

<?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>en</string> 
     <key>CFBundleDisplayName</key> 
     <string>${PRODUCT_NAME}</string> 
     <key>CFBundleExecutable</key> 
     <string>${EXECUTABLE_NAME}</string> 
     <key>CFBundleIdentifier</key> 
     <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> 
     <key>CFBundleInfoDictionaryVersion</key> 
     <string>6.0</string> 
     <key>CFBundleName</key> 
     <string>${PRODUCT_NAME}</string> 
     <key>CFBundlePackageType</key> 
     <string>APPL</string> 
     <key>CFBundleShortVersionString</key> 
     <string>2.0</string> 
     <key>CFBundleSignature</key> 
     <string>????</string> 
     <key>CFBundleVersion</key> 
     <string>2.0</string> 
     <key>Fabric</key> 
     <dict> 
      <key>APIKey</key> 
      <string></string> 
      <key>Kits</key> 
      <array> 
       <dict> 
        <key>KitInfo</key> 
        <dict/> 
        <key>KitName</key> 
        <string>Crashlytics</string> 
       </dict> 
      </array> 
     </dict> 
     <key>ITSAppUsesNonExemptEncryption</key> 
     <false/> 
     <key>LSApplicationQueriesSchemes</key> 
     <array> 
      <string>comgooglemaps</string> 
     </array> 
     <key>LSRequiresIPhoneOS</key> 
     <true/> 
     <key>UIAppFonts</key> 
     <array> 
      <string>ProximaNova-Light.otf</string> 
      <string>ProximaNova-Semibold.otf</string> 
      <string>ProximaNova-Regular.otf</string> 
      <string>ProximaNova-LightItalic.otf</string> 
     </array> 
     <key>UIBackgroundModes</key> 
     <array> 
      <string>remote-notification</string> 
     </array> 
     <key>UIFileSharingEnabled</key> 
     <true/> 
     <key>UILaunchStoryboardName</key> 
     <string>LaunchScreen</string> 
     <key>UIMainStoryboardFile</key> 
     <string>Main</string> 
     <key>UIRequiredDeviceCapabilities</key> 
     <array> 
      <string>armv7</string> 
     </array> 
     <key>UIStatusBarStyle</key> 
     <string>UIStatusBarStyleLightContent</string> 
     <key>UISupportedInterfaceOrientations</key> 
     <array> 
      <string>UIInterfaceOrientationPortrait</string> 
     </array> 
     <key>UISupportedInterfaceOrientations~ipad</key> 
     <array> 
      <string>UIInterfaceOrientationPortrait</string> 
      <string>UIInterfaceOrientationPortraitUpsideDown</string> 
      <string>UIInterfaceOrientationLandscapeRight</string> 
      <string>UIInterfaceOrientationLandscapeLeft</string> 
     </array> 
     <key>UIViewControllerBasedStatusBarAppearance</key> 
     <true/> 
    </dict> 
    </plist> 
+0

這是一個本機應用程序,你是使用菜單選項或工具創建存檔?我以前使用過xcodebuild – lostInTransit

+0

我使用Xcode 7.3.1來存檔應用程序 –

回答

2

有時iTunes中的碰撞將您連接捆綁版本使用上傳(即使它未發佈)的衝突,所以索性您目前的版本從2.0到2.1或3.0可能會解決您的問題,請閱讀此post以瞭解有關其他任何可能問題的更多信息。

相關問題