问题
I am trying to integrate BullsEye 8.14.0 with Xcode 10.12. Following are the steps that I followed:
- mkdir -p $HOME/Library/LaunchAgents
2.Create the file $HOME/Library/LaunchAgents/BullseyeCoverage.plist with contents like below.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>BullseyeCoverage</string>
<key>ProgramArguments</key>
<array>
<string>/bin/launchctl</string>
<string>setenv</string>
<string>COVFILE</string>
<string>path</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Path I have given as $HOME/Desktop/BEC/test123.cov and also tried with Users/myUserName/Desktop/BEC/test123.cov
Add an export command like shown below to the file $HOME/.bash_profile. export COVFILE=path
Added export PATH=$PATH:/Applications/BullseyeCoverage/bin, in .bash_profile as the first entry.
Then built the xcode project as usual.
Followed the document https://www.bullseye.com/help/tool-xcode.html, in short.
But after doing all this, I should be seeing a test123.cov file generated after the successful build with all the APIs listed, which I couldn"t see. Am I missing anything?
来源:https://stackoverflow.com/questions/62401937/coverage-file-is-not-getting-generated-using-bullseye-with-xcode