今天在跑测试用例的时候报错:
The test bundle at /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-dwvsglwyzicegbbfgziaahispxgq/Build/Products/Debug-iphonesimulator/xxx.octest could not be loaded because a link error occurred. It is likely that dyld cannot locate a framework framework or library that the the test bundle was linked against, possibly because the framework or library had an incorrect install path at link time.
在网上查了半天,都说是link出错,查了半天的path也没解决,最后回退到原版本才解决掉,原来是productName被改掉了。
解决方案:
targets-->build Settings-->Product name 改成:$(TARGET_NAME)就可以了。