Windscribe / Desktop-App

Windscribe 2.0 desktop client for Windows, Mac and Linux
https://windscribe.com
GNU General Public License v2.0
624 stars 87 forks source link

Linker Error CLI [MacOS] #41

Closed NoahCardoza closed 2 years ago

NoahCardoza commented 2 years ago
dyld_info -dependents ./windscribe-cli
./windscribe-cli [x86_64]:
    -dependents:
        attributes     load path
                       /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
                       /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
                       /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
                       /System/Library/Frameworks/Security.framework/Versions/A/Security
                       /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
                       /Users/aaa/Documents/client-desktop/build-libs/protobuf/lib/libprotobuf.28.dylib
                       @rpath/QtGui.framework/Versions/5/QtGui
                       @rpath/QtNetwork.framework/Versions/5/QtNetwork
                       @rpath/QtCore.framework/Versions/5/QtCore
                       /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
                       /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
                       /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
                       /System/Library/Frameworks/AGL.framework/Versions/A/AGL
                       /usr/lib/libc++.1.dylib
                       /usr/lib/libSystem.B.dylib
                       /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
                       /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
                       /usr/lib/libobjc.A.dylib

Notice a couple lines in: /Users/aaa/Documents/client-desktop/build-libs/protobuf/lib/libprotobuf.28.dylib.

I was able to fix it but I had to remove the code signature.

If anyone else is running into this problem you can jerry-rig it to work with:

install_name_tool -change "/Users/aaa/Documents/client-desktop/build-libs/protobuf/lib/libprotobuf.28.dylib" "/Applications/Windscribe.app/Contents/Frameworks/libprotobuf.28.dylib" ./windscribe-cli
codesign --remove-signature ./windscribe-cli
bernerdad commented 2 years ago

Thanks for the report, and the workaround. This has been fixed in the new release, which will be dropping here soon. You can obtain the new release now by setting the app's update channel to guinea pig.

NoahCardoza commented 2 years ago

Thanks for the quick response! Happy to help. I'll give the guinea pig channel a try!