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

Can't open app on macOS #5

Closed
achou11 opened this issue Jun 23, 2020 · 28 comments
Closed

Can't open app on macOS #5

achou11 opened this issue Jun 23, 2020 · 28 comments

Comments

@achou11
Copy link

achou11 commented Jun 23, 2020

Installed prerelease 2 (prebuilt version) but when attempting to open it, I get this dialog:

image

Usually pretty good with these dialogs and resolving them but this one's new to me 😅

OS: macOS Catalina 10.15.5

@RangerMauve
Copy link
Member

Oh jeeze. 😅 Does opening it from the command line give you any error messages? Which version of Agregore is this BTW? 1.0.1?

@achou11
Copy link
Author

achou11 commented Jun 24, 2020

Oh jeeze. 😅 Does opening it from the command line give you any error messages? Which version of Agregore is this BTW? 1.0.1?

Here's the output when attempting to open via command line (didn't work):

~ $ open /Applications/Agregore\ Browser.app/
LSOpenURLsWithRole() failed with error -10810 for the file /Applications/Agregore Browser.app.

This is version 1.0.0-2

@RangerMauve
Copy link
Member

Could you try navigating within the contents of the app and running the executable directly? Kinda like what they did in brave-browser

@achou11
Copy link
Author

achou11 commented Jun 24, 2020

Could you try navigating within the contents of the app and running the executable directly? Kinda like what they did in brave-browser

Doesn't seem like I can do it as described in that comment. There doesn't seem to be a way to run ./Agregore\ Browser as an executable

@RangerMauve
Copy link
Member

Can you open up the .app as a zip file and extract it's contents maybe? :O

@achou11
Copy link
Author

achou11 commented Jun 24, 2020

Hmm still no luck. Curious to know if any other Mac users are having this issue too 🤔

@ikreymer
Copy link

I can confirm it worked for me in OS X Mojave. Though, it had the usual 'unidentified developer message', so had to ctrl + click the first time.
Perhaps it is related to that, though with less informative error message?
One thing to check: in your Privacy & Security settings, check if you have Allow Apps from set to Allow Apps from App Store and identified developers. If it's set to only 'App Store', that could also be an issue..

@achou11
Copy link
Author

achou11 commented Jun 25, 2020

@ikreymer yeah I checked to set if that could be an issue but I have the correct setting enabled and did the same procedure for opening the app 😅 Wonder if the issue is specific to Catalina in that case...

@achou11
Copy link
Author

achou11 commented Jun 25, 2020

@RangerMauve ran a chmod on the executable so I could actually run it like they did in the Brave issue 😅. Think I got a more useful error message when trying to run the executable directly this time:

dyld: Library not loaded: @rpath/Electron Framework.framework/Electron Framework
  Referenced from: /Users/andrewchou/Downloads/Agregore Browser.app/Contents/MacOS/Agregore Browser
  Reason: no suitable image found.  Did find:
	/Users/andrewchou/Downloads/Agregore Browser.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: file too short
	/Users/andrewchou/Downloads/Agregore Browser.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: stat() failed with errno=1
Abort trap: 6

@RangerMauve
Copy link
Member

That's super weird. Could you try downloading the 1.0.0-1 release and see if it's still a problem? Is your machine 64 bit?

@achou11
Copy link
Author

achou11 commented Jun 26, 2020

Had the same result for 1.0.0-1 unfortunately. And yeah my machine is 64 bit

@RangerMauve
Copy link
Member

@achou11 Does cloning and running from source work? :o

@achou11
Copy link
Author

achou11 commented Jun 27, 2020

@RangerMauve did that and ran the build command. Opening the app loaded from the generated zip doesn't work, but the one from the dmg does!

@achou11
Copy link
Author

achou11 commented Jun 27, 2020

Perhaps a relevant issue in electron-builder related to macOS unzipping behavior? electron-userland/electron-builder#4299

@RangerMauve
Copy link
Member

Oh jeeze. 😅 Would you be down to submit a PR which adds the patching logic? https://gist.github.com/wavifu/7539e5bf84a715f6e728bd14479d477c

@RangerMauve
Copy link
Member

Not sure if it'd compile from Linux though... 😅

@RangerMauve
Copy link
Member

@achou11 I think the best bet would be to set up some sort of CI for the builds. Not sure if I'll be able to reliably compile stuff without running into weird issues 😅

@RangerMauve
Copy link
Member

@achou11 Do you think you could try out the mac builds that are coming out of travis? https://github.com/RangerMauve/agregore-browser/releases/tag/untagged-c95a9b333284266f8a48

@RangerMauve
Copy link
Member

Should be working now, I think. 🤷

@achou11
Copy link
Author

achou11 commented Jul 26, 2020

Apologies for the late response @RangerMauve! Using the dmg got me one step closer but ran into this error:

image

Sorry for all of the hassle 🙃

@RangerMauve
Copy link
Member

Oh nooooo~ 😂

Thank you for your patience! I think I have some ideas for what I can try next

@DeltaF1
Copy link
Contributor

DeltaF1 commented Aug 4, 2020

I am getting what looks like the same error on Windows 10 64-bit build 18363
image

@RangerMauve
Copy link
Member

How does the latest release look?

@RangerMauve
Copy link
Member

@todrobbins
Copy link

@RangerMauve latest release loads with no errors although you do have to right-click Open to get past the security lords

@DeltaF1
Copy link
Contributor

DeltaF1 commented Aug 8, 2020

Works on my end!

@achou11
Copy link
Author

achou11 commented Aug 8, 2020

Works for me too! Thanks for the persistence @RangerMauve and feel free to close the issue

@RangerMauve
Copy link
Member

Yaaay

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

5 participants