2017-05-02 31 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以了解有关其他任何可能问题的更多信息。

相关问题