我想为我的应用
创建一个测试目标在添加测试目标之前,应用程序构建并运行正常 当我添加测试目标时,这是我尝试构建
时显示的内容GenerateDSYMFile / Users / dev1 / Library / Developer / Xcode / DerivedData / MyApp-apigviljomlmendsdvrgealzkevw / Build / Products / Debug-iphoneos / MyApp \ Tests.xctest.dSYM /用户/ DEV1 /库/开发商/ Xcode中/ DerivedData / MyApp的-apigviljomlmendsdvrgealzkevw /编译/产品/调试-的iPhoneOS / MyApp的\ Tests.xctest / MyApp \ Tests cd / Users / dev1 / Dev / IOSworkspace / MyApp
export 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目录" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /用户/ DEV1 /库/开发商/ Xcode中/ DerivedData / MyApp的-apigviljomlmendsdvrgealzkevw /编译/产品/调试-的iPhoneOS / MyApp的\ Tests.xctest / MyApp \ Tests -o /用户/ DEV1 /库/开发商/ Xcode中/ DerivedData / MyApp的-apigviljomlmendsdvrgealzkevw /编译/产品/调试-的iPhoneOS / MyApp的\ Tests.xctest.dSYM
错误:无法打开可执行文件' / Users / dev1 / Library / Developer / Xcode / DerivedData / MyApp-apigviljomlmendsdvrgealzkevw / Build / Products / Debug-iphoneos / MyApp Tests.xctest / MyApp测试'
我该如何解决?
答案 0 :(得分:0)
答案是......:
测试目标中的Mach-O Linker标志设置为“可执行”而不是“捆绑”。