Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/103.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Xcode连续集成';我没有按预期完成_Ios_Xcode_Build_Continuous Integration_Bots - Fatal编程技术网

Ios Xcode连续集成';我没有按预期完成

Ios Xcode连续集成';我没有按预期完成,ios,xcode,build,continuous-integration,bots,Ios,Xcode,Build,Continuous Integration,Bots,我试图在项目中使用Xcode连续集成机器人,但我无法让它工作,也无法知道出了什么问题 这可能是Xcode 6.1的一个bug,遗憾的是,错误消息没有太大帮助: 以下是在客户端获得的完整错误描述: Bot Issue: error. Build Service Error. Issue: The integration didn't complete as expected.. Integration Number: 6. Integration URL: https://iMac-OS-X-S

我试图在项目中使用Xcode连续集成机器人,但我无法让它工作,也无法知道出了什么问题

这可能是Xcode 6.1的一个bug,遗憾的是,错误消息没有太大帮助:

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

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

我遇到了同样的问题,结果是一个后台进程导致机器内存不足。重新启动机器解决了这个问题。

好吧,昨天我花了很多时间试图在服务器上解决这个问题,我找到了一个解决办法

我第一次看到的是,它一直在工作。那么,为什么呢?例如,与第二个有什么区别?我从每个集成中打开了
sourceControl.log
文件(您可以在
/var/\u xcsbuildd/Library/Developer/XcodeServer/IntegrationAssets
中找到它)我注意到,在完成对存储库的签出后,有一点不同:第二次集成将把它的蓝图与第一次集成的缓存蓝图进行比较:

2015-08-27 12:58:12.552 XCSCheckoutIntegrationStep.m:429 [XCSCheckoutIntegrationStep saveCommitHistory]
[SourceControl] Comparing checked out code with previous blueprint: <XCSBotSCMBlueprint 0x7f8928c76fe0>
2015-08-27 12:58:12.552 XCSCheckoutIntegrationStep.m:429[XCSCheckoutIntegrationStep savecommissory]
[SourceControl]将签出的代码与以前的蓝图进行比较:
执行此操作后,它似乎会因堆栈跟踪而崩溃。 我真的不知道如何解决这个问题,但在服务器开始新的集成之前,我将从我的开发Xcode中删除所有集成

如果您不能做到这一点,您可以简单地删除我前面提到的路径中的所有文件夹(
/var/xcsbuildd/Library/Developer/XcodeServer/IntegrationAssets
),以便服务器认为下一个集成是第一个集成


我希望它能帮助您

我也有同样的问题,我解决了重启机器的问题。但是,在我集成一次之后(重新启动之后),错误仍然会在下次集成期间出现,因此我必须在集成之前重新启动机器。你知道怎么解决吗?@LucaD我还没弄明白怎么解决。真烦人。我每天一开始就重启机器。