ios - TeamCity iOS 构建失败,出现 "Cannot start build runner"

标签 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

最佳答案

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

关于ios - TeamCity iOS 构建失败,出现 "Cannot start build runner",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35449148/

相关文章:

ios - 每次访问后在惰性 getter/中重置属性

ios - 正在为 iOS7 准备的应用程序中出现奇怪的导航栏

objective-c - NSSplitViewItem 不像 IB 中设计的那样显示

msbuild - 如何为TeamCity NuGet安装程序设置MSBuild版本?

github - 许多存储库已过时的微服务

iphone - Localizable.strings 编译了两次?

ios - 如何在 iOS 的核心数据中创建和使用 NSPredicate 查询?

swift - 如何将圆角半径设置为 UIButtons 的集合

ios - Swift TableViewCell xib 没有约束

mercurial - 无法在路径 'hg' 找到 mercurial 可执行文件