我正在运行
Xcode 5并为iOS 7构建.当我尝试构建此项目以进行归档时,我收到此错误.我得到它在我的本地机器和我的jenkins构建服务器.我经历了故事板,我没有发现任何这个错误的原因.它在模拟器和设备上构建得很好.我甚至不知道什么runtime.nib是通过addEditHCPViewController.nib是引用到故事板内的一个视图控制器.有任何想法吗?
CompileStoryboard myApp/Profiles.storyboard cd "/builds/Company/workspace/myApp" setenv IBSC_MINIMUM_COMPATIBILITY_VERSION 6.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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/usr/bin/ibtool --errors --warnings --notices --minimum-deployment-target 6.1 --output-format human-readable-text --compile /builds/Company/workspace/myApp/build/Distribution-iphoneos/myApp.app/Profiles.storyboardc /builds/Company/workspace/myApp/myApp/Profiles.storyboard /* com.apple.ibtool.document.warnings */ /builds/Company/workspace/myApp/myApp/Profiles.storyboard:jlW-RT-oUY: warning: 2 views are vertically ambiguous. /builds/Company/workspace/myApp/myApp/Profiles.storyboard:1Qm-h4-IZr: warning: Position is ambiguous for "Picker". /builds/Company/workspace/myApp/myApp/Profiles.storyboard:d8p-iA-2QW: warning: Frame for "Button" will be different at run time. /* com.apple.ibtool.errors */ /builds/Company/workspace/myApp/myApp/Profiles.storyboard: error: Compilation Failed. Unable to write to path: /builds/Company/workspace/myApp/build/Distribution-iphoneos/myApp.app/Profiles.storyboardc Underlying Errors: Description: The file “runtime.nib” doesn’t exist. Failure Reason: The file doesn’t exist. Underlying Errors: Description: The operation couldn’t be completed. No such file or directory Failure Reason: No such file or directory Description: “Profiles.storyboardc” couldn’t be removed. Failure Reason: The file doesn’t exist. Underlying Errors: Description: The operation couldn’t be completed. No such file or directory Failure Reason: No such file or directory CompileStoryboard myApp/Profiles.storyboard cd "/builds/Company/workspace/myApp" setenv IBSC_MINIMUM_COMPATIBILITY_VERSION 6.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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/usr/bin/ibtool --errors --warnings --notices --minimum-deployment-target 6.1 --output-format human-readable-text --compile /builds/Company/workspace/myApp/build/Distribution-iphoneos/myApp.app/Profiles.storyboardc /builds/Company/workspace/myApp/myApp/Profiles.storyboard /* com.apple.ibtool.document.warnings */ /builds/Company/workspace/myApp/myApp/Profiles.storyboard:d8p-iA-2QW: warning: Frame for "Button" will be different at run time. /builds/Company/workspace/myApp/myApp/Profiles.storyboard:jlW-RT-oUY: warning: 2 views are vertically ambiguous. /builds/Company/workspace/myApp/myApp/Profiles.storyboard:1Qm-h4-IZr: warning: Position is ambiguous for "Picker". /* com.apple.ibtool.errors */ /builds/Company/workspace/myApp/myApp/Profiles.storyboard: error: Compilation Failed. Unable to write to path: /builds/Company/workspace/myApp/build/Distribution-iphoneos/myApp.app/Profiles.storyboardc Underlying Errors: Description: The file “addEditHCPViewController.nib” doesn’t exist. Failure Reason: The file doesn’t exist. Underlying Errors: Description: The operation couldn’t be completed. No such file or directory Failure Reason: No such file or directory
解决方法
我找到了答案.在git的合并期间,项目文件没有被合并,而Profiles.storyboard被作为资源被包含两次.当它第二次尝试编译相同的资源时,它会失败.