[英]The data couldn’t be read because it isn’t in the correct format. error
我收到一個錯誤,無法讀取數據,因為它的格式不正確。 現在我正在快速制作 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>
它將解決問題。
嘗試以下內容:
Right click on Info.plist -> Source Code -> Discard Change
我正在構建顫振項目,問題是缺少<string>
關鍵io.flutter.embedded_views_preview添加<string></string>
修復了我的問題,我沒有更新 info.plist 雖然它是由 flutter 創建的,希望這會對使用顫振的人有所幫助
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.