Hello everyone,

We use Jenkins to do automation tests for an iOS Application. This iOS 
Application contains an App Extension. We install xctool to do the 
automation tests.

But the simulator crashed before any test can start. The crash report shows 
that the init function of the App Extension causes the crash. Note that we 
didn't call anything of the App Extension, and we did not test the App 
Extension yet in our automation tests. The automation tests run 
successfully inside xCode. But it has trouble to run from Jenkins using 
xctool.

It is a DocumentProvider application extension. The crash is inside the 
documentStorageURL 
system call as shown in the crash log below.

Now my questions:
1) When we do automation tests from Jenkins, shall the App Extension be 
involved? It seems to me that the init function of the App Extension shall 
not be called at all. Who is calling this function?
2) Did anyone try to do automation test from Jenkins for an Application 
with App Extension? Does this even work?

Thanks in advance.

=========== Crash report from xctool in Jenkins Console Output ====

Test did not run: the test bundle stopped running or crashed before the test 
suite started.

CRASH REPORT: 
DocumentProviderFileProvider_2015-05-05-131153_mobile-build-machine.crash

Process:               DocumentProviderFileProvider [60158]
Path:                  ........... (removed)
Identifier:            DocumentProviderFileProvider
Version:               0
Code Type:             X86 (Native)
Parent Process:        launchd_sim [59866]
Responsible:           launchd_sim [59866]
User ID:               501

Date/Time:             2015-05-05 13:11:20.422 -0700
OS Version:            Mac OS X 10.10.2 (14C109)
Report Version:        11
Anonymous UUID:        FC4346E1-3FDE-69F9-791D-694DCD170BF7


Time Awake Since Boot: 1800000 seconds

Crashed Thread:        0  Dispatch queue: NSFileProviderExtension member sync 
queue

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

Application Specific Information:
abort() called
CoreSimulator 117.5.4 - Device: iPad 2 - Runtime: iOS 8.1 (12B411) - 
DeviceType: iPad 2

Thread 0 Crashed:: Dispatch queue: NSFileProviderExtension member sync queue
0   libsystem_kernel.dylib              0x03bb669a __pthread_kill + 10
1   libsystem_pthread.dylib             0x03be4f19 pthread_kill + 101
2   libsystem_sim_c.dylib               0x0396ea5a abort + 156
3   DocumentProviderFileProvider        0x00266a1f uncaught_exception_handler + 
38
4   com.apple.CoreFoundation            0x02fced80 __handleUncaughtException + 
832
5   libobjc.A.dylib                     0x021fbd3d _objc_terminate() + 100
6   libc++abi.dylib                     0x03792cf0 std::__terminate(void (*)()) 
+ 14
7   libc++abi.dylib                     0x03792d72 std::terminate() + 66
8   libobjc.A.dylib                     0x021fbcaf objc_terminate + 11
9   libdispatch.dylib                   0x038a5052 _dispatch_client_callout + 33
10  libdispatch.dylib                   0x0388cdb8 
_dispatch_barrier_sync_f_invoke + 79
11  libdispatch.dylib                   0x0388c8ea dispatch_barrier_sync_f + 105
12  libdispatch.dylib                   0x0388ce40 dispatch_barrier_sync + 54
13  com.apple.UIKit                     0x00f1163d -[NSFileProviderExtension 
documentStorageURL] + 167
14  DocumentProviderFileProvider        0x00130c25 -[FileProvider init] + 293 
(FileProvider.m:48)
15  libextension.dylib                  0x04f9574f 
__105-[_NSExtensionContextVendor 
_beginRequestWithExtensionItems:listenerEndpoint:withContextUUID:completion:]_block_invoke
 + 875
16  libdispatch.dylib                   0x03888a2a 
_dispatch_call_block_and_release + 15
17  libdispatch.dylib                   0x038a503f _dispatch_client_callout + 14
18  libdispatch.dylib                   0x0388e764 
_dispatch_main_queue_callback_4CF + 470
19  com.apple.CoreFoundation            0x02f2895e 
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 14
20  com.apple.CoreFoundation            0x02ee7760 __CFRunLoopRun + 2256
21  com.apple.CoreFoundation            0x02ee6bcb CFRunLoopRunSpecific + 443
22  com.apple.CoreFoundation            0x02ee69fb CFRunLoopRunInMode + 123
23  com.apple.Foundation                0x01e03d98 -[NSRunLoop(NSRunLoop) 
runMode:beforeDate:] + 309
24  com.apple.Foundation                0x01ea367b -[NSRunLoop(NSRunLoop) run] 
+ 82
25  libxpc.dylib                        0x03b6490d _xpc_objc_main + 423
26  libxpc.dylib                        0x03b6755a xpc_main + 199
27  com.apple.Foundation                0x01facd16 -[NSXPCListener resume] + 186
28  com.apple.pluginkit.framework       0x01d4fa62 -[PKService run] + 552
29  com.apple.pluginkit.framework       0x01d4f6d2 +[PKService main] + 66
30  com.apple.pluginkit.framework       0x01d4fab7 +[PKService 
_defaultRun:arguments:] + 33
31  libextension.dylib                  0x04fa6b6a NSExtensionMain + 60
32  libdyld.dylib                       0x038caac9 start + 1



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/118e019a-e7a9-471b-9712-0f7a05c842b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to