Code Coverage on Xcode 4.4.1

后端 未结 3 1567
北荒
北荒 2021-01-14 11:12

I\'ve been trying code coverage testing for Mac application on Xcode4.4.1, and the app is an 10.8 app so the app builds and runs only via Xcode4.4.1. But the /Developer/usr/

3条回答
  •  太阳男子
    2021-01-14 11:54

    You just need to set the following in Build Settings:
    Generate Test Coverage Files: YES
    Instrument Program Flow: YES

    The .gcda files will only be output when the app exits so, for iOS builds, you should set 'UIApplicationExitsOnSuspend' to YES in the Info.plist.

    Code coverage files will be output to /Build/Intermediates/.build//.build/Objects-normal/i386

提交回复
热议问题