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

Not working on Mac #3505

Open
2 tasks done
ber4444 opened this issue Sep 19, 2022 · 22 comments
Open
2 tasks done

Not working on Mac #3505

ber4444 opened this issue Sep 19, 2022 · 22 comments

Comments

@ber4444
Copy link

ber4444 commented Sep 19, 2022

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Mac 12.5.1
  • scrcpy version: latest
  • installation method: brew install
  • device model: Samsung
  • Android version: 12

Describe the bug
Won't launch

On errors, please provide the output of the console (and adb logcat if relevant).

% /usr/local/Cellar/scrcpy/1.24/bin/scrcpy ; exit;
dyld[90421]: Library not loaded: '/usr/local/opt/mbedtls/lib/libmbedcrypto.12.dylib'
  Referenced from: '/usr/local/Cellar/librist/0.2.7_1/lib/librist.4.dylib'
  Reason: tried: '/usr/local/opt/mbedtls/lib/libmbedcrypto.12.dylib' (no such file), '/usr/local/lib/libmbedcrypto.12.dylib' (no such file), '/usr/lib/libmbedcrypto.12.dylib' (no such file)
zsh: abort      /usr/local/Cellar/scrcpy/1.24/bin/scrcpy

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
@rom1v
Copy link
Collaborator

rom1v commented Sep 19, 2022

How did you install it?

@Coool
Copy link

Coool commented Sep 20, 2022

@ber4444, try scrcpy for macOS. Does it work on macOS 12.5.1?

@MrGreensWorkshop
Copy link

MrGreensWorkshop commented Oct 9, 2022

I just installed on macOS 12.6 ( intel ) and it is working. Thanks for this tool!

installation

brew install scrcpy
brew install android-platform-tools

version

$ scrcpy --version
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>

Dependencies (compiled / linked):
 - SDL: 2.24.0 / 2.24.1
 - libavcodec: 59.37.100 / 59.37.100
 - libavformat: 59.27.100 / 59.27.100
 - libavutil: 57.28.100 / 57.28.100
 - libusb: - / 1.0.26

run

$ scrcpy
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
/usr/local/Cellar/scrcpy/1.24/share/scrcpy/scrcp...d, 0 skipped. 133.5 MB/s (41159 bytes in 0.000s
[server] INFO: Device: somedevice (Android x.x)
2022-10-10 08:51:24.907 scrcpy[20999:61055] INFO: Renderer: metal
2022-10-10 08:51:24.919 scrcpy[20999:61055] INFO: Initial texture: 1080x1920

@Coool
Copy link

Coool commented Oct 13, 2022

@MrGreensWorkshop, you're talking about brew version or my compiled?

@MrGreensWorkshop
Copy link

Installation
brew install scrcpy
brew install android-platform-tools

I installed using brew and I had no problem.

@ber4444
Copy link
Author

ber4444 commented Oct 20, 2022

I installed via brew. The error happens with the latest Mac OS. It now says:

% scrcpy               
dyld[78075]: Library not loaded: '/usr/local/opt/mbedtls/lib/libmbedcrypto.12.dylib'
  Referenced from: '/usr/local/Cellar/librist/0.2.7_1/lib/librist.4.dylib'
  Reason: tried: '/usr/local/opt/mbedtls/lib/libmbedcrypto.12.dylib' (no such file), '/usr/local/lib/libmbedcrypto.12.dylib' (no such file), '/usr/lib/libmbedcrypto.12.dylib' (no such file)
zsh: abort      scrcpy

@ber4444
Copy link
Author

ber4444 commented Oct 20, 2022

Screen Shot 2022-10-20 at 10 27 50 AM

this is when I use the zipped binary instead

@RoqueRueda
Copy link

Hey guys, first of all there is another issue: #2128
To fix this issue I have to:
1 remove brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" // remove

2 install brew again
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" // install

3 install scrpy using brew
brew install scrcpy

4 install android-platform-tools
brew install --cask android-platform-tools
(I got errors like Error: It seems there is already a Binary at and I need to remove the folder with rm /opt/homebrew/bin/xxx)

After that I was able to work with scrcpy

@Coool
Copy link

Coool commented Dec 12, 2022

Screen Shot 2022-10-20 at 10 27 50 AM this is when I use the zipped binary instead

remove file scrcpy quarantine attribute
xattr -d com.apple.quarantine /Applications/Android/scrcpy/scrcpy
or remove all files quarantine attribute under directory /Applications/Android/scrcpy
xattr -r -d com.apple.quarantine /Applications/Android/scrcpy

@ber4444
Copy link
Author

ber4444 commented Dec 15, 2022

I just tried again and got a very similar error

Downloads/scrcpy/scrcpy ; exit;
dyld[2116]: Library not loaded: /usr/local/opt/mbedtls/lib/libmbedcrypto.12.dylib
  Referenced from: <0B37C916-24CF-33B7-9B32-7EAA711375FF> /usr/local/Cellar/librist/0.2.7_1/lib/librist.4.dylib
  Reason: tried: '/usr/local/opt/mbedtls/lib/libmbedcrypto.12.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/mbedtls/lib/libmbedcrypto.12.dylib' (no such file), '/usr/local/opt/mbedtls/lib/libmbedcrypto.12.dylib' (no such file), '/usr/local/lib/libmbedcrypto.12.dylib' (no such file), '/usr/lib/libmbedcrypto.12.dylib' (no such file, not in dyld cache)

Sadly, I needed to switch to Vysor.

@aspsptyd
Copy link

Same problem

@rom1v
Copy link
Collaborator

rom1v commented Mar 14, 2023

Screen Shot 2022-10-20 at 10 27 50 AM

this is when I use the zipped binary instead

Which zipped binary for macOS?

@mmk909
Copy link

mmk909 commented Sep 12, 2023

I tried below:

brew uninstall librist --ignore-dependencies
brew uninstall mbedtls --ignore-dependencies
brew reinstall scrcpy

then it works

@SmailHammour
Copy link

I tried below:

brew uninstall librist --ignore-dependencies
brew uninstall mbedtls --ignore-dependencies
brew reinstall scrcpy

then it works

Thanks man! That worked!

@Burzmalli70
Copy link

I tried below:

brew uninstall librist --ignore-dependencies
brew uninstall mbedtls --ignore-dependencies
brew reinstall scrcpy

then it works

Ran into this same problem and this fixed it for me. Thanks!

@ianliu0
Copy link

ianliu0 commented Oct 15, 2023

I tried below:

brew uninstall librist --ignore-dependencies
brew uninstall mbedtls --ignore-dependencies
brew reinstall scrcpy

then it works

It worked! Saved my day

@tronghuy5555
Copy link

I tried below:

brew uninstall librist --ignore-dependencies
brew uninstall mbedtls --ignore-dependencies
brew reinstall scrcpy

then it works

Thanks bro, It worked

@tientruongvan1995
Copy link

I tried below:

brew uninstall librist --ignore-dependencies
brew uninstall mbedtls --ignore-dependencies
brew reinstall scrcpy

then it works

It worked! thanks bro

@aslavchev-android
Copy link

I tried below:

brew uninstall librist --ignore-dependencies
brew uninstall mbedtls --ignore-dependencies
brew reinstall scrcpy

then it works

It worked!
Thank you very much!

@DiepEsc
Copy link

DiepEsc commented Nov 2, 2023

brew uninstall librist --ignore-dependencies
brew uninstall mbedtls --ignore-dependencies
brew reinstall scrcpy

It works for me.
Thank you mmk909.

@quadroscesar
Copy link

I tried below:

brew uninstall librist --ignore-dependencies
brew uninstall mbedtls --ignore-dependencies
brew reinstall scrcpy

then it works

Very thanks!!!

@4gus71n
Copy link

4gus71n commented Nov 8, 2023

I tried below:

brew uninstall librist --ignore-dependencies
brew uninstall mbedtls --ignore-dependencies
brew reinstall scrcpy

then it works

total legend! thanks!

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