當我嘗試導出我的文件進行翻譯我得到這個日誌:出口本地化錯誤
[MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-12169/IDEFoundation/Localization/IDELocalizationWork.m:355 Details: Failed to read strings file "/var/folders/ny/054nwfjs63v3v9rlpkfbt94w0000gn/T/Xcode3SourceStringsAdaptor-EAAAA7F1-000C-432D-BB22-49394ECF78A9/Localizable.strings", underlying error: The data couldn’t be read because it isn’t in the correct format. Object: Method: -work Thread: {number = 1, name = main} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
我檢查這個文件,它不屬於我的文件,它是空的。爲什麼Xcode試圖去本地化這個文件,而不是我的項目Localizable.strings?每次我嘗試導出時,Xcode都會在新的臨時文件夾中創建新的空文件。
我使用String
擴展,它是將localized
計算VAR像here