XCode: iOS5 localization script - Exit code 1

你离开我真会死。 提交于 2019-12-22 00:41:10

问题


i'm using the popular pythonscript ( http://code.google.com/p/edim-mobile/source/browse/trunk/ios/IncrementalLocalization/localize.py ) to localize my storyboards in ios5.

I did only some changes in storyboard and got this error:

Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide. com.apple.ibtool.errors description The strings file "MainStoryboard.strings" could not be applied. recovery-suggestion Missing object referenced from oid-keyed mapping. Object ID ztT-UO-myJ underlying-errors description The strings file "MainStoryboard.strings" could not be applied. recovery-suggestion Missing object referenced from oid-keyed mapping. Object ID ztT-UO-myJ Traceback (most recent call last): File "./localize.py", line 105, in raise Exception("\n" + errorDescription) Exception:

* Error while creating the 'Project/en.lproj/MainStoryboard.storyboard' file*

* Error while creating the 'Project/es.lproj/MainStoryboard.storyboard' file*

* Error while creating the 'Project/fr.lproj/MainStoryboard.storyboard' file*

* Error while creating the 'Project/it.lproj/MainStoryboard.storyboard' file*

Showing first 200 notices only Command /bin/sh failed with exit code 1

I can't find a solution..

Maik


回答1:


I think when you made the changes to the storyboard, you removed an Interface Builder object from the storyboard with the ID ztT-UO-myJ. Hence the error message shown.

Try to search for that ID in MainStoryboard.strings file and remove the whole line. After that try again to run the script.




回答2:


If ibtool fails with

Interface Builder could not open the document NAME.storyboard because it does not exist

Execute this in terminal:

killall -9 ibtoold

Found at: http://oleb.net/blog/2013/02/automating-strings-extraction-from-storyboards-for-localization/

P.S. The link contains a better script. https://github.com/ole/Storyboard-Strings-Extraction

P.S. This answer has links to articles about may be even better scripts



来源:https://stackoverflow.com/questions/17134897/xcode-ios5-localization-script-exit-code-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!