ios - Xcode 持续集成没有按预期完成

标签 ios xcode build continuous-integration bots

我正在尝试在一个项目中使用 Xcode 持续集成机器人,但我无法使其正常工作或不知道哪里出了问题。

这可能是 Xcode 6.1 的错误,遗憾的是错误消息不是很有帮助: Build Service Error The integration didn't complete as expected

这是在客户端获得的完整错误描述:

Bot Issue: error. Build Service Error.
Issue: The integration didn't complete as expected..
Integration Number: 6.
Integration URL: https://iMac-OS-X-Server.local/xcode/bots/4E1F039/integrations
Description: The integration didn't complete as expected..

在服务器端我可以获得以下崩溃回溯:

Crashed Thread:        7  Dispatch queue: NSOperationQueue 0x7fb896933a40 :: NSOperation 0x7fb8930a4ee0 (QOS: USER_INITIATED)

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
ProductBuildVersion: 6A1052d
*** Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFString replaceCharactersInRange:withString:]: Range or index out of bounds'
terminating with uncaught exception of type NSException
abort() called

Application Specific Backtrace 1:
0   CoreFoundation                      0x00007fff8a1bc64c __exceptionPreprocess + 172
1   libobjc.A.dylib                     0x00007fff872816de objc_exception_throw + 43
2   CoreFoundation                      0x00007fff8a1bc4fd +[NSException raise:format:] + 205
3   CoreFoundation                      0x00007fff8a179e5d mutateError + 221
4   Foundation                          0x00007fff8b970e31 -[NSString stringByReplacingCharactersInRange:withString:] + 142
5   DVTSourceControl                    0x000000010a6a7e69 -[DVTSourceControlWorkspace workingCopyForRemoteRepository:inBlueprint:] + 733
6   DVTSourceControl                    0x000000010a6a81b2 -[DVTSourceControlWorkspace historySinceRevisionedBlueprint:maximumLogItems:completionBlock:] + 360
7   xcsbuildd                           0x000000010a4ef360 __47-[XCSCheckoutIntegrationStep saveCommitHistory]_block_invoke + 1014
8   xcsbuildd                           0x000000010a4f97ec -[XCSIntegrationStep performSynchronousBlock:] + 314
9   xcsbuildd                           0x000000010a4eef41 -[XCSCheckoutIntegrationStep saveCommitHistory] + 146
10  xcsbuildd                           0x000000010a4ebe84 __47-[XCSCheckoutIntegrationStep enqueueOperations]_block_invoke116 + 21
11  Foundation                          0x00007fff8ba1e2e8 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
12  Foundation                          0x00007fff8b90a905 -[NSBlockOperation main] + 97
13  Foundation                          0x00007fff8b8e959c -[__NSOperationInternal _start:] + 653
14  Foundation                          0x00007fff8b8e91a3 __NSOQSchedule_f + 184
15  libdispatch.dylib                   0x00007fff81550c13 _dispatch_client_callout + 8
16  libdispatch.dylib                   0x00007fff81554365 _dispatch_queue_drain + 1100
17  libdispatch.dylib                   0x00007fff81555ecc _dispatch_queue_invoke + 202
18  libdispatch.dylib                   0x00007fff815536b7 _dispatch_root_queue_drain + 463
19  libdispatch.dylib                   0x00007fff81561fe4 _dispatch_worker_thread3 + 91
20  libsystem_pthread.dylib             0x00007fff8506f6cb _pthread_wqthread + 729
21  libsystem_pthread.dylib             0x00007fff8506d4a1 start_wqthread + 13

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff82932132 __psynch_cvwait + 10
1   com.apple.Foundation            0x00007fff8b94e7ae -[__NSOperationInternal _waitUntilFinished:] + 131
2   com.apple.Foundation            0x00007fff8ba1ed14 -[NSOperationQueue waitUntilAllOperationsAreFinished] + 254
3   xcsbuildd                       0x000000010a4db3cb -[XCSIntegrationExecutor execute] + 686
4   xcsbuildd                       0x000000010a4f7ead -[XCSBuildWatcher executeIntegration:] + 232
5   libdispatch.dylib               0x00007fff81555323 _dispatch_call_block_and_release + 12
6   libdispatch.dylib               0x00007fff81550c13 _dispatch_client_callout + 8
7   libdispatch.dylib               0x00007fff8155ccbf _dispatch_main_queue_callback_4CF + 861
8   com.apple.CoreFoundation        0x00007fff8a10fc59 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
9   com.apple.CoreFoundation        0x00007fff8a0cc2ef __CFRunLoopRun + 2159
10  com.apple.CoreFoundation        0x00007fff8a0cb838 CFRunLoopRunSpecific + 296
11  com.apple.Foundation            0x00007fff8b94bab9 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278
12  xcsbuildd                       0x000000010a4d0867 main + 785
13  libdyld.dylib                   0x00007fff833855c9 start + 1

最佳答案

我遇到了同样的问题,最终发生的是后台进程导致机器内存不足。重新启动机器解决了问题。

关于ios - Xcode 持续集成没有按预期完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26885474/

相关文章:

ios - 在 iOS 上设置 <select> 的样式

ios - 使用 Swift 和 Firebase 聊天应用程序逻辑

iphone - 让视频在模拟器中播放

python - Conda glibc 依赖冲突

javascript - 在 react-native 中隐藏和显示带有动画的 createBottomTabNavigator 标签栏

ios - 如何在 Core Animation 中平滑地更新动画的 toValue/end 点?

ios - UILabel 颜色和字体大小从 XIB 更改

iOS 将图像添加到 TextField

java - 如何在不支持 "alien"嵌套元素的 ant 任务中使用宏

java - 使用gradle编译时如何在intellij中包含构建目录作为源目录