PDF4Teachers icon indicating copy to clipboard operation
PDF4Teachers copied to clipboard

App dont start on macOS Ventura : The operation couldn't be completed. (OSStatus error -67028.)

Open netsrot69 opened this issue 2 years ago • 6 comments

Prerequisite

  • [X] I checked the bug was not already reported here
  • [X] I checked the bug is not an existing user issue here

Describe the bug

I downloaded the app from the site today and installed it. It is version 1.4.0.

After installing it, an error message appears and I cannot open the programme.

To Reproduce

Check the console

No response

Edits

No response

Screenshots

Bildschirm­foto 2022-11-03 um 12 11 45

Desktop

macOS Ventura 13.0

netsrot69 avatar Nov 03 '22 11:11 netsrot69

I had a sililar issue on a M1 mac (Ventura), and I fixed the issue in the Apple Silicon version of the app (1.4.0) a few days ago.

Do you have an Intel processor, or an Apple one (M1/M2) ?

ClementGre avatar Nov 03 '22 12:11 ClementGre

I had a sililar issue on a M1 mac (Ventura), and I fixed the issue in the Apple Silicon version of the app (1.4.0) a few days ago.

Do you have an Intel processor, or an Apple one (M1/M2) ?

I have an Intel Mac

netsrot69 avatar Nov 03 '22 12:11 netsrot69

Ok, we just updated the Intel version, you can try downloading it again on the website.

It should fix the issue.

ClementGre avatar Nov 03 '22 12:11 ClementGre

So on the page is still the 1.4.0 version with the same error... 🥴

netsrot69 avatar Nov 03 '22 15:11 netsrot69

Ok, this is another issue that I can't reproduce.

The error is called errSecCSBadBundleFormat : (The bundle format is unrecognized, invalid, or unsuitable.).

Then you should be able to run the app by running the PDF4Teachers executable into the bundle (cd into the .app/contents/MacOS/bin/).

I tried to edit a bit the bundle, hopping it will work for you. You can try this version : https://pdf4teachers.org/data/PDF4Teachers.app.zip.

ClementGre avatar Nov 03 '22 18:11 ClementGre

Well, the problem persists, only without an error message. 🤷🏼‍♂️ Bildschirm­foto 2022-11-04 um 17 15 44

netsrot69 avatar Nov 04 '22 16:11 netsrot69

I changed again the Info.plist and the package configuration, you can try this new version: https://pdf4teachers.org/data/PDF4Teachers.app.zip.

ClementGre avatar Nov 23 '22 21:11 ClementGre

Wieso ist die Internetseite down?

netsrot69 avatar Dec 17 '22 14:12 netsrot69

I am currently having issues with the website server. It should be online in less than a week, sorry for that.

ClementGre avatar Dec 17 '22 16:12 ClementGre

I'm sorry for this website issue that last more than it should. The new .app file is again available. Here is the link: https://pdf4teachers.org/data/PDF4Teachers.app.zip.

ClementGre avatar Jan 09 '23 20:01 ClementGre

Doesn't work! 🤷🏼🥴

Best regards Torsten

Am 09.01.2023 um 21:16 schrieb Clément Grennerat @.***>:

Sorry for this website issue that last more than it should. The new .app file is again available. Here is the link: https://pdf4teachers.org/data/PDF4Teachers.app.zip.

— Reply to this email directly, view it on GitHub https://github.com/ClementGre/PDF4Teachers/issues/145#issuecomment-1376261055, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANLHWJ7YS5IDC4523FY2V5TWRRW3FANCNFSM6AAAAAARWA27BM. You are receiving this because you authored the thread.

netsrot69 avatar Jan 11 '23 13:01 netsrot69

I'm really sorry for that. Are you still able to start the app manually? Running in a terminal:

./PDF4Teachers.app/Contents/MacOS/bin/PDF4Teachers

ClementGre avatar Jan 11 '23 14:01 ClementGre

Hey, i have the same problem on a MacBook Pro (Retina, 13-inch, Early 2013) with MacOs Catalina 10.15.7

Here is a copy of the terminal after launching the app from it :

/Applications/PDF4Teachers.app/contents/MacOS/bin/PDF4Teachers: line 9: /Applications/PDF4Teachers.app/contents/MacOS/bin/java: Bad CPU type in executable logout

Best regards,

Antoine.

Tonio51170 avatar May 23 '23 09:05 Tonio51170

The error "Bad CPU type in executable" suggests you are not using a version of PDF4Teachers compiled for Intel processors. Are you sure you downloaded the Intel version of the application ?

ClementGre avatar May 25 '23 10:05 ClementGre

Yes i tried both versions.

Some interesting news however with the intel version :

  • when i launch the app via the shortcut in the app finder, the usual error occured(The operation couldn’t be completed. (OSStatus error -67028.))
  • when i open the package (show package content), and execute the file PDF4Teachers (/Applications/PDF4Teachers.app/contents/MacOS/bin) in the terminal, the app is working just fine.

Hope it can help.

Tonio51170 avatar Jun 06 '23 09:06 Tonio51170

Ok, I can't reproduce the issue, but there are still some things we can look at.

  • What does it do when, in Finder, you open the app from the "open" menu item in the right click context menu, instead of double clicking.
  • Can you try to start the app bundle from the terminal using open -a PDF4Teachers? Are there any logs?
  • Can you check the bundle attributes in the terminal: xattr /Applications/PDF4Teachers.app? You can try to remove attributes with sudo xattr -rd com.apple.xxx /Applications/PDF4Teachers.app.
  • The last way to find out what is the problem is to try to edit the bundle content, particularly the Info.plist file into the bundle, but I guess you have neither the time nor the knoledge.

ClementGre avatar Jun 20 '23 12:06 ClementGre

I'm using your app a lot so i want to help you.

  • "Open" from the app : "The operation couldn't be completed (OSStatus error -67028)
  • With command 'open -a PDF4Teachers' : "PDF4teachers" cannot be opened because it is from an unidentified developper ...
  • Checking the bundles attributes : com.apple.quarantine, i removed the attributes with the command you gave. After that, the 'open -a PDF4Teachers' launch the app properly AND i can launch the app by double clicking on the icon

In a word : it works !

I tried on a fresh install, you just have to use the command sudo xattr -rd com.apple.xxx /Applications/PDF4Teachers.app with xxx=quarantine allowed me to use your app like any other.

Thank you !

Tonio51170 avatar Jun 21 '23 08:06 Tonio51170

The quarantine attribute is added to every downloaded file, but it should not prevent you from opening the app from the context menu, or in the security & privacy settings.

There must be something wrong between the bundle and your mac.

Do you have the same issue with older releases ? I can't reproduce the issue, but we can try to edit the bundle structure and the Info.plist file. I'll try to edit the bundle soon.

ClementGre avatar Jun 21 '23 12:06 ClementGre

Considering the fact that all macs are not affected by this issue, I will close the issue and add installation details for macos in futures release note. Macos quarantine system is complex and it would be easier to add installations instructions. Otherwise, the issue could be fixed by buying an Apple Developer license, but this is not in my plans considering the pricing.

ClementGre avatar Jul 17 '23 12:07 ClementGre