Tag: ibtool

如何解决ibtool与Main.storyboard错误失败:shouldBeArchived无法识别

我从来没有遇到过这个问题。 该应用程序用于完美运行,但现在它总是说这个错误。 我已经尝试清洁和重新启动。 我已经尝试重置IOS模拟器。 我试图删除派生的数据。 这是xcode构build它所说的: CompileStoryboard AITEST/Base.lproj/Main.storyboard cd /Users/tinkl/Documents/project-xcode/testProject/AITEST export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:(null)/Users/tinkl/.gem/ruby/2.0.0(null):(null)/Library/Ruby/Gems/2.0.0(null):(null)/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0(null):/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/.. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool –target-device iphone –errors –warnings –notices –module AITEST –minimum-deployment-target 8.1 –output-partial-info-plist /Users/tinkl/Library/Developer/Xcode/DerivedData/AITEST-eyqkoubdyxykegdhwecchlxhuetf/Build/Intermediates/AITEST.build/Debug-iphonesimulator/AITEST.build/Main-SBPartialInfo.plist –auto-activate-custom-fonts –output-format human-readable-text –compile /Users/tinkl/Library/Developer/Xcode/DerivedData/AITEST-eyqkoubdyxykegdhwecchlxhuetf/Build/Products/Debug-iphonesimulator/AITEST.app/Base.lproj/Main.storyboardc /Users/tinkl/Documents/project-xcode/testProject/AITEST/AITEST/Base.lproj/Main.storyboard 2015-06-16 10:44:10.053 ibtoold[20616:447845] -[IBUIViewControllerAutolayoutGuide shouldBeArchived]: unrecognized selector sent to instance 0x7fdd8d4b0d40 /* com.apple.ibtool.errors */ /Users/tinkl/Documents/project-xcode/testProject/AITEST/AITEST/Base.lproj/Main.storyboard: error: Exception while running ibtool: -[IBUIViewControllerAutolayoutGuide shouldBeArchived]: unrecognized […]

增量本地化如何工作?

我正在尝试构build我的第一个本地化应用程序。 我使用NSLocalizedString转换代码中的所有string(用于使用genstrings工具)。 现在我碰到了ibtool 。 增量本地化如何工作? 关于手册页,我应该写这样的东西: $ ibtool –previous-file path/to/prev.xib \ –incremental-file path/to/inc.xib –localize-incremental \ –write path/to/new.xib mod.xib 我在哪里得到增量文件? 为了我的理解,如果我使用版本控制(git / svn),“旧”文件是在几个提交前,增量文件是差异和path/到/ new.xib是新生产的xib文件。 mod.nib对我来说是一个谜。 任何人都可以解释我是如何工作的? 另外 – 如果没有以前的版本可用(即不增量,但初始本地化),我如何开始xib的本地化?