ios - Xcode无法将内容解析为info.plist

标签 ios xcode facebook parse-platform compiler-errors

我是xcode的新手。我正在使用xcode 7,并且在单击项目时发现了这个“问题”。
here is the image
我只是添加了一个解析登录名,它可以正常工作,但是当我尝试添加一个Facebook SDK时,我发现身份已更改。我的Parse登录在模拟器和编译器中工作正常,但是我不确定图像的含义,也不确定是否会影响文件。
我该如何解决该问题?另外,当我尝试打开info.plist时,它显示“无法以其他格式打开infor.plist”会影响文件还是我做错了什么?

(我在info.plist中添加了“”,但仍然会发生)

[![info.plist] [2]] [2]

 <?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>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>info.
<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>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>fb1659373867666932</string>
        </array>
    </dict>
</array>
<key>FacebookAppID</key>
<string>1659373867666932</string>
<key>FacebookDisplayName</key>
<string>Swish</string>
<key>LSApplicationQueriesSchemes</key>
<array>
    <string>fbapi</string>
    <string>fb-messenger-api</string>
    <string>fbauth2</string>
    <string>fbshareextension</string>
</array>
</dict>
</plist>

最佳答案

您应该使用编辑器打开plist文件,并至少检查文件是否遵循xml语法,换句话说,文件格式是否正确。

关于ios - Xcode无法将内容解析为info.plist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34466198/

相关文章:

android - 如何在 android 中为 Facebook 登录获取 JWT 和访问 token oAuth

ios - UIViewControllers 之间的自定义转换不起作用

ios - 如何使用 Swift 创建 UISearchBar 以搜索我的 Tableview 数据的选项?

swift - Xcode+Swift+XPC : How to start and deploy a Swift XPC target on MacOS

iphone - 如何更改导航栏上 UIBarButtonItem 的字体颜色/文本颜色

asp.net - 在asp.net中获取Facebook Page Feed(使用graph api),收到错误 "Unsupported Browser"

Facebook 用户 ID 在测试应用程序上不同

ios - 无法以正确的格式获取 XML 数据以在 Swift 的 TableView 中显示

ios - Cocos2d 和 UIImageView 哪个对 PNG 动画更优化?

ios - 在没有导航 Controller 的情况下实现后退按钮