TeamCity iOS构建失败,并且#34;无法启动构建运行器"

时间:2016-02-17 06:10:09

标签: ios xcode teamcity

我目前正在使用TeamCity 8.1.5来持续集成iOS应用。我将构建代理程序从OS X Yosemite更新为OS X El Capitan和Xcode 7.2.1(7C1002)。更新后,生成失败,并显示以下错误消息:

[Step 4/4] Failed to run build: Invalid plist file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/IDEiOSPlatformSupportCore.ideplugin/Contents/Resources/Device.xcspec
[Step 4/4] java.lang.AssertionError: Invalid plist file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/IDEiOSPlatformSupportCore.ideplugin/Contents/Resources/Device.xcspec
    at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:56)
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:128)
    at com.jetbrains.cidr.frameworks.SpecListHelper.doReadSpecs(SpecListHelper.java:36)
    at com.jetbrains.cidr.frameworks.SpecListHelper.readSpecs(SpecListHelper.java:20)
    at com.jetbrains.cidr.frameworks.ApplePlatform.readSpecs(ApplePlatform.java:142)
    at com.jetbrains.cidr.frameworks.ApplePlatform.<init>(ApplePlatform.java:76)
    at com.jetbrains.cidr.frameworks.AppleSdkManager.readPlatforms(AppleSdkManager.java:123)
    at com.jetbrains.cidr.frameworks.AppleSdkManager.initComponent(AppleSdkManager.java:83)
    at jetbrains.buildServer.xcode.AppCodeUtil.applyAdditionalInit(AppCodeUtil.java:63)
    at jetbrains.buildServer.xcode.AppCodeCommonUtil.runWithAppCodeEnvironment(AppCodeCommonUtil.java:116)
    at jetbrains.buildServer.agent.appCode.AppCodeBuildProcess.call(AppCodeBuildProcess.java:68)
    at jetbrains.buildServer.agent.appCode.AppCodeBuildProcess.call(AppCodeBuildProcess.java:36)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.jetbrains.cidr.xcode.InvalidSpecException: Object 'Name' not found in {
 Identifier = com.apple.build-system.native
 Type = BuildSystem
 BasedOn = embedded:com.apple.build-system.native
 Properties = [{
 Values = [1, 2, 1,2]
 DisplayName = Targeted Device Family
 DisplayValues = [iPhone, iPad, iPhone/iPad]
 Type = Enumeration
 Category = Deployment
 Name = TARGETED_DEVICE_FAMILY
 Description = The build system uses the selected device to set the correct value for the UIDeviceFamily key it adds to the target's Info.plist file.
 Basic = YES
}, {
 DisplayName = Enable Bitcode
 Description = Activating this setting indicates that the target or project should generate bitcode during compilation for platforms and architectures which support it.  For Archive builds, bitcode will be generated in the linked binary for submission to the app store.  For other builds, the compiler and linker will check whether the code complies with the requirements for bitcode generation, but will not generate actual bitcode. [ENABLE_BITCODE]
 Name = ENABLE_BITCODE
 Type = Boolean
 Category = BuildOptions
 DefaultValue = NO
}]
}
    at com.jetbrains.cidr.xcode.Dictionary.notNull(Dictionary.java:253)
    at com.jetbrains.cidr.xcode.Dictionary.getNotNullString(Dictionary.java:162)
    at com.jetbrains.cidr.frameworks.buildSystem.AppleBuildSystem.<init>(AppleBuildSystem.java:50)
    at com.jetbrains.cidr.frameworks.ApplePlatform$5.create(ApplePlatform.java:145)
    at com.jetbrains.cidr.frameworks.ApplePlatform$5.create(ApplePlatform.java:142)
    at com.jetbrains.cidr.frameworks.SpecListHelper.addObject(SpecListHelper.java:49)
    at com.jetbrains.cidr.frameworks.SpecListHelper.doReadSpecs(SpecListHelper.java:32)
    ... 13 more

1 个答案:

答案 0 :(得分:1)

解决方案是将TeamCity服务器更新为latest version(撰写本文时为9.1.6)。 Mac上的构建代理也自动更新,并且构建再次工作。