首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Xcode 5故事板编译失败

Xcode 5故事板编译失败
EN

Stack Overflow用户
提问于 2013-12-13 15:40:22
回答 6查看 7.1K关注 0票数 14

我正在运行Xcode 5并为iOS 7构建。当我试图构建这个存档项目时,我会得到这个错误。我在本地机器和jenkins构建服务器上得到它。我已经通过了故事板,我没有找到任何原因造成这一错误。它在模拟器和设备上构建得很好。我甚至不确定runtime.nib是什么,尽管addEditHCPViewController.nib引用了故事板中的一个视图控制器。有什么想法吗?

代码语言:javascript
复制
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
EN

回答 6

Stack Overflow用户

回答已采纳

发布于 2013-12-18 20:21:24

我找到了答案。在git中的合并过程中,项目文件没有正确合并,Profiles.storyboard两次作为资源被包含。当它第二次试图编译相同的资源时,就会失败。

票数 22
EN

Stack Overflow用户

发布于 2014-02-23 17:01:12

我刚刚清理了这个项目,然后再建一次,然后错误消失了。

票数 5
EN

Stack Overflow用户

发布于 2015-09-17 10:20:17

只是觉得我应该补充说,我有一个问题有一段时间,不知道如何解决它。

结果发现,我的一个Storyboard in在(/)中有一个斜杠,这导致了错误。删除这个斜杠解决了错误!

希望这能帮到一些人!

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20570340

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档