Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHUnit tests do not execute automatically #201

Open
ohadschn opened this issue Oct 31, 2016 · 2 comments
Open

GHUnit tests do not execute automatically #201

ohadschn opened this issue Oct 31, 2016 · 2 comments

Comments

@ohadschn
Copy link

Hi,

We have a GHUnit unit test project we've been running with ios-sim 3.2.0 using the following command line:

ios-sim launch "$unitTestAppPath" --env "$unitTestPlistPath" --stdout "$testLogFilename" --stderr "$testLogFilename"

However, this command no longer works with XCode 8: Failed to find class DTiPhoneSimulatorSystemRoot at runtime.

As such, we tried updating our ios-sim version and modifying the command line accordingly:
ios-sim launch "$unitTestAppPath" --env "$unitTestPlistPath" --devicetypeid "iPhone-6, 10.0" > "$testLogFilename"

Unfortunately, any version higher than 3.2.0 we tried (4.1.0, 4.1.1., 5.0.10) has failed. The simulator launches and we see the test app open, but the tests don't run (as they do with 3.2.0). Moreover, if I click the "Run" button automatically the tests run, but the simulator doesn't close after that (which we need for our command-line build to continue). I've pasted the ios-sim output below.

  • [ x] 1. sw_vers -productVersion
    10.11.6
  • [ x] 3. xcodebuild -version
    Xcode 8.0
    Build version 8A218a
  • [x ] 4. xcode-select --print-path
    /Applications/Xcode.app/Contents/Developer
  • [x ] 5. gcc --version
    Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
    Apple LLVM version 8.0.0 (clang-800.0.38)
    Target: x86_64-apple-darwin15.6.0
    Thread model: posix
    InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Thanks,
Ohad

com.contoso.foo.bar.mobile.XGHUnit: 76760
Oct 31 18:56:36  SpringBoard[76680]: LICreateIconForImage passed NULL CGImageRef image
Oct 31 18:56:36  MobileCal[76759]: assertion failed: 15E65 13E230: libxpc.dylib + 57882 [66C28065-C9DB-3C8E-926F-5A40210A6D1B]: 0x7d
Oct 31 18:56:36  com.apple.CoreSimulator.SimDevice.6E6F2177-1EB8-4F4F-A7A3-0CEE8F20969C.launchd_sim[76664] (com.apple.dataaccess.dataaccessd): Service only ran for 5 seconds. Pushing respawn out by 5 seconds.
Oct 31 18:56:36  assertiond[76684]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Oct 31 18:56:36  XGHUnit[76760]: ADAL version 2.2.6
Oct 31 18:56:36  backboardd[76681]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Oct 31 18:56:36  backboardd[76681]: SecTaskCopyDebugDescription: XGHUnit[76760]
Oct 31 18:56:36  backboardd[76681]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Oct 31 18:56:36  backboardd[76681]: SecTaskCopyDebugDescription: XGHUnit[76760]
Oct 31 18:56:36  backboardd[76681]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Oct 31 18:56:36  backboardd[76681]: SecTaskCopyDebugDescription: XGHUnit[76760]
Oct 31 18:56:36  backboardd[76681]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Oct 31 18:56:36  backboardd[76681]: SecTaskCopyDebugDescription: XGHUnit[76760]
Oct 31 18:56:36  backboardd[76681]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Oct 31 18:56:36  backboardd[76681]: SecTaskCopyDebugDescription: XGHUnit[76760]
Oct 31 18:56:36  XGHUnit[76760]: assertion failed: 15E65 13E230: libxpc.dylib + 71506 [6F98A9DA-B46E-3A2B-88D4-92F1EC77477F]: 0x7d
Oct 31 18:56:36  assertiond[76684]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Oct 31 18:56:36 --- last message repeated 2 times ---
Oct 31 18:56:36  SpringBoard[76680]: [MPUSystemMediaControls] Updating supported commands for now playing application.
Oct 31 18:56:37  assertiond[76684]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Oct 31 18:56:37 --- last message repeated 9 times ---
Oct 31 18:56:37  backboardd[76681]: CoreAnimation: updates deferred for too long
Oct 31 18:56:41  dataaccessd[76761]: (Error) MC: MobileContainerManager gave us a path we weren't expecting; file a radar against them
	Expected: /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
	Actual: /Users/user/Library/Developer/CoreSimulator/Devices/6E6F2177-1EB8-4F4F-A7A3-0CEE8F20969C/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
	Overriding MCM with the one true path
Oct 31 18:56:41  dataaccessd[76761]: table drop: 101
Oct 31 18:56:41  dataaccessd[76761]: 0x7fae80c14300|DA|Error|spinnerIdentifiers to be implemented by subclass
Oct 31 18:56:44 --- last message repeated 5 times ---
Oct 31 18:56:44  dataaccessd[76761]: 0x7fae80c14300|DA|Error|Didn't find store with identifier Subscribed Calendars in cal db. Creating one
Oct 31 18:56:44  assertiond[76684]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Oct 31 18:56:44 --- last message repeated 2 times ---
Oct 31 18:56:44  dataaccessd[76761]: 0x7fae80c14300|DA|Error|spinnerIdentifiers to be implemented by subclass
Oct 31 18:56:44  dataaccessd[76761]: 0x7fae80c14300|DA|Error|
	
	Possible Failure: Cal db has retain count > 1, of 2
Oct 31 18:56:44  calaccessd[76736]: table drop: 101
Oct 31 18:56:44  assertiond[76684]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Oct 31 18:56:44 --- last message repeated 2 times ---
Oct 31 18:56:44  dataaccessd[76761]: 0x7fae80c14300|DA|Error|spinnerIdentifiers to be implemented by subclass
Oct 31 18:56:44  assertiond[76684]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Oct 31 18:56:45 --- last message repeated 1 time ---
Oct 31 18:56:45  SpringBoard[76680]: Weekly asset update check did fire (force=NO)
Oct 31 18:56:45  SpringBoard[76680]: Beginning check for asset updates (force: 0
Oct 31 18:56:45  SpringBoard[76680]: Did not complete check for asset updates (force: 0, isVoiceOverRunning: 0
Oct 31 18:56:45  assertiond[76684]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Oct 31 18:56:59  calaccessd[76736]: table drop: 101
Oct 31 18:56:59  assertiond[76684]: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Oct 31 18:57:05 --- last message repeated 5 times ---
Oct 31 18:57:05  searchd[76753]: tcp_connection_tls_session_error_callback_imp 5 __tcp_connection_tls_session_callback_write_block_invoke.434 error 22
Oct 31 18:57:06  searchd[76753]: tcp_connection_tls_session_error_callback_imp 7 __tcp_connection_tls_session_callback_write_block_invoke.434 error 22
Oct 31 18:57:11  mstreamd[76670]: (Note ) PS: Media stream daemon stopping.
Oct 31 18:57:11  mstreamd[76670]: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x7fce9860ce90>: Shared Streams daemon has shut down.
@shazron
Copy link

shazron commented Jan 25, 2017

See the README's usage section under "Unimplemented in this version:"

@shazron shazron added this to the 5.1.0 milestone Jan 25, 2017
@shazron
Copy link

shazron commented Jan 25, 2017

Related #160

@shazron shazron modified the milestones: 5.2.0, 5.3.0 Jun 10, 2017
@shazron shazron removed this from the 6.1.0 milestone Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants