-
Notifications
You must be signed in to change notification settings - Fork 87
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
lib_InternalSwiftSyntaxParser.dylib linking issue with Homebrew #108
Comments
Is the dylib in the same dir as the mockolo executable? If it's in a different location, it will throw the above error. Also, can you check what xcode versions are installed in the laptops that work and don't work? It shouldn't matter as the dylib is a compile time dependency, but would be good to narrow down what the differences are. |
My laptop is currently running XCode 11.4, so this is surprising to see
…On Wed, Apr 22, 2020 at 2:30 PM ellie ***@***.***> wrote:
That means the dylib is missing; it requires Xcode 11.0+. Can you check if
the laptops have the correct xcode version installed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#108 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANQS7NUWJSJ66QXOA57MOQ3RN5OXBANCNFSM4MNWJXCA>
.
|
I've attached two binaries to the release, mockolo.tar.gz built with swift 5.2 (xcode 11.4+), and mockolo-swift5.1.tar.gz built with swift 5.1 (< xcode 11.3). Can you try both and see if either one fails? thanks. |
The thing is that in Homebrew we just compile without linking to a dylib
|
Looks like there's a compatibility issue between Xcode 11.4+ and 11.3- similar to realm/SwiftLint#3105. What happens if you set the depends_on :xcode version to 11.4? If that doesn't work, we might have to dynamically load it, like https://github.com/jpsim/SourceKitten/blob/master/Source/SourceKittenFramework/library_wrapper.swift. |
We can have the brew formula rely on sourcekitten from brew itself, does this solve our issue? |
Do you mean swiftsyntax? If that works that would probably be the best.
…On Fri, Apr 24, 2020 at 11:01 AM Maxwell Elliott ***@***.***> wrote:
We can have the brew formula rely on sourcekitten from brew itself, does
this solve our issue?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_uber_mockolo_issues_108-23issuecomment-2D619163798&d=DwMCaQ&c=r2dcLCtU9q6n0vrtnDw9vg&r=sTqCC7cTwGN2QCw_Vq6sKQ&m=_FoHNwFt6QNYnzM48qbdT5h2N2b53hIyMgQKI23ZfP4&s=No894LjPvuHw_NpwQ842kfHeS0TcfmIJQ0j6MeTuPxQ&e=>,
or unsubscribe
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAUG5PEB2FVWPTDOVT43S53ROHHXXANCNFSM4MNWJXCA&d=DwMCaQ&c=r2dcLCtU9q6n0vrtnDw9vg&r=sTqCC7cTwGN2QCw_Vq6sKQ&m=_FoHNwFt6QNYnzM48qbdT5h2N2b53hIyMgQKI23ZfP4&s=E-dDfWiMZ-aJLgg1Tk4ZOn6R3mVL71iQVkiSK4MY2rg&e=>
.
|
Sourcekitten can be installed via Brew
Can we somehow consume that binary? |
The error is not related to sourcekitten. It's due to swiftsyntax between the xcode versions. If we set the 'depends_on xcode' version to 11.4, this error might be resolved. |
Could this approach work?
|
I don't think it resolves it, as |
Can we make another shell script that homebrew can run to do these 2 commands?
|
It will require tarballing both the mockolo executable and the dylib to run the executable. Does homebrew allow that? Also, did you happen to see if requiring Xcode 11.4 fixes the error? |
Revisiting this; @tinder-maxwellelliott if you set the xcode version to 11.4 (now that mockolo requires 11.4+), does this error still repro? |
This has gone away! Thanks! |
For people still guided here by the Google Search Gods this is the solution:
|
@elsh Is there no possible way to avoid a Dylib here at all? Can we make a static framework and avoid this all together? |
Static? no it required building too many pieces in swift repo the last time
tried. We can try dlopen. What's the main issue anyway?
…On Mon, Jul 20, 2020 at 2:45 PM Maxwell Elliott ***@***.***> wrote:
@elsh <https://github.com/elsh> Is there no possible way to avoid a Dylib
here at all? Can we make a static framework and avoid this all together?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#108 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUG5PF3CJDMGQ3P6QYGH5DR4S3GBANCNFSM4MNWJXCA>
.
|
People keep getting into issues where Xcode is not where Mockolo expects it to be |
Is it when Xcode12 is used?
On Tue, Sep 1, 2020 at 12:45 PM Maxwell Elliott <notifications@github.com>
wrote:
… Static? no it required building too many pieces in swift repo the last
time tried. We can try dlopen. What's the main issue anyway?
… <#m_-3218779310674178632_>
On Mon, Jul 20, 2020 at 2:45 PM Maxwell Elliott *@*.***> wrote: @elsh
<https://github.com/elsh> https://github.com/elsh Is there no possible
way to avoid a Dylib here at all? Can we make a static framework and avoid
this all together? — You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#108 (comment)
<#108 (comment)>>, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAUG5PF3CJDMGQ3P6QYGH5DR4S3GBANCNFSM4MNWJXCA
.
People keep getting into issues where Xcode is not where Mockolo expects
it to be
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#108 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUG5PELI7UIG2RLF5YRRILSDVFL5ANCNFSM4MNWJXCA>
.
|
Closing. Feel free to reopen if this issue arises agin. |
The issues is back, this time on Homebrew itself - it blocks the release of Mockolo 1.8.0. I've also opened a new issue for this, since I feel like this can be fixed on the build configuration level: #206 |
I am having this issue with some laptops using Mockolo when running the homebrew version:
Strangely enough some laptops run this command totally fine, other break
The text was updated successfully, but these errors were encountered: