{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/xcbuild/issues/45","repository_url":"https://api.github.com/repos/facebook/xcbuild","labels_url":"https://api.github.com/repos/facebook/xcbuild/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/facebook/xcbuild/issues/45/comments","events_url":"https://api.github.com/repos/facebook/xcbuild/issues/45/events","html_url":"https://github.com/facebook/xcbuild/issues/45","id":139849783,"number":45,"title":"Missing inputencoding parameter for CopyStringsFile","user":{"login":"IngmarStein","id":490610,"avatar_url":"https://avatars.githubusercontent.com/u/490610?v=3","gravatar_id":"","url":"https://api.github.com/users/IngmarStein","html_url":"https://github.com/IngmarStein","followers_url":"https://api.github.com/users/IngmarStein/followers","following_url":"https://api.github.com/users/IngmarStein/following{/other_user}","gists_url":"https://api.github.com/users/IngmarStein/gists{/gist_id}","starred_url":"https://api.github.com/users/IngmarStein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IngmarStein/subscriptions","organizations_url":"https://api.github.com/users/IngmarStein/orgs","repos_url":"https://api.github.com/users/IngmarStein/repos","events_url":"https://api.github.com/users/IngmarStein/events{/privacy}","received_events_url":"https://api.github.com/users/IngmarStein/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-10T10:36:43Z","updated_at":"2016-03-10T19:01:24Z","closed_at":"2016-03-10T19:00:59Z","body":"When building [this](https://github.com/IngmarStein/Kraftstoff) project with xcbuild using `xcbuild -project Kraftstoff.xcodeproj -target Kraftstoff -sdk iphonesimulator build`, the build fails with\r\n\r\n```\r\nCopyStringsFile …/Library/Developer/Xcode/DerivedData/Kraftstoff-gaytkgpjvvldifdisonxedsdxode/Build/Products/Release-iphonesimulator/kraftstoff.app/fr.lproj/Localizable.stringsdict fr.lproj/Localizable.stringsdict\r\n    builtin-copyStrings --validate --outputencoding binary --outdir …/Library/Developer/Xcode/DerivedData/Kraftstoff-gaytkgpjvvldifdisonxedsdxode/Build/Products/Release-iphonesimulator/kraftstoff.app/fr.lproj -- fr.lproj/Localizable.stringsdict\r\nerror: fr.lproj/Localizable.stringsdict: strings key 'Imported %d car(s) with %d fuel event(s).' is not a string\r\n\r\n** BUILD FAILED **\r\n```\r\n\r\nThe same build succeeds with xcodebuild. The only difference I can spot is that xcodebuild adds the inputencoding parameter for the CopyStringsFile task:\r\n```\r\nCopyStringsFile build/Release-iphonesimulator/kraftstoff.app/fr.lproj/Localizable.stringsdict fr.lproj/Localizable.stringsdict\r\n    export PATH=\"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin\"\r\n    builtin-copyStrings --validate --inputencoding utf-8 --outputencoding binary --outdir …/Kraftstoff/build/Release-iphonesimulator/kraftstoff.app/fr.lproj -- fr.lproj/Localizable.stringsdict\r\n```\r\nThis error seems to only occur for stringsdict files, other .strings files are processed just fine."},"comment":{"url":"https://api.github.com/repos/facebook/xcbuild/issues/comments/195002049","html_url":"https://github.com/facebook/xcbuild/issues/45#issuecomment-195002049","issue_url":"https://api.github.com/repos/facebook/xcbuild/issues/45","id":195002049,"user":{"login":"grp","id":163390,"avatar_url":"https://avatars.githubusercontent.com/u/163390?v=3","gravatar_id":"","url":"https://api.github.com/users/grp","html_url":"https://github.com/grp","followers_url":"https://api.github.com/users/grp/followers","following_url":"https://api.github.com/users/grp/following{/other_user}","gists_url":"https://api.github.com/users/grp/gists{/gist_id}","starred_url":"https://api.github.com/users/grp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grp/subscriptions","organizations_url":"https://api.github.com/users/grp/orgs","repos_url":"https://api.github.com/users/grp/repos","events_url":"https://api.github.com/users/grp/events{/privacy}","received_events_url":"https://api.github.com/users/grp/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T19:01:24Z","updated_at":"2016-03-10T19:01:24Z","body":"Pushed a fix. With it, I was able to build the project you linked. Thanks for reporting!"}}