2017-02-26 23 views
4

我收到錯誤, 數據無法讀取,因爲它的格式不正確。 現在我正在通過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> 

我該如何解決這個問題?

回答

2

你在Info.plist文件複製鍵,刪除以下注冊表之初

<key>UILaunchStoryboardName</key> 

,它會解決這個問題。

+0

@Idindu給我錯誤App/Info.plist':數據無法被讀取,因爲它的格式不正確。 CFBundleURLSchemes twitterkit-X32etXSRAmuYhCboKPJWq8meM \t LSApplicationQueriesSchemes \t \t \t 嘰嘰喳喳 \t \t twitterauth \t

相關問題