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

"Caspion cannot be opened..." #MacOS #Big_Sur #M1 #276

Open
tbendr opened this issue Jul 25, 2021 · 15 comments
Open

"Caspion cannot be opened..." #MacOS #Big_Sur #M1 #276

tbendr opened this issue Jul 25, 2021 · 15 comments
Assignees

Comments

@tbendr
Copy link

tbendr commented Jul 25, 2021

Caspion for mac


I downloaded "caspion-0.0.6-beta-mac.zip".

I get this error whenever I try to run the app on my M1 Mac Mini (macOS Big Sur).

Does Caspion support M1 chips?


CleanShot 2021-07-25 at 16 14 19

@baruchiro
Copy link
Collaborator

@tbendr I have a new release to test on M1 before I will publish it. Do you want to try?

If so, please contact me inMail, it is a big file. baruchiro@gmail.com

@tbendr tbendr closed this as completed Jul 27, 2021
@baruchiro baruchiro reopened this Jul 28, 2021
@baruchiro
Copy link
Collaborator

@tbendr I understand the artifact is working?

@baruchiro
Copy link
Collaborator

baruchiro commented Jul 30, 2021

Update: I created a "universal" artifact in #277, @tbendr tested it but now the main process loaded but there is no UI (renderer process).

Logs:
main.log

@hannanel100
Copy link

hannanel100 commented May 29, 2022

is this issue being worked on? i tried to to install dependencies via yarn and got an error:

error /Users/hannanel/Documents/hannanel/caspion/node_modules/electron: Command failed.
Exit code: 1
Command: node install.js
Arguments: 
Directory: /Users/hannanel/Documents/hannanel/caspion/node_modules/electron
Output:
HTTPError: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v9.4.4/electron-v9.4.4-darwin-arm64.zip
    at EventEmitter.<anonymous> (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/got/source/as-stream.js:35:24)
    at EventEmitter.emit (node:events:520:28)
    at module.exports (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/got/source/get-response.js:22:10)
    at ClientRequest.handleResponse (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/got/source/request-as-event-emitter.js:155:5)
    at Object.onceWrapper (node:events:640:26)
    at ClientRequest.emit (node:events:532:35)
    at ClientRequest.origin.emit (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/@szmarczak/http-timer/source/index.js:37:11)

after trying to implement the changes in PR #277 i got this error:

error /Users/hannanel/Documents/hannanel/caspion/node_modules/electron-chromedriver: Command failed.
Exit code: 1
Command: node ./download-chromedriver.js
Arguments: 
Directory: /Users/hannanel/Documents/hannanel/caspion/node_modules/electron-chromedriver
Output:
node:internal/process/promises:265
            triggerUncaughtException(err, true /* fromPromise */);
            ^

GotError [HTTPError]: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip
    at EventEmitter.<anonymous> (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/got/source/as-stream.js:35:24)
    at EventEmitter.emit (node:events:520:28)
    at module.exports (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/got/source/get-response.js:22:10)
    at ClientRequest.handleResponse (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/got/source/request-as-event-emitter.js:155:5)
    at Object.onceWrapper (node:events:640:26)
    at ClientRequest.emit (node:events:532:35)
    at ClientRequest.origin.emit (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/@szmarczak/http-timer/source/index.js:37:11)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:618:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at TLSSocket.socketOnData (node:_http_client:482:22) {
  host: 'github.com',
  hostname: 'github.com',
  method: 'GET',
  path: '/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
  socketPath: undefined,
  protocol: 'https:',
  url: 'https://github.com/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
  gotOptions: {
    path: '/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
    protocol: 'https:',
    slashes: true,
    auth: null,
    host: 'github.com',
    port: null,
    hostname: 'github.com',
    hash: null,
    search: null,
    query: null,
    pathname: '/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
    href: 'https://github.com/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
    retry: {
      retries: [Function (anonymous)],
      methods: Set(6) { 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE' },
      statusCodes: Set(7) { 408, 413, 429, 500, 502, 503, 504 },
      errorCodes: Set(8) {
        'ETIMEDOUT',
        'ECONNRESET',
        'EADDRINUSE',
        'ECONNREFUSED',
        'EPIPE',
        'ENOTFOUND',
        'ENETUNREACH',
        'EAI_AGAIN'
      }
    },
    headers: {
      'user-agent': 'got/9.6.0 (https://github.com/sindresorhus/got)',
      'accept-encoding': 'gzip, deflate'
    },
    hooks: {
      beforeRequest: [],
      beforeRedirect: [],
      beforeRetry: [],
      afterResponse: [],
      beforeError: [],
      init: []
    },
    decompress: true,
    throwHttpErrors: true,
    followRedirect: true,
    stream: true,
    form: false,
    json: false,
    cache: false,
    useElectronNet: false,
    method: 'GET'
  },
  statusCode: 404,
  statusMessage: 'Not Found',
  headers: {
    server: 'GitHub.com',
    date: 'Thu, 26 May 2022 07:45:13 GMT',
    'content-type': 'text/plain; charset=utf-8',
    vary: 'X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With',
    'permissions-policy': 'interest-cohort=()',
    'cache-control': 'no-cache',
    'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
    'x-frame-options': 'deny',
    'x-content-type-options': 'nosniff',
    'x-xss-protection': '0',
    'referrer-policy': 'no-referrer-when-downgrade',
    'expect-ct': 'max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"',
    'content-security-policy': "default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'",
    'content-encoding': 'gzip',
    'transfer-encoding': 'chunked',
    'x-github-request-id': 'C326:12D59:1059F0:11D266:628F3009',
    connection: 'close

@baruchiro
Copy link
Collaborator

@baruchiro
Copy link
Collaborator

@tbendr
Copy link
Author

tbendr commented Oct 18, 2022

@hannanel100 @tbendr Please check https://github.com/brafdlog/caspion/releases/tag/v0.2.0 if it works on your M1.

It does, Thanks!!

To open it you need to:

  1. Download the .dmg file
  2. open it and drag Caspion to the Application folder
  3. Go to Application folder
  4. Right click on Caspion, then "Open"
  5. You will get a warning message about unverified developer -- Click "Cancel"
  6. Go to System Preferences > Security & Privacy > General tab > click to lock on the left bottom corner and type your mac password
  7. Click "Open Anyway" next to the line: "caspion" was blocked from use because it is not from an
    identified developer.
  8. Open Caspion app again

@baruchiro
Copy link
Collaborator

Thanks @tbendr!

I will add it to the README file.

baruchiro added a commit that referenced this issue Oct 18, 2022
@baruchiro
Copy link
Collaborator

Closed by #378

@nkk1987
Copy link

nkk1987 commented May 8, 2024

Hey,
There seems to be an issue with the DMG file.
I'm trying to run it on macOS Sonoma 14.4.1 (23E224) (M1 Pro), and it results with an error:
"caspion.app" is damaged and can't be opened. You should move it to the Trash.
image
Any idea?

@baruchiro
Copy link
Collaborator

I saw it too!

Now I know there is a problem.

Meanwhile, I installed the previous version.

@baruchiro baruchiro reopened this May 9, 2024
@baruchiro
Copy link
Collaborator

baruchiro commented May 9, 2024

What was only a warning for unsigned apps on the Intel chip became to be a damaged app on the Apple chip.

To sign it with an empty signature and get the warning back:

sudo xattr -r -d com.apple.quarantine /Applications/caspion.app/

Then, right-click on the app and select Open and you will need to approve the warning. You will need to do it only once (per version 😔)

I will keep this open until we will solve it.

Need to add the explanation above to the documentation.

Copy link
Contributor

Issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Nov 11, 2024
@baruchiro
Copy link
Collaborator

I prefer to keep this open, we are still using the comments here.

@github-actions github-actions bot removed the Stale label Nov 13, 2024
@baruchiro
Copy link
Collaborator

הפקודה למאק דורשת תיקון קטן

ariel@xxx ~ % sudo xattr -r -d com.apple.quarantine /Applications/caspion.app/
Password:
option -r not recognized

usage: xattr [-slz] file [file ...]
       xattr -p [-slz] attr_name file [file ...]
       xattr -w [-sz] attr_name attr_value file [file ...]
       xattr -d [-s] attr_name file [file ...]
       xattr -c [-s] file [file ...]

The first form lists the names of all xattrs on the given file(s).
The second form (-p) prints the value of the xattr attr_name.
The third form (-w) sets the value of the xattr attr_name to attr_value.
The fourth form (-d) deletes the xattr attr_name.
The fifth form (-c) deletes (clears) all xattrs.

options:
  -h: print this help
  -s: act on symbolic links themselves rather than their targets
  -l: print long format (attr_name: attr_value)
  -z: compress or decompress (if compressed) attribute value in zip format

כדי לתקן את הפקודה, צריך להוריד את ה r-
sudo xattr -d com.apple.quarantine /Applications/caspion.app/

by @ariel-wiz on #620

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants