Unit Tests on Mojave: "The bundle couldn’t be loaded because it is damaged or missing necessary r...

单元测试的一些坑

The bundle “TargetTests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle. : Library not loaded: Reason: image not found Program ended with exit code: 82
先确认podfile配置是否完备
尝试修改podfile解决
如果尝试无效,而你的Mac系统恰巧是mojave ,那你很幸运,可能是系统bug
New Build System 让人迷茫,因为出的问题也是让人懵X
So,Maybe尝试用过去的system

Unit Tests on Mojave:
选择Legacy Build System

不得不吐槽自从xcode10 and mojave之后 这个New Build System真是问题不断

详细内容在GitHub上关于UnitTest与CocoaPods的讨论

你可能感兴趣的:(Unit Tests on Mojave: "The bundle couldn’t be loaded because it is damaged or missing necessary r...)