ton-blockchain/wallet-desktop

Cannot build on MacOS (XCode)

gr8den opened this issue · 0 comments

I follow instructions
https://github.com/ton-blockchain/wallet-desktop/blob/master/docs/building-xcode.md

When I try build Wallet with XCode I receive following error:

Ld /Users/gr8/projects/telegram/ton/wallet/wallet-desktop/out/Debug/codegen_emoji normal x86_64 (in target 'codegen_emoji' from project 'codegen')
    cd /Users/gr8/projects/telegram/ton/wallet/wallet-desktop/Wallet/codegen
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target x86_64-apple-macos10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -L/Users/gr8/projects/telegram/ton/wallet/wallet-desktop/out/Debug -L/usr/local/desktop-app/Qt-5.12.5/lib -L/usr/local/desktop-app/Qt-5.12.5/plugins -L/usr/local/desktop-app/Qt-5.12.5/plugins/bearer -L/usr/local/desktop-app/Qt-5.12.5/plugins/platforms -L/usr/local/desktop-app/Qt-5.12.5/plugins/imageformats -F/Users/gr8/projects/telegram/ton/wallet/wallet-desktop/out/Debug -filelist /Users/gr8/projects/telegram/ton/wallet/wallet-desktop/out/codegen.build/Debug/codegen_emoji.build/Objects-normal/x86_64/codegen_emoji.LinkFileList -Xlinker -object_path_lto -Xlinker /Users/gr8/projects/telegram/ton/wallet/wallet-desktop/out/codegen.build/Debug/codegen_emoji.build/Objects-normal/x86_64/codegen_emoji_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -stdlib=libc++ -framework Cocoa -framework CoreFoundation -framework CoreServices -framework CoreText -framework CoreGraphics -framework CoreMedia -framework IOSurface -framework Metal -framework OpenGL -framework AudioUnit -framework ApplicationServices -framework Foundation -framework AGL -framework Security -framework SystemConfiguration -framework Carbon -framework AudioToolbox -framework VideoToolbox -framework VideoDecodeAcceleration -framework AVFoundation -framework CoreAudio -framework QuartzCore -framework AppKit -framework CoreWLAN -framework IOKit -lcups -lqwebp_debug -lqgif_debug -lqjpeg_debug -lQt5PrintSupport_debug -lQt5AccessibilitySupport_debug -lQt5FontDatabaseSupport_debug -lQt5EventDispatcherSupport_debug -lQt5ThemeSupport_debug -lQt5Network_debug -lQt5Widgets_debug -lQt5Gui_debug -lqtharfbuzz_debug -lqtlibpng_debug -lQt5Core_debug -lQt5GraphicsSupport_debug -lQt5ClipboardSupport_debug -lqgenericbearer_debug -lqtfreetype_debug -lqtpcre2_debug -lqcocoa_debug /usr/local/lib/libz.a -Xlinker -dependency_info -Xlinker /Users/gr8/projects/telegram/ton/wallet/wallet-desktop/out/codegen.build/Debug/codegen_emoji.build/Objects-normal/x86_64/codegen_emoji_dependency_info.dat -o /Users/gr8/projects/telegram/ton/wallet/wallet-desktop/out/Debug/codegen_emoji

clang: error: no such file or directory: '/usr/local/lib/libz.a'
Command Ld failed with a nonzero exit code

I try brew install zlib but this don't solve problem