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