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

[Bug] Record Screen Issue #37

Open
im-AMS opened this issue Aug 27, 2021 · 30 comments
Open

[Bug] Record Screen Issue #37

im-AMS opened this issue Aug 27, 2021 · 30 comments
Labels
bug Something isn't working help wanted Extra attention is needed upstream

Comments

@im-AMS
Copy link

im-AMS commented Aug 27, 2021

I have enabled Screen recording permission, despite which it prompts me again and does not work.

I am on M1 Air BS 11.5.1

@JSaterdalen
Copy link

Same issue. Also on an M1 chip.

@sleepyfurious
Copy link

sleepyfurious commented Oct 4, 2021

I also have the same issue, but the app works without this problem when I build the project (1.6.0, same version number as the problematic one) from src with Xcode on my own. Note that I will need to remove the original .app from /Application first (or any other version on your machine), or the macOS' privacy database might confuse it with our own build as they both share the same app bundle id. 

While my working version is the Apple Silicon binary, my Rosetta binary has this problem too. The released binary is a universal binary. I am new to these, so I can't figure out more now. I hope this at least helps.

P.S. This command helps me reset the privacy database: tccutil reset All com.acheronfail.pixel-picker. I'm not sure why I use this command. It seems to help me where Apple's GUI doesn't.

@acheronfail
Copy link
Owner

The privacy thing is annoying, I usually just remove it from the System Preferences section, and then manually add the new one.

I don't have access to a new silicon Mac, but I'll update Xcode to the latest and try a new build and upload it here - let's see if that fixes it.

@acheronfail
Copy link
Owner

I've created https://github.com/acheronfail/pixel-picker/releases/tag/1.6.1 - let me know if that fixes the issue.

@im-AMS
Copy link
Author

im-AMS commented Oct 20, 2021

@acheronfail nope, its still behaving the same way.
tried uninstalling the previous version(with all the config files and extra files), removed it from screen recording.
Installed, and gave permission for screen record. No luck.
running M1 Air BS 11.6.

@sleepyfurious
Copy link

sleepyfurious commented Oct 20, 2021

Confirmed on my M1 BS 11.5.1. It is still having the issue.
I think we're not the only ones who have this kind of issue here:

Sorry that I currently have no idea about something more relevant to the fix.

@acheronfail acheronfail added upstream bug Something isn't working labels Oct 20, 2021
@fredericrous
Copy link

fredericrous commented Oct 22, 2021

removing Pixel Picker from quarantine does not help either sudo xattr -r -d com.apple.quarantine /Applications/Pixel\ Picker.app/. I tested on v1.6.1

@michaelgriffindrake
Copy link

Same issue here. Mac M1 Mini Monterey. Keeps asking for screen recording permission, even though it already has it. Only can pick the desktop background, no applications.

@fredericrous
Copy link

fredericrous commented Dec 16, 2021

Workaround from Alice Barker shared on Nov 29 works for me.
The comment has been deleted so I'll repost

1.4.0 is working for me on an M1.
My steps to fix were:

- drag app to applications
- go to security and privacy and manually add pixel picker to screen recording
- open the app and approve in security panel
The only thing so far that seems broken is the key shortcut recorder

I rebooted my computer and pixel picker is still working so far

I already miss the WCAG checker which is not in v 1.4.0 :P

@Somberland
Copy link

Workaround from Alice Barker shared on Nov 29 works for me. The comment has been deleted so I'll repost

1.4.0 is working for me on an M1.
My steps to fix were:

- drag app to applications
- go to security and privacy and manually add pixel picker to screen recording
- open the app and approve in security panel
The only thing so far that seems broken is the key shortcut recorder

I rebooted my computer and pixel picker is still working so far

I already miss the WCAG checker which is not in v 1.4.0 :P

Sadly does not work here with Monterey 12.1 on my M1Max :(

@michaelgriffindrake
Copy link

michaelgriffindrake commented Feb 6, 2022

Workaround from Alice Barker shared on Nov 29 works for me. The comment has been deleted so I'll repost

1.4.0 is working for me on an M1.
My steps to fix were:

- drag app to applications
- go to security and privacy and manually add pixel picker to screen recording
- open the app and approve in security panel
The only thing so far that seems broken is the key shortcut recorder

I rebooted my computer and pixel picker is still working so far

I already miss the WCAG checker which is not in v 1.4.0 :P

Doesn't work for me on my Monterey M1 Mini unfortunately. Really missing using Pixel Picker!

@chenxiaolei
Copy link

Is there any progress?

@michaelgriffindrake
Copy link

Man I'm so missing using this app. Any updates on this bug?

@acheronfail acheronfail added the help wanted Extra attention is needed label Mar 27, 2022
@acheronfail
Copy link
Owner

acheronfail commented Mar 27, 2022

Unfortunately the only macbook I have access to is a very old one stuck on Catalina, so I'm afraid I don't have the ability to test this, etc.

More than happy to review PRs from anyone who has a newer Apple machine and can discover the fix though! 🙂

I wonder if it's as simple as just building it with a newer version of Xcode, etc, since we have reports of it working from user's building it from source?

@im-AMS
Copy link
Author

im-AMS commented Apr 12, 2022

Does any one mind sharing the compiled version which works on your apple m1 machine?

@MatzeKitt
Copy link

I tried building it, but upon archiving the following error occurs:

pixel-picker/Pixel Picker/ShowAndHideCursor.h:12:1: Declaration of 'CGDirectDisplayID' must be imported from module 'CoreGraphics.CGDirectDisplay' before it is required

Since I’m not familiar with creating Mac apps, I don’t know what to do.

@sleepyfurious
Copy link

sleepyfurious commented Apr 12, 2022

Does any one mind sharing the compiled version which works on your apple m1 machine?

I've got one: Pixel Picker.1_6_0_(20).zip> [sorry see below]. This is the one built on last October 5 with my reply above. It is M1-only build. If you can't get this one to work, try quit the app, remove any other versions from your machine, and then run tccutil reset All com.acheronfail.pixel-picker before relaunch the app again.

@MatzeKitt
Copy link

Unfortunately, I can’t get your version working. macOS says that this app is broken and needs to be sent to trash.

@sleepyfurious
Copy link

sleepyfurious commented Apr 13, 2022

Sorry, I might just give you the debug build unnoticed. How about this updated and archived version?: Pixel Picker (1.6.1) 2022-04-13 13-06-04.zip> Oh I can't get this one to work myself. Sorry. I'll be back…

@sleepyfurious
Copy link

I am unaware that running "archive" will produce the universal binary as is. Now I change build setting "Build Active Architecture Only" for Release build to Yes. Here: Pixel Picker (1.6.1) 2022-04-13 13-27-21.zip

@sleepyfurious
Copy link

I tried building it, but upon archiving the following error occurs:

pixel-picker/Pixel Picker/ShowAndHideCursor.h:12:1: Declaration of 'CGDirectDisplayID' must be imported from module 'CoreGraphics.CGDirectDisplay' before it is required

Just put #import <CoreGraphics/CoreGraphics.h> in ShowAndHideCursor.h in its import lines (probably right before #import <Foundation/Foundation.h>.)

@MatzeKitt
Copy link

Even your newer version doesn’t work for me, I get the same error as above that the app is broken.

Thank you for the fix with my error to import CoreGraphics. Unfortunately, even with my own exported app the problem still persists and I can just pick pixels of my background image.

@sleepyfurious
Copy link

Even your newer version doesn’t work for me, I get the same error as above that the app is broken.

Thank you for the fix with my error to import CoreGraphics. Unfortunately, even with my own exported app the problem still persists and I can just pick pixels of my background image.

I can't figure out more now, and supporting your own build for non-apple dev seems off-topic to me. Anyway, if you're interested in archiving this front, I am at your twitter feed. We may further discuss there.

@im-AMS
Copy link
Author

im-AMS commented Apr 13, 2022

It works like a charm for me!
Thanks @sleepyfurious !

@MatzeKitt Here is what I tried

  1. I first uninstalled the older version. ( If you could use clean my mac or similar would be great)
  2. Downloaded and unarchived and placed it in application folder
  3. I tried opening it, it dint work for me. So I ran this command from above tccutil reset All com.acheronfail.pixel-picker
  4. I opened, It said the app is broken you should delete it etc etc. Then I ran xattr -cr /Applications/Pixel\ Picker.app
  5. And It works!

PS: im on Mac Air M1

@MatzeKitt
Copy link

Then I ran xattr -cr /Applications/Pixel\ Picker.app

That was the hint I needed! It now works for me, too! 🎉

@sleepyfurious
Copy link

Wow, Apple is full of surprises! Well, I'm glad that we've at least found some way for the M1 guys. Thank you @im-AMS 🙂.

@sleepyfurious
Copy link

I wonder if it's as simple as just building it with a newer version of Xcode, etc, since we have reports of it working from user's building it from source?

No, @acheronfail, it's not. I'm sad to tell that the ill behavior persists in the universal binary builds. I double checked it.

@iliyang
Copy link

iliyang commented Sep 9, 2022

I am unaware that running "archive" will produce the universal binary as is. Now I change build setting "Build Active Architecture Only" for Release build to Yes. Here: Pixel Picker (1.6.1) 2022-04-13 13-27-21.zip

Thank you for this build, works on my M1 Max like a charm!

Does anyone have a universal binary? @acheronfail?

@adrianniebla
Copy link
Contributor

I came upon to issue upon further investigation I was able to get a build that that works on M1 and Intel. In project settings I go into the Targets, select the target and in Signing and Capabilities I set the team and Signing Certificate to Development.

@EtzBetz
Copy link

EtzBetz commented Jan 31, 2024

I'm not able to get this to run on the latest 1.6.1 release, also with command line stuff or manually adding in settings. It actually even picks for me, but it does not record any windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed upstream
Projects
None yet
Development

No branches or pull requests