Xcode5 Code Coverage (from cmd-line for CI builds)

后端 未结 6 1611
广开言路
广开言路 2020-12-14 03:48

How can I generate code coverage with Xcode 5 and iOS7?

Prior to upgrading I was getting code coverage just fine. Now I can\'t see any *.gcda files being produced.

6条回答
  •  孤街浪徒
    2020-12-14 04:28

    (This is not the answer, but a work-around . . .I'm still very much interested in a better solution)

    Use iOS 6.1 Simulator

    If you're targeting iOS 6.1 or earlier as a deployment target, you can use the 6.1 simulator.

    • Install the iOS6.1 Simulator via preferences/downloads
    • Use the following cmd-line:

      xcodebuild -workspace ${module.name}.xcworkspace test -scheme ${module.name} -destination OS=6.1,name=iPad -configuration Debug

提交回复
热议问题