pixel-picker icon indicating copy to clipboard operation
pixel-picker copied to clipboard

[Bug] Record Screen Issue

Open im-AMS opened this issue 4 years ago • 30 comments

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

im-AMS avatar Aug 27 '21 18:08 im-AMS

Same issue. Also on an M1 chip.

JSaterdalen avatar Sep 17 '21 22:09 JSaterdalen

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.

sleepyfurious avatar Oct 04 '21 18:10 sleepyfurious

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 avatar Oct 20 '21 07:10 acheronfail

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

acheronfail avatar Oct 20 '21 08:10 acheronfail

@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.

im-AMS avatar Oct 20 '21 13:10 im-AMS

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:

  • https://discussions.apple.com/thread/252120273
  • https://community.simple-help.com/t/macos-big-sur-repeatedly-asks-for-screen-recording-permissions/637

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

sleepyfurious avatar Oct 20 '21 15:10 sleepyfurious

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

fredericrous avatar Oct 22 '21 15:10 fredericrous

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.

michaelgriffindrake avatar Dec 16 '21 22:12 michaelgriffindrake

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

fredericrous avatar Dec 16 '21 23:12 fredericrous

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 :(

Somberland avatar Jan 03 '22 16:01 Somberland

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!

michaelgriffindrake avatar Feb 06 '22 00:02 michaelgriffindrake

Is there any progress?

chenxiaolei avatar Mar 07 '22 06:03 chenxiaolei

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

michaelgriffindrake avatar Mar 27 '22 17:03 michaelgriffindrake

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! :slightly_smiling_face:

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?

acheronfail avatar Mar 27 '22 22:03 acheronfail

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

im-AMS avatar Apr 12 '22 12:04 im-AMS

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.

MatzeKitt avatar Apr 12 '22 14:04 MatzeKitt

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.

sleepyfurious avatar Apr 12 '22 14:04 sleepyfurious

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

MatzeKitt avatar Apr 13 '22 05:04 MatzeKitt

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 avatar Apr 13 '22 06:04 sleepyfurious

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 avatar Apr 13 '22 06:04 sleepyfurious

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>.)

sleepyfurious avatar Apr 13 '22 06:04 sleepyfurious

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.

MatzeKitt avatar Apr 13 '22 07:04 MatzeKitt

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.

sleepyfurious avatar Apr 13 '22 09:04 sleepyfurious

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

im-AMS avatar Apr 13 '22 13:04 im-AMS

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

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

MatzeKitt avatar Apr 13 '22 13:04 MatzeKitt

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 avatar Apr 13 '22 14:04 sleepyfurious

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.

sleepyfurious avatar Apr 13 '22 14:04 sleepyfurious

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?

iliyang avatar Sep 09 '22 12:09 iliyang

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.

adrianniebla avatar Mar 11 '23 04:03 adrianniebla

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.

EtzBetz avatar Jan 31 '24 12:01 EtzBetz