简体   繁体   English

Jenkins Xcode-Plugin找不到SDK(单元测试)

[英]Jenkins Xcode-Plugin Can't Find SDK (Unit Testing)

I'm using the xcode-plugin on Jenkins to run my unit tests and generate a result output in my iOS application. 我在Jenkins上使用xcode-plugin来运行单元测试并在iOS应用程序中生成结果输出。 Although my build completes normally, when it gets to the point of executing the test portion it fails with the following error: 尽管我的构建正常完成,但是当它到达执行测试部分的位置时,它将失败并显示以下错误:

Going to invoke xcodebuild:target: FunTests, sdk: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/, project: DEFAULT, configuration: Debug, clean: NO, archive:NO, symRoot: DEFAULT, configurationBuildDir: DEFAULT, codeSignIdentity: DEFAULT [workspace] $ /usr/bin/xcodebuild -target FunTests -sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/ -configuration Debug build xcodebuild: error: SDK "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/" cannot be located. 打算调用xcodebuild:target:FunTests,sdk:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/,项目:DEFAULT,配置:Debug,clean:NO,archive:NO,symRoot:DEFAULT ,configurationBuildDir:默认,codeSignIdentity:默认[工作区] $ / usr / bin / xcodebuild -target FunTests -sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/ -configuration调试构建xcodebuild:错误:找不到SDK“ /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/”。 Build step 'Xcode' marked build as failure Archiving artifacts Finished: FAILURE 构建步骤“ Xcode”将构建标记为失败归档工件已完成:失败

Here's a screen capture of my settings: 这是我的设置的屏幕截图:

xcode-plugin配置

I've entered the correct path to the SDK, but no dice. 我已经输入了正确的SDK路径,但是没有骰子。 I'm guessing this is something simple I've overlooked. 我猜这是我忽略的简单事情。 Can anyone help, or even recommend an alternative way to accomplish this? 任何人都可以提供帮助,甚至推荐其他方法来实现这一目标吗? I'm using Xcode 5, Jenkins v1.565, and xcode-plugin v1.4.2. 我正在使用Xcode 5,Jenkins v1.565和xcode-plugin v1.4.2。 Thanks in advance! 提前致谢!

可能是SDK名称错误,请尝试xcodebuild -showsdks并使用其中显示的名称

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM