ios – 无法读取数据,因为格式不正确.错误

ios – 无法读取数据,因为格式不正确.错误,第1张

概述我收到了一个错误, 无法读取数据,因为格式不正确. 现在我正在通过 swift制作iPhone应用程序. 我在我的应用程序的Info.plist中添加了几个代码,我删除了这些代码. 但是,当我想打开我的应用程序的Info.plist时,会发生此错误.我不知道为什么,因为我删除了我添加的所有代码.我认为格式确实是固定的. 我的Info.plist就像 <?xml version="1.0" enco 我收到了一个错误,
无法读取数据,因为格式不正确.
现在我正在通过 swift制作iPhone应用程序.
我在我的应用程序的Info.pList中添加了几个代码,我删除了这些代码.
但是,当我想打开我的应用程序的Info.pList时,会发生此错误.我不知道为什么,因为我删除了我添加的所有代码.我认为格式确实是固定的.
我的Info.pList就像

<?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>UILaunchStoryboardname</key>    <key>CFBundleDevelopmentRegion</key>    <string>en</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>1.0</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></dict></pList>

我怎样才能解决这个问题?

解决方法 您已在info.pList文件中复制了密钥,请在开头删除以下密钥

<key>UILaunchStoryboardname</key>

它将解决问题.

总结

以上是内存溢出为你收集整理的ios – 无法读取数据,因为格式不正确.错误全部内容,希望文章能够帮你解决ios – 无法读取数据,因为格式不正确.错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1048921.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存