我是xcode的新手。我正在使用xcode 7,并且在单击项目时发现了这个“问题”。
我只是添加了一个解析登录名,它可以正常工作,但是当我尝试添加一个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/