Xcode 7.0 XCTest dyld:无法加载插入的库IDEBundleInjection [英] Xcode 7.0 XCTest dyld: could not load inserted library IDEBundleInjection

查看:118
本文介绍了Xcode 7.0 XCTest dyld:无法加载插入的库IDEBundleInjection的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的iOS项目上运行单元测试,当它运行时,它会崩溃并吐出来:

I'm running unit tests on my iOS project and when it's running, it crashes and spits this out:

dyld: could not load inserted library '/private/var/mobile/Containers/Data/Application/1CAB64C8-D730-427B-8E9E-BD5E152ACFD6/tmp/IDEBundleInjection.framework/IDEBundleInjection' because no suitable image found.  Did find:
/private/var/mobile/Containers/Data/Application/1CAB64C8-D730-427B-8E9E-BD5E152ACFD6/tmp/IDEBundleInjection.framework/IDEBundleInjection: mmap() error 1 at address=0x00436000, size=0x00004000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Data/Application/1CAB64C8-D730-427B-8E9E-BD5E152ACFD6/tmp/IDEBundleInjection.framework/IDEBundleInjection

我正在使用XCode 7.0并在运行iOS 8.3的iPod上进行测试。我删除了派生数据并且我重新启动了XCode但它仍然没有工作。

I'm using XCode 7.0 and testing on an iPod running iOS 8.3. I have deleted the derived data and I've restarted XCode and it still hasn't worked.

推荐答案

我修复了这个问题创建一个新的UnitTest目标,复制所有内容,然后删除旧目标。

I fixed this by just creating a new UnitTest target, copying everything over, and removing the old one.

这篇关于Xcode 7.0 XCTest dyld:无法加载插入的库IDEBundleInjection的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆