Test code coverage generation on iOS 8.2 device?

I'm trying to grab and view code coverage with

  • Xcode 7 beta and iOS 9 SDK
  • iOS 8.2 device
  • Sceme set to gather coverage data for 'Test'
  • Set Yes to Generate Debug Symbols, Generate Test Coverage Files, and Use Optimization Profile in Build Settings for the Test Target of my sample app.


If I run Unit Tests, not UI Tests that supported only from iOS 9, and get the following error from Xcode console:


dyld: could not load inserted library '/private/var/mobile/Containers/Data/Application/7A78583D-E542-48B4-8DD6-F9A061FCE1E6/tmp/IDEBundleInjection.framework/IDEBundleInjection' because no suitable image found. Did find:

/private/var/mobile/Containers/Data/Application/7A78583D-E542-48B4-8DD6-F9A061FCE1E6/tmp/IDEBundleInjection.framework/IDEBundleInjection: mmap() error 1 at address=0x1000A8000, size=0x00008000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Data/Application/7A78583D-E542-48B4-8DD6-F9A061FCE1E6/tmp/IDEBundleInjection.framework/IDEBundleInjection

*** Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/folders/sx/nxj6t53x017ftxy07htxlrrr0000gn/T/com.apple.dt.XCTest-status/Session-2015-06-15_15:40:59-S0Wybp.log


Should I try an iOS 9 device?


Thanks,

Simon

What kind of device is it? There's a known problem with coverage for devices with 32-bit processors (rdar://problem/21166772). It will be fixed in the next beta release.

Thanks bwilson.

The device is iPhone 6+.

OK. This sounds like a different issue. Can you please file a bug report? If possible, please attach the log file mentioned in the error message.

I have met the same case, I solve the problem after I choose a correct Provisioning Profile and Code Signing, not recommended to choose Automic.

Test code coverage generation on iOS 8.2 device?
 
 
Q