You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Joshua Moody
jmoody
I live under a castle in Germany, in a tent on a mountain watching my sheep, on a wooden raft on the Kennebec river, and at the Los Angeles Bicycle Kitchen.
Hot Topic: When targeting a Simulator, the app launches, then quits several times in rapid succession.
1. When targeting a Simulator, the app launches, then quits several times in rapid succession.
The problem is that the binary in incompatible with the simulator version.
For example, if you build an app iPhone 6 Simulator it will contain an x86_64 instruction slice. You can install this binary on an iPhone 4s simulator, but it will not launch because the iPhone 4s Simulator because that simulator requires an i386 instruction set. Simply put, you must build an app that is compatible for the simulator you are targeting.
Here are some steps you can take to solve this problem.
Make sure you have the latest version of calabash and the latest version of the framework. [1] If you are not using bundler already, now would be a good time to start. [2]
This is an active issue; no comprehensive solution exists yet.
You can see this error if:
The bundle identifier is incorrect.
The device is not enabled for UIAutomation. Starting in iOS 8, you must enable UIAutomation on the device using the switch in Settings.app > Developer > Enable UIAutomation.
If instruments fails to execute the script using the method below, the problem is on Apple's side of the fence and there is very little we can do besides file bug reports and keep trying to discover the magical ritual that makes it work.
If instruments can execute the script using the method below, then we need to dig deeper into this issue.
Reproduce
Install your app on the problem device; it can be any app that you have the bundle identifier for.
example of how to use bundler + github + local repos to work with the calabash-ios toolchain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters