嗨,大家好我一直在寻找解决这个问题的互联网,只找到1并且它没有解决它:/
我尝试在摘要和plist文件中输入版本号仍然具有相同的错误
虽然在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>CFBundleGetInfoString</key>
<string></string>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Calmness_icon_ratina.png</string>
<string>Default.png</string>
<string>Default@2x.png</string>
<string>Calmness_icon57.png</string>
</array>
<key>UIPrerenderedIcon</key>
<true/>
</dict>
</dict>
<key>CFBundleIdentifier</key>
<string>com.jassem.calmness</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<key>CFBundleSignature</key>
<string>BNDL</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
<key>UIPrerenderedIcon</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UIStatusBarHidden</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
</dict>
</plist>
答案 0 :(得分:0)
很可能是xcode本身的问题。尝试清理,删除管理器中的派生数据,重新启动Xcode。如果不起作用,请检查项目窗格,总结一下,如果版本和构建都说1.0。
答案 1 :(得分:0)
由于某种原因,Xcode找不到上述密钥。
答案 2 :(得分:0)
您需要转到info.plist,添加一个名为“Application Category”的新密钥,然后选择您设计的类别。