我以前从未遇到过这个问题.该应用程序过去运行完美,但现在它总是说这个错误.我尝试过清洁和重启.我试过重置IOS模拟器.我试过删除派生数据.
这就是它所说的:
CompileStoryboard YoungstersTennisApp/Base.lproj/Main_iPhone.storyboard
cd /Users/DJ/Desktop/YoungstersTennisApp
setenv IBSC_MINIMUM_COMPATIBILITY_VERSION 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv XCODE_DEVELOPER_USR_PATH /Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --errors --warnings --notices --minimum-deployment-target 6.0 --output-format human-readable-text --compile /Users/DJ/Library/Developer/Xcode/DerivedData/YoungstersTennisApp-ftehnuqeslbyekfiszajlixujbqk/Build/Products/Debug-iphonesimulator/YoungstersTennisApp.app/Base.lproj/Main_iPhone.storyboardc /Users/DJ/Desktop/YoungstersTennisApp/YoungstersTennisApp/Base.lproj/Main_iPhone.storyboard
Run Code Online (Sandbox Code Playgroud)
命令/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool失败,退出代码为255
对此的任何帮助都会很棒.我也有很大的故事板.那有关系吗?
提前致谢!
我正在寻找一种从.xib文件中提取所有可本地化字符串的方法,并将所有这些字符串保存在一个文件中.
可能这涉及ibtool但我无法确定一种方法,只在一个翻译词典中合并所有这些(可能是.strings,.plist或其他).
当我使用命令行工具xcodebuild(XCode 4.2.1 - iOS SDK 5.0)随机编译我的应用程序时ibtoold(Interface Builder)崩溃.当我重新运行构建时,一切正常.
发生以下错误:
ibtoold[88134:107] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-933/IBPlugin/Utilities/IBObjectMarshalling.m:499
Details: Interface Builder encountered an error communicating with the iOS Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
Exception name: NSInvalidReceivePortException
Exception reason: connection went invalid while waiting for a reply because a mach port …Run Code Online (Sandbox Code Playgroud) 我正在尝试构建我的第一个本地化应用程序.我使用NSLocalizedString(用于genstrings工具)在代码中翻译了所有字符串.现在我碰到了ibtool.增量本地化如何运作?关于手册页,我应该写这样的东西:
$ ibtool --previous-file path/to/prev.xib \
--incremental-file path/to/inc.xib --localize-incremental \
--write path/to/new.xib mod.xib
Run Code Online (Sandbox Code Playgroud)
我从哪里获得增量文件?据我所知,如果我使用的是版本控制(git/svn),那么"旧"文件在几次提交之前,增量文件是diff和path/to/new.xib是新生成的xib文件.mod.nib对我来说是一个谜.有谁能解释我这是如何工作的?另外 - 如果没有以前的版本可用,我该如何开始xib的本地化(即不进行增量,而是初始本地化)?
我以前从未遇到过这个问题.该应用程序过去运行完美,但现在它总是说这个错误.我尝试过清洁和重启.我试过重置IOS模拟器.我试过删除派生数据.
这就是xcode构建它所说的:
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 selector sent to instance 0x7fdd8d4b0d40
Run Code Online (Sandbox Code Playgroud)
运行系统:
1:OS X EL Capitan版本,10.11
2:XCode版本6.1(6A1052c)
3:命令工具版本6.1
对此的任何帮助都会很棒.我也有很大的故事板.那有关系吗?
提前致谢!
其他Reault:
如果检查stroyboard的UIViewController的autoLayout关闭,将构建成功.
如果在故事板中使用UITableViewController使用autolayout来打开,将构建成功.
这里的ibtool版本:
tinkl:~tinkl $ ibtool --version
bundle-version 1878 short-bundle-version 6.1
以下是CPU利用率的屏幕截图.

只是好奇这些Interface Builder Cocoa Touch Tool和ibtoold过程是什么.
因此,要运行应用程序,最少需要1分钟.
注意:我使用的是xcode 5
我看到当有更多视图控制器时会发生这种情况.我有大约25个视图控制器.
是的,我在Xcode 4.6中创建了项目,在更新之后,在Xcode 5中打开了.
附件是文件检查器的屏幕截图.

我正在维护一个有趣的应用程序(目标iOS6).在修复了静态代码分析器发现的所有现有编译器警告和许多其他内容后,我发现没有警告要修复.已添加-Wall和-Werror,还不太热衷于添加其他人.
然后我发现了一些有趣的东西,到目前为止谷歌或StackOverflow似乎完全不知道!
Xcode5项目"Build Settings"有一个名为"Interface Builder Storyboard Compiler - Options"的小节.四个案例是可以理解的:
问题:我可以在"其他故事板编译器标志"中添加什么内容?我在哪里可以找到更多信息?
我有一个XCode项目,使用Interface Builder构建了XIB接口文件.我正在构建本地化的XIB文件,ibtool用于提取字符串,翻译它们,并ibtool再次使用它来构建本地化的XIB文件.
但是,这样做意味着我必须翻译应用程序菜单中的所有项目,包括完全标准的项目(文件,保存,打开,最小化等).有没有办法避免这种情况?
我想在XCODE 5中打开并编译我的项目,我有一个问题.IBTOOLS错误255.有人有解决方法吗?我尝试了StackOverFlow的所有答案,但没有什么是好的.
亚历克斯.
CompileStoryboard Safetracer/MainStoryboard.storyboard
cd /Users/alexandrepestre/Documents/ThinkMyApp/Lixao/Safetracer
setenv IBSC_MINIMUM_COMPATIBILITY_VERSION 6.1
setenv PATH "/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode 2.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv XCODE_DEVELOPER_USR_PATH "/Applications/Xcode 2.app/Contents/Developer/usr/bin/.."
/Applications/Xcode\ 2.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --minimum-deployment-target 6.1 --output-format human-readable-text --compile /Users/alexandrepestre/Library/Developer/Xcode/DerivedData/Safetracer-bdnzaaahcuqikggnpqlvwvrsbddt/Build/Products/Debug-iphoneos/safetracer.app/MainStoryboard.storyboardc /Users/alexandrepestre/Documents/ThinkMyApp/Lixao/Safetracer/Safetracer/MainStoryboard.storyboard
2013-09-13 16:07:15.433 ibtoold[4775:707] [MT] DVTAssertions: Warning in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-3742/IBPlugin/Documents/IBStoryboardMetricsInferrer.m:324
Details: Failed to push inherited simulated metrics to all scenes.
Object: <IBStoryboardMetricsInferrer: 0x7f969aab4ad0>
Method: -rebuildInferredMetrics
Thread: <NSThread: 0x7f9699c191b0>{name = (null), num = 1}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2013-09-13 …Run Code Online (Sandbox Code Playgroud) 我正在使用Xcode 7.0 beta 4,最近将我的单个Main.storyboard拆分成一系列故事板引用连接的故事板(Xcode 7中新增了).
构建时,我收到以下"Interface Builder Storyboard Linker Error":
/* com.apple.ibtool.errors */
: error: The file “Info.plist” couldn’t be saved in the folder “Pages.storyboardc”.
Underlying Errors:
Description: The operation couldn’t be completed. Not a directory
Failure Reason: Not a directory
Run Code Online (Sandbox Code Playgroud)
我怎样才能理解这个错误?
故事板参考是通过选择原始故事板中的场景并选择编辑器>重构到故事板...来创建的.我遇到的上一个问题是故事板链接器抛出了不同类型的错误:
/* com.apple.ibtool.errors */
: error: Deploying Storyboard References to iOS 8.0 requires that your storyboards do not
share any view controller identifiers. Browser.storyboard and Pages.storyboard
both contain a view controller with identifier "PagesViewController".
Run Code Online (Sandbox Code Playgroud)
事实证明,使用"Refactor to …
我一直在研究 iOS 应用程序的构建过程。我创建了一个“单视图应用程序”项目并在 Xcode 8.2.1 中构建。当我查看构建报告时,我注意到 Xcode 使用 clang 编译和链接 .m 文件,然后使用 ibtool 编译和链接故事板文件。我想知道 ibtool 在编译和链接过程中实际做了什么。在执行以下编译命令后,会在/Users/Kazu/Library/Developer/Xcode/DerivedData/ObjCHelloWorld-guewhpmwckompbfvsbhizkifcadg/Build/Intermediates/ObjCHelloWorld.build/Debug-iphonesimulator/ObjCHelloWorld.build/Base.lproj/目录中创建 .storyboardc 文件,该文件将在稍后的“链接 Storyboards”阶段使用。.storyboardc文件是一组二进制文件,包括 Info.plist 文件。
ObjCHelloWorld/Base.lproj/LaunchScreen.storyboard
cd /Users/Kazu/Dropbox/ObjCHelloWorld
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"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module ObjCHelloWorld --output-partial-info-plist /Users/Kazu/Library/Developer/Xcode/DerivedData/ObjCHelloWorld-guewhpmwckompbfvsbhizkifcadg/Build/Intermediates/ObjCHelloWorld.build/Debug-iphonesimulator/ObjCHelloWorld.build/LaunchScreen-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --target-device ipad --minimum-deployment-target 10.2 --output-format human-readable-text --compilation-directory /Users/Kazu/Library/Developer/Xcode/DerivedData/ObjCHelloWorld-guewhpmwckompbfvsbhizkifcadg/Build/Intermediates/ObjCHelloWorld.build/Debug-iphonesimulator/ObjCHelloWorld.build/Base.lproj /Users/Kazu/Dropbox/ObjCHelloWorld/ObjCHelloWorld/Base.lproj/LaunchScreen.storyboard
Run Code Online (Sandbox Code Playgroud)
在链接阶段,执行以下命令,我不知道 ibtool 在做什么。我所能告诉的是它使用storyboardc在编译阶段生成的文件。
LinkStoryboards
cd /Users/Kazu/Dropbox/ObjCHelloWorld
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"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module ObjCHelloWorld --target-device iphone --target-device ipad --minimum-deployment-target 10.2 --output-format human-readable-text --link /Users/Kazu/Library/Developer/Xcode/DerivedData/ObjCHelloWorld-guewhpmwckompbfvsbhizkifcadg/Build/Products/Debug-iphonesimulator/ObjCHelloWorld.app …Run Code Online (Sandbox Code Playgroud) 我正在使用ibtool本地化我的笔尖.我运行以下命令:
ibtool --generate-strings-file MainMenu.strings en.lproj/MainMenu.nib
Run Code Online (Sandbox Code Playgroud)
然后我将生成的.strings文件添加到xcode项目中,以便稍后引用和编辑它.
当我这样做时,如果我在xcode中选择.strings文件,它会显示一堆上行问号和垃圾.但是,如果我选择不添加文件并使用xcode手动打开它,它会完美地读取文件.
我只能猜测ibtool是以不可读的xcode格式编码文件.
如果我在xcode中打开文件.strings文件,将内容复制到剪贴板,关闭文件,将.strings文件添加到xcode,用剪贴板中的内容替换其垃圾内容,然后保存文件,就可以了.我也注意到这样做会将.strings文件的大小减半.
任何指导将不胜感激.
谢谢!
我正在尝试使用ibtool命令行实用程序.我在项目目录中打开了Terminal,.xib我要处理的是,我按照Apple的文档中的说明编写了命令:
ibtool --generate-strings-file MainMenu.strings MainMenu_iPhone.xib
Run Code Online (Sandbox Code Playgroud)
我还没有.xib本地化这个文件,所以它不在任何本地化.lproj目录中.当我运行这样的命令时,我得到这个输出:
xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)
Run Code Online (Sandbox Code Playgroud)
我没有为Xcode安装音量.为什么要ibtool查找该目录?
我正在使用XCode 4.4.1并开发iOS应用程序.提前致谢
ibtool ×13
xcode ×9
ios ×7
localization ×3
storyboard ×2
uistoryboard ×2
xcodebuild ×2
xib ×2
build ×1
cocoa ×1
command-line ×1
ios7 ×1
iphone ×1
swift ×1
xcode5 ×1