calabash/calabash-ios

Uncaught exception 'Error codesigning...' in iOS 12

sankalpanand opened this issue · 1 comments

This is my first attempt at testing iOS 12. I'm running into problems with installing the device agent.
iOS - 12.1
Xcode - 10.1
MacOS - Mojave
calabash-cucumber- 0.21.5

I've seen some other codesigning errors related to provisioning profile before and was able to fix them but I can't make any left or right of this exception. Please take a look.

102214361:tptest testmaskin$ /Users/testmaskin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.7.1/lib/run_loop/device_agent/bin/iOSDeviceManager install /Users/testmaskin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.7.1/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app --device-id 0eea5de0ed4b62314aae7561a00710c419f55a3b
Application com.apple.test.DeviceAgent-Runner is not installed on 0eea5de0ed4b62314aae7561a00710c419f55a3b
2018-11-20 19:40:16.096 iOSDeviceManager[25617:99724] *** Terminating app due to uncaught exception 'CBXException', reason: 'Error codesigning /Users/testmaskin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.7.1/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app/Frameworks/XCTAutomationSupport.framework: /Users/testmaskin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.7.1/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app/Frameworks/XCTAutomationSupport.framework: replacing existing signature
'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff46c6ee65 __exceptionPreprocess + 256
	1   libobjc.A.dylib                     0x00007fff72cca720 objc_exception_throw + 48
	2   iOSDeviceManager                    0x000000010955c5eb +[Command resourcesFromArgs:] + 0
	3   iOSDeviceManager                    0x00000001095563dd +[Codesigner resignObject:codesignIdentity:] + 421
	4   iOSDeviceManager                    0x0000000109557bff +[Codesigner resignAppDir:baseDir:provisioningProfile:codesignIdentity:resourcesToInject:] + 2938
	5   iOSDeviceManager                    0x0000000109555b47 +[Codesigner resignApplication:withProvisioningProfile:withCodesignIdentity:resourcesToInject:] + 283
	6   iOSDeviceManager                    0x00000001095511de -[PhysicalDevice installApp:mobileProfile:codesignIdentity:resourcesToInject:forceReinstall:] + 463
	7   iOSDeviceManager                    0x000000010955164e -[PhysicalDevice installApp:resourcesToInject:forceReinstall:] + 67
	8   iOSDeviceManager                    0x0000000109553faa +[InstallAppCommand execute:] + 876
	9   iOSDeviceManager                    0x000000010955f2e1 +[CLI process:] + 1111
	10  iOSDeviceManager                    0x000000010954b029 main + 121
	11  libdyld.dylib                       0x00007fff73d9908d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

I think you need to update your run-loop version. The current version is 4.x.