Pecker
Pecker copied to clipboard
Could not see any warning in Xcode 11.3
I can't see any warning what https://github.com/woshiccm/Pecker#pecker is showing. I did as below: https://github.com/woshiccm/Pecker#pecker
How do you install pecker? CocoPods?
I have the same issue. I used brew
.
I will improve log, maybe find index failed
@hodovani can you open the follow path? ~/Library/Developer/Xcode/DerivedData/{your project}/Index/DataStore
Have you ever execute defaults write com.apple.dt.Xcode IDEIndexDisable 1
?
@junaid4058 @hodovani Add make sure you are using the right method If you Install through CocoaPods, add the following script
${PODS_ROOT}/Pecker/bin/pecker
Other way install, add the following script
if which pecker >/dev/null; then
pecker
else
echo "warning: Pecker not installed, download from https://github.com/woshiccm/Pecker"
fi
@hodovani can you open the follow path? ~/Library/Developer/Xcode/DerivedData/{your project}/Index/DataStore
Yes, I can.
I added your script to my main target as you described in Readme
I tried to run it terminal in project folder, but it didn't give me any warn.
If you want run in terminal, pls do as follow
pecker json
and set output_file
in pecker.result.json
, it's complex.
Suggest integrate Pecker into an Xcode, because this way will automatically found your project index path
@hodovani Could you show me a screenshot of the script you added to your project?
You can also connect me on Twitter, Twitter is more convenient for communication
I had the same issue and think this PR should fix it: https://github.com/woshiccm/Pecker/pull/38
@rastersize Good job
@hodovani I had added Terminal usage to README, and I test successed, you can try again, the version is 0.0.12
@woshiccm I am just curious, cannot Xcode detect unused code? Why we need Pecker? In Android Studio, IntelliJ IDEA they detect unused code.
@kaushalyap Xcode did, but only same case, such as variables defined in the function body, more often it is difficult to judge, so pecker have so many configurations to prevent judgment false.
@kaushalyap Xcode did, but only same case, such as variables defined in the function body, more often it is difficult to judge, so pecker have so many configurations to prevent judgment false.
It seems to me that XCode is not doing a good job like Android Studio, IntelliJ IDEA.
I'm on macOS 10.15.3, Xcode 11.4 Beta 3 and I don't see anything output on neither Xcode nor Terminal but that seems to be because of the SwiftSyntax error mentioned right at the beginning of the README file. Unfortunately pecker doesn't output any errors (per #19) so one thing I can suggest here to folks having no results is to prefix the pecker command with DYLD_PRINT_RPATHS=1
, it made clear to me what's going on:
RPATH failed expanding @rpath/lib_InternalSwiftSyntaxParser.dylib to: /usr/lib/swift/lib_InternalSwiftSyntaxParser.dylib
RPATH failed expanding @rpath/lib_InternalSwiftSyntaxParser.dylib to: /usr/local/Cellar/pecker/0.1.0/bin/lib_InternalSwiftSyntaxParser.dylib
Before doing that, I've also tried to run the Pecker project straight from Xcode, which printed the lib_InternalSwiftSyntaxParser.dylib error to the console, but I don't know which build flags SPM uses when running from Xcode, the Makefile ones are explicit so I could try a couple different things there iterating on make install
s and running with DYLD_PRINT_RPATHS=1
. No solution yet, unfortunately.
By the way, SwiftLint is trying to solve the same issue on their repo, I'd suggest to follow their PR as they may find a solution any time soon: https://github.com/realm/SwiftLint/pull/3108
Any news?
macOS 10.15.4 Xcode 11.4 method: brew
Stops right after run, with no output
Edit: was fine 1 month ago, on 10.14.3, xcode 11.3
Hello,
For me Pecker is failing with a Command PhaseScriptExecution failed with a nonzero exit code
/ dyld: Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib
error.
I'm on Xcode 12 (12A7209) and Swift 5.3. Pecker version is 0.4.0 (installed via brew
).
I'm also on BigSur 11.0 Beta (20A5374g) (but I'm not sure if that plays a role tho).
👋🏻
anyone could fix this?
Any news?
I am using CocoaPods and added a build script
${PODS_ROOT}/Pecker/bin/pecker
but I got no warning.
I'm having the same issue.
- Installed using CocoaPods
- Using build script
"${PODS_ROOT}/Pecker/bin/pecker"
Xcode 12.4 (12D4e)
.pecker.yml
configuration file includes reporter: "xcode"
No warning shown
Any updates on this ?