App crashing on launch with instrumentation w/ calabash-ios

436 views Asked by At

UPDATE: This was fixed by resetting the phone's settings. General -> Reset -> "Reset all settings".

We are having on issue on iPhones 6 and 6+ when launching our IBM MobileFirst-based app.

When calabash instrumentation is linked and I manually launch the app, the splash screen will come up and the app will quit almost instantly.

Double tapping home shows me the app running in the background, but Xcode does not recognize it as a running process. After force-closing the app and re-launching, it will usually do the same thing, but sometimes it comes up.

I've noticed our automation is sometimes stuck in an infinite loop of launching and crashing. This only happens on the instrumented app.

The crash log throws EXC_BAD_ACCESS. I found a thread on the google group from a few years back that talks about linker flags, but I don't have any of the weaker flags mentioned there.

Steps to reproduce:

*App must be instrumented with the calabash automation framework (calabash-ios setup must have been executed in same directory as xcodeproj file.)

  1. Build application and deploy native iOS project to XCode via eclipse.
  2. Build the -cal target with the "Run" configuration.
  3. Kill the debugger/application.
  4. Manually launch the app on the device. The app will successfully launch maybe 15%-20% of the time, otherwise it will just quit.

Using calabash-cucumber version 0.14.3.

Linker flags: $(inherited) -force_load "$(SRCROOT)/calabash.framework/calabash" -lstdc++

It appears $(inherited) contains -ObjC for Debug.

Xcode installed at: /Applications/Xcode.app/Contents/Developer
Xcode version: 6.1.1
Xcode build: 6A2008a

2

There are 2 answers

0
Idan Adar On

The user is unresponsive, the fix was:

Actually I just found the fix to this. What I had to do is reset the phone's settings in Settings -> General -> Reset -> "Reset All Settings" (the first option). Have not seen the behavior since.

0
Rodi On

I had exact same problem, tried so many different ways and finally found how to fix it - I changed project directory, pulled from Git, then bundle install, pod install and build the app with calabash target as usual

Xcode 7.3.1, calabash-cucumber (0.19.1)