142

Today I connect the use cable to debug the flutter app in mac book pro with m1 chip, when I started the debugging process in Android Studio Android Studio Bumblebee | 2021.1.1 Patch 2, the system tell me error:

“iproxy” cannot be opened because the developer cannot be verified.

this is the full UI:

enter image description here

when I tried to resolved it in System Preferences > Security & Privacy set to allow idevice_id, and I did not found the setting. I am using mac book pro with M1 chip, the OS version is macOS Monterey 12.2.1 .

1
  • Same problem with M2 Macbook Air.
    – PrgTrdr
    Commented Sep 12, 2022 at 20:38

10 Answers 10

186

I finally found this could fix, first switch to the folder of flutter(change the path to your own flutter path):

cd FLUTTER SDK DIRECTORY/flutter/bin/cache/artifacts/usbmuxd

then execute this command:

sudo xattr -d com.apple.quarantine iproxy
6
  • 25
    Delete /flutter/bin/cache/artifact directory worked for me. github.com/flutter/flutter/issues/42969#issuecomment-568303471 Commented Mar 14, 2022 at 6:30
  • 1
    Only add Background Modes from Singing & Capabilities of Xcode and ensure check Background Fetch and Background processing Commented Jul 18, 2022 at 19:09
  • Works on my side, thank you I give +1 so it makes 100likes :D
    – Adam Styrc
    Commented Mar 2, 2023 at 15:35
  • 5
    flutter doctor --verbose reveals your flutter SDK directory
    – FooBar
    Commented Jun 5, 2023 at 10:06
  • 1
    Here's a copy-pasteable one-liner to fix the issue for your current flutter folder, no matter which version you are on: sudo xattr -d com.apple.quarantine "$(echo "$(dirname "$(dirname "$(realpath "$(which flutter)")")")/bin/cache/artifacts/usbmuxd/iproxy")"
    – FooBar
    Commented Jul 4, 2023 at 8:35
133

for me it just helps by opening mac preferences -> security and privacy and you should see appeared checkbox with "Allow iproxy to smth..."

enter image description here

3
  • I don't see that button (and associated label) on that window/view.
    – steve
    Commented Jan 17, 2023 at 16:06
  • tried this but every time flutter run, it still asking for iproxy permission
    – GusDeCooL
    Commented Feb 3, 2023 at 22:03
  • 1
    Works on Ventura, thanks
    – Gaala
    Commented Jul 4, 2023 at 23:25
31

Open System Preferences -> Security & Privacy -> Click Allow Anyway (Circled in the screenshot) -> Click Cancel on the dialog “iproxy” cannot be opened because".. Click "Open" if another dialog appears. The dialog won't appear again.Security & Privacy Settings

20

Exactly, what worked for me: Simply,

  1. Go to flutter/bin/cache/artifacts/usbmuxd

  2. Tap on "iproxy" using " ⌘ + touchpad ".

enter image description here

  1. Select "open" from the popup, it will open terminal and save settings on your mac for this file.

enter image description here

  1. Perfect! You are good to go now. Just close your ide and run agin the app.
1
  • 1
    Geeze Apple. Way to lock everything down. Yes it's secure so I can't complain. But they definitely shouldn't be doing it to developers like this. They should have "developer mode" where you can run untrusted stuff. Just my opinion. I love apple hardware but their software team is something else! Commented Aug 21, 2023 at 0:32
14

Just go to

Settings -> Privacy & Security - then, scroll down, then click Allow anyway button.

11

You can simply go to the file in Finder and crtl + right click, than choose open, it will add an exception for this file and will execute next time without this warning. Normally located in this path:

../flutter/bin/cache/artifacts/usbmuxd/iproxy 
1
  • If you installed flutter using the suggested paths on flutter.io then ../ will be ~/development/. If this is the case, then on Mac you can find iproxy in finder using the following terminal command $open ~/development/flutter/bin/cache/artifacts/usbmuxd/ or in finder press cmd+shift+g and paste ~/development/flutter/bin/cache/artifacts/usbmuxd/ Commented Nov 15, 2022 at 21:21
9

Step 1 : Run Debug Mode

Step 2 : Go to Settings -> Privacy & Security Wait for a proxy alert

Step 3 : Click on Allow Anyway button for a successful debug

4

If installed via brew, Flutter (and iproxy) change folders when new version is installed (eg. /opt/homebrew/Caskroom/flutter/3.3.7/flutter/bin/cache/artifacts/usbmuxd/iproxy).

I find this one liner useful:

 find /opt/homebrew/Caskroom/flutter -iname "iproxy" -exec xattr -rd com.apple.quarantine '{}' \;
3

The file is located inside flutter/bin/cache/artifacts/usbmuxd. Go there from Finder, Control-click on the file and choose Open from the opened context menu. Mac will notify that opening this file will add it into exception from security settings. Click open and it should solve the issue.

2

I had this issue as well, I believe it was because I had configured my device for a wireless connection and had plugged it in. I am unsure why this caused an issue.

Solved by unplugging my iPhone from my Mac, and running in debug mode again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.