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

Apple Event timed out.. #177

Open
silicooon opened this issue May 6, 2024 · 3 comments
Open

Apple Event timed out.. #177

silicooon opened this issue May 6, 2024 · 3 comments

Comments

@silicooon
Copy link

I have tried 2-3 times this dmg I need to share with someone and all the time I bump on this:

hdiutil: resize: completed successfully Mounting disk image... Device name: /dev/disk7 Searching for mounted interstitial disk image using /dev/disk7s... Mount dir: /Volumes/dmg.ke2T6f Copying background file 'easyred2_1324780.jpg'... Running AppleScript to make Finder stuff pretty: /usr/bin/osascript "/var/folders/57/69z69th12597j72xkrz7cn0w0000gn/T/createdmg.tmp.XXXXXXXXXX.F0nuhm1U" "dmg.ke2T6f" /var/folders/57/69z69th12597j72xkrz7cn0w0000gn/T/createdmg.tmp.XXXXXXXXXX.F0nuhm1U:395:407: execution error: Finder got an error: AppleEvent timed out. (-1712) Failed running AppleScript Unmounting disk image... "disk7" ejected.

Could it be cause of the size of the app which is 12.5GB?

Thanks in advance for looking at this!

@silicooon
Copy link
Author

silicooon commented May 6, 2024

Okay, this time seems it was permissions.. Full Disk Access.

You might want to update the script someday to include this on first run or something checking this with if/error etc.

We need to get the bundle Identifier first, for an app it would be like:
mdls -name kMDItemCFBundleIdentifier -r /Applications/Safari.app[/code] It will give you something like: com.apple.Safari%`

To give Safari Full Disk Access now you need to add it with tccutl

tccutil reset All com.apple.Safari

Replace /Applications/Safari.app with the create-dmg path
like so mdls -name kMDItemCFBundleIdentifier -r /usr/local/Cellar/create-dmg/1.2.1./bin/create-dmg

This will suddenly give (null)%

But if you get it from the path and drag and drop it to the System Settings > Security & Privacy > Privacy > Full Disk Access panel it will be added

Doing the above, keeps the Apple Event from timeout.

Again thanks so much for making this tool. Hopefully that update will help others that using it on latest Apple systems. :)

@silicooon
Copy link
Author

Alternative solution via Terminal (doesn't work on Big Sur, which I am testing it right now)

sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db"

INSERT INTO access (service, client, client_type, allowed, prompt_count) VALUES ('kTCCServiceSystemPolicyAllFiles', '/usr/local/bin/create-dmg', 0, 1, 1);

@infeo
Copy link

infeo commented Jun 7, 2024

We experience the same issue our our self hosted arm64 github runner.

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

2 participants