【问题标题】:Waxsim Xcode 4.4Waxsim Xcode 4.4
【发布时间】:2012-09-03 17:40:07
【问题描述】:

我一直在使用 Cruise Control、KIF 和 Waxsim 来测试我的 iOS 应用程序。最近,我升级到 Xcode 4.4 并注意到 WaxSim 不再运行。我收到了这个错误,这让我相信 iPhoneSimulator 私有框架被移动了。关于如何让 WaxSim 重新启动并运行的任何想法?

dyld: Library not loaded: @rpath/DevToolsFoundation.framework/Versions/A/DevToolsFoundation
Referenced from: /Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient
Reason: image not found

【问题讨论】:

    标签: ios xcode xcode4 ios-simulator kif-framework


    【解决方案1】:

    是的,以前 Xcode 在 /Developer 下,现在通过 Mac App Store 分发,它在 /Applications 下。遗憾的是,WaxSim 在这方面似乎没有得到很好的维护或修补,所以你需要欺骗它,让它认为库/框架在正确的位置。

    我在这里做了符号链接:

    http://www.leonardoborges.com/writings/2012/05/03/build-automation-with-xcode-4-dot-3-kif-and-jenkins/

    sudo ln -s /Applications/Xcode.app/Contents/Developer/ /Developer
    sudo ln -s /Applications/Xcode.app/Contents/OtherFrameworks/DevToolsCore.framework /Developer/Library/PrivateFrameworks/
    sudo ln -s /Applications/Xcode.app/Contents/OtherFrameworks/DevToolsCParsing.framework /Developer/Library/PrivateFrameworks/
    sudo ln -s /Applications/Xcode.app/Contents/OtherFrameworks/DevToolsFoundation.framework /Developer/Library/PrivateFrameworks/
    sudo ln -s /Applications/Xcode.app/Contents/OtherFrameworks/DevToolsInterface.framework /Developer/Library/PrivateFrameworks/
    sudo ln -s /Applications/Xcode.app/Contents/OtherFrameworks/DevToolsKit.framework /Developer/Library/PrivateFrameworks/
    sudo ln -s /Applications/Xcode.app/Contents/OtherFrameworks/DevToolsRemoteClient.framework /Developer/Library/PrivateFrameworks/
    sudo ln -s /Applications/Xcode.app/Contents/OtherFrameworks/DevToolsSupport.framework /Developer/Library/PrivateFrameworks/
    

    很抱歉莱昂纳多从他的网站上粗体复制/粘贴,但我想这就是 SO 想要的——这里的答案以及链接。

    【讨论】:

    • 是的,我实际上拥有从 XCode 4.2 迁移到 4.3 的那些。我决定转到 ios-sim。不幸的是,我也遇到了相关的问题。
    • 感谢@JamesPaolantonio 的提示,ios-sim 对我来说工作正常 :)
    【解决方案2】:

    我发现每次更新 SDK 时都必须重新构建和重新安装 WaxSim。运行

    WaxSim -a
    

    查看可用 SDK 的列表。如果您的未在此处列出,则使用以下命令重新构建并重新安装 WaxSim。

    sudo xcodebuild install DSTROOT=/
    

    我还从以下 repo 中获得了 WaxSim:

    https://github.com/jonathanpenn/WaxSim

    谁修复了一些东西——比如从 Xcode.app 而不是 /Developer 访问东西

    【讨论】:

      【解决方案3】:

      我没有设置符号链接,而是做了以下操作:

      在 xcode 中打开项目,进入目标设置,并将“运行路径搜索路径”编辑为以下内容:

      /Applications/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks
      /Applications/Xcode.app/Contents/OtherFrameworks
      

      同时删除并重新添加 QTKit 和 AppKit 框架,以便它可以在您的 Xcode 版本中找到它们。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-01-12
        • 2012-07-25
        相关资源
        最近更新 更多