ClementGre/PDF4Teachers

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

Closed this issue · 19 comments

Prerequisite

  • I checked the bug was not already reported here
  • 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

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 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

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

It should fix the issue.

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

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.

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

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

Wieso ist die Internetseite down?

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

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.

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

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.

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 ?

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.

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.

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 !

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.

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.