Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pecker seems to be broken in Xcode 11.4 #49

Closed
backslash-f opened this issue Mar 24, 2020 · 18 comments
Closed

Pecker seems to be broken in Xcode 11.4 #49

backslash-f opened this issue Mar 24, 2020 · 18 comments

Comments

@backslash-f
Copy link

backslash-f commented Mar 24, 2020

I'm integrating Pecker via Run Script Phase.
It stopped working as soon as I upgraded Xcode to version 11.4.

Pecker version: 0.1.0

Error:
Command PhaseScriptExecution failed with a nonzero exit code

There isn't much info besides this:

bash PhaseScriptExecution Run\ Pecker /Users/fernando.fernandes/Library/Developer/Xcode/DerivedData/TEST-awvaoxeibgfjlqccvsjwuqsmgoij/Build/Intermediates.noindex/TEST.build/Debug-iphoneos/TEST.build/Script-0765326C23FF1DBB00BB6B45.sh (in target 'TEST' from project 'TEST') cd /Users/fernando.fernandes/Downloads/source/backslash-f/TEST/Xcode/TEST /bin/sh -c /Users/fernando.fernandes/Library/Developer/Xcode/DerivedData/TEST-awvaoxeibgfjlqccvsjwuqsmgoij/Build/Intermediates.noindex/TEST.build/Debug-iphoneos/TEST.build/Script-0765326C23FF1DBB00BB6B45.sh

Please advise, thanks.

@darecki
Copy link

darecki commented Mar 25, 2020

I have the same issue

@woshiccm
Copy link
Owner

My Xcode is still 11.3, thank you for your feedback, will try to solve it as soon as possible

@erenozkul
Copy link

erenozkul commented Mar 27, 2020

I had same issue. Then i did delete "Run Scripts Phase" from "Build Phases" and i did created new "Build Phase" . My project is successfully build now but not show the warnings of pecker.

I tried two script on the "Run Scripts"
1.
/usr/local/bin/pecker

if which pecker >/dev/null; then
pecker
else
echo "warning: Pecker not installed, download from https://github.com/woshiccm/Pecker"
fi

@manishSan
Copy link

We had the same issue with our setup.

@mthole
Copy link

mthole commented Apr 13, 2020

+1, but worth noting I was able to downgrade to Xcode 11.3.1 and have things work well. One gotcha I ran into: The 11.3.1 version of Xcode needed to live at /Application/Xcode.app (i.e. no version number in the name).

@manishSan
Copy link

This issue still persists with Xcode 11.4.1 (11E503a) update.

@woshiccm
Copy link
Owner

New version 0.2.0 support Swift 5.2 now

@woshiccm
Copy link
Owner

@backslash-f @manishSan @mthole @darecki @erenozkul

@backslash-f
Copy link
Author

@woshiccm With Pecker 0.2.0, the project now builds (no errors) -- but also it seems that no warnings are being generated.

(I'm on Xcode 11.4.1, not sure if that makes any difference.)

I created a simple project to test: Test.zip

(Look for the enum GenderType in ContentView.swift.)

@erenozkul
Copy link

Worked for me last release of Pecker on XCode 11.4.1.

@backslash-f can u try after recreate same build phase for Pecker?

@backslash-f
Copy link
Author

Worked for me last release of Pecker on XCode 11.4.1.

@backslash-f can u try after recreate same build phase for Pecker?

That's weird, I may be missing something then.
It's a fresh project and the build phase goes like:

Screenshot 2020-04-27 at 15 27 05

So yeah... ¯_(ツ)_/¯

@erenozkul
Copy link

That's weird, I may be missing something then.
It's a fresh project and the build phase goes like:

@backslash-f
Seems like no problem. Are you sure update the Pecker?
Sometimes homebrew getting error on update the package.
Like this:
Ekran Resmi 2020-04-27 17 11 12

First run this rm '/usr/local/bin/pecker'
and re install pecker with: brew install woshiccm/homebrew-tap/pecker

@backslash-f
Copy link
Author

That's weird, I may be missing something then.
It's a fresh project and the build phase goes like:

@backslash-f
Seems like no problem. Are you sure update the Pecker?
Sometimes homebrew getting error on update the package.
Like this:
Ekran Resmi 2020-04-27 17 11 12

First run this rm '/usr/local/bin/pecker'
and re install pecker with: brew install woshiccm/homebrew-tap/pecker

Yeah, I'm pretty sure it's on the latest version:

$ pecker --version
0.2.0

@oleghnidets
Copy link

Hi @backslash-f ,
Is the issue reproducible using CocoaPods?

@backslash-f
Copy link
Author

Hi @backslash-f ,

Is the issue reproducible using CocoaPods?

I couldn’t tell as I don’t use CocoaPods.

@backslash-f
Copy link
Author

@woshiccm Would there be any sort of verbose mode or a detailed log output somewhere so I could identify what's going on in my environment? Thanks.

@woshiccm
Copy link
Owner

@backslash-f I have tested and worked well, maybe you can try delete DerivedData and build again.

截屏2020-04-28 下午3 49 51

截屏2020-04-28 下午3 49 40

@backslash-f
Copy link
Author

@backslash-f I have tested and worked well, maybe you can try delete DerivedData and build again.

截屏2020-04-28 下午3 49 51 截屏2020-04-28 下午3 49 40

Will do, thanks.

I think you could close this issue, since the original problem seems to be fixed and now it's just my machine behaving...

👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants