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

Request: Cocoapods Support #22

Closed
noahsark769 opened this issue Dec 13, 2019 · 9 comments
Closed

Request: Cocoapods Support #22

noahsark769 opened this issue Dec 13, 2019 · 9 comments

Comments

@noahsark769
Copy link
Contributor

We currently install Swiftlint with Cocoapods, so it would be really nice to have Pecker support for Cocoapods as well. Currently the install process requires manually cloning the project, so it won't get installed automatically when new developers clone our repo. Another option could be to integrate the project as a Swift package - that technically might work now? I'm not sure how to integrate a Swift package for development and not build it into the app, though

@woshiccm
Copy link
Owner

Will support as soon as possible

@woshiccm
Copy link
Owner

Done, now you can install it by Cocoapods

@GesanTung
Copy link

Done, now you can install it by Cocoapods
你们编译可以吗
dyld: Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib

@woshiccm
Copy link
Owner

My own test was successful

@woshiccm
Copy link
Owner

@GesanTung Can you provide more details?Do you use version 0.0.11?

@woshiccm
Copy link
Owner

@GesanTung What's Swift version? Lower than 5.0?

@GesanTung
Copy link

@GesanTung Can you provide more details?Do you use version 0.0.11?

Pecker pod version 0.0.11,Swift 5.0

image

@woshiccm
Copy link
Owner

@GesanTung Thanks, I am working on this issue. It is a bug of SwiftSyntax, if you want to try it now, you can try the manual way temporarily.

@woshiccm
Copy link
Owner

@GesanTung
https://forums.swift.org/t/swiftsyntax-with-swift-5-1/29051/13

"I think this is a bug (?) in Xcode where it's not putting one of the toolchain's library directories in the binary's rpath correctly. I don't know if there's a better way to workaround it, but I just end up putting a symlink to lib_InternalSwiftSyntaxParser.dylib in the same directory as the executable so it'll find it, and that sticks around unless I clean the build product directory."

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/lib_InternalSwiftSyntaxParser.dylib.

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

3 participants