seemoo-lab / openhaystack

Build your own 'AirTags' 🏷 today! Framework for tracking personal Bluetooth devices via Apple's massive Find My network.
https://owlink.org
GNU Affero General Public License v3.0
8.36k stars 450 forks source link

Add support for plugin for macOS 13.1 Ventura and Mail app Version 16.0 (3731.300.101.1.3) #162

Open jrusi opened 1 year ago

jrusi commented 1 year ago

After 13.1 upgrade there is an issue with the plugin. It get's rejected and disabled in Mail.app

I've checked the UUID and it seems that it is the same as the previous one:

890E3F5B-9490-4828-8F3F-B6561E513FCC

But when I add new entry in /Applications/OpenHaystack.app/Contents/Resources/OpenHaystackMail.mailbundle/Contents/Info.plist: "Supported13.1PluginCompatibilityUUIDs" = ( "890E3F5B-9490-4828-8F3F-B6561E513FCC" ); and enable the plugin, Mail app gives me this error: The item "OpenHaystackMail.mailbundle" is corrupted and cannot be opened. Move this item to the Trash.

Any ideas how to fix it?

Myzel394 commented 1 year ago

Hey @jrusi I'm also trying to get this to work. Have you found a workaround?

DanielBustillos commented 1 year ago

I have the same issue. I used the file of #157 and update the macOS 13.1 mail 16.0 UUIDD using the one in

/Applications/Mail.app/Contents/Info PluginCompatibilityUUID

But I keep getting the error line

Contact the makers of these plug-ins for versions that are compatible with Mail 16.0.

zwells commented 1 year ago

What I did that got it working again:

Turn off mail and openhaystack Remove: ~/Library/Mail/Bundles/OpenHaystackMail.mailbundle and ~/Library/Application Support/Mail/Plug-ins/* Edit: /Applications/OpenHaystack.app/Contents/Resources/OpenHaystackMail.mailbundle/Contents/info.plist Add this entry:

Screenshot 2022-12-28 at 12 43 41 PM

Turn on openhaystack, it will ask to install the plugin, install it in: /Users/username/Library/Mail/Bundles/ it will open mail, close it Disable gatekeeper sudo spctl --master-disable Open mail and enable plugin Allow access prompt Mail will ask to restart Enable gatekeeper sudo spctl --master-enable

DanielBustillos commented 1 year ago

What worked for me is compiling the binaries with Xcode selecting my Mac as a target and adding manually the entries commented by @zwells .

pcace commented 1 year ago

What worked for me is compiling the binaries with Xcode selecting my Mac as a target and adding manually the entries commented by @zwells .

tried that, but without success. i am on 13.1 and using mail 16.0 (german os) any solution to that? Cheers PS.: also followed this here: https://oscarbarrett.github.io/2017/01/04/Apple-Mail-plugin-compatibility-macOS-Sierra-and-beyond/ without result...

danielsippel commented 1 year ago

@DanielBustillos Can you provide a compiled version with the entries for 13.1 & 13.2 ? Or some lines of how to compile?

Actually I can't see if my boat is still where it should be :-)

mishailovic commented 1 year ago

Hey guys, little update on this one. I bumped versions of mailplugin and built it using GitHub actions. You can grub it Here (Download and unpack .zip file and go to the Contents/Resources you will find mail plugin here.) Install plugin and use latest version of openhaystack from here Works for me on latest macos (13.2.1)

pcace commented 1 year ago

Hi, i just tried your version. Since i have never ran openHaystack successfully i dont know how i would know if it worked. would there be anything shown in mail/extensions? with your version there is nothing shown here for me (M1 Mac, 13.1) How do i know if it worked?

i guess this is not the sign i want to see?

Bildschirm­foto 2023-02-16 um 07 49 49
mishailovic commented 1 year ago

@pcace yeah, this little dot should become green. I think apple silicon is another pain, I'm not really sure what to do with it

Furtivo360 commented 1 year ago

Hi! This new version v0.5.3 keeps crashing. Cannot open it.

Any thoughts?

Thanks

mishailovic commented 1 year ago

Hi! This new version v0.5.3 keeps crashing. Cannot open it.

Any thoughts?

Thanks

Yes, this is expected. Install mail plugin from 0.5.3 and use 0.5.2 from core repository

Furtivo360 commented 1 year ago

Hi! This new version v0.5.3 keeps crashing. Cannot open it. Any thoughts? Thanks

Yes, this is expected. Install mail plugin from 0.5.3 and use 0.5.2 from core repository

Cool! Thanks, it now "works"...only: I can see the green dot for the activity and the tags are replying...but not appearing on the maps...any help?

Screenshot 2023-02-16 at 16 18 25
mishailovic commented 1 year ago

Hi! This new version v0.5.3 keeps crashing. Cannot open it. Any thoughts? Thanks

Yes, this is expected. Install mail plugin from 0.5.3 and use 0.5.2 from core repository

Cool! Thanks, it now "works"...only: I can see the green dot for the activity and the tags are replying...but not appearing on the maps...any help?

Screenshot 2023-02-16 at 16 18 25

Can you try again with this build? https://github.com/mishailovic/openhaystack/suites/11027640778/artifacts/559843737

Don't forget to uninstall old mail plugin

Furtivo360 commented 1 year ago

Not working...

mishailovic commented 1 year ago

Not working...

  • Old mail plugin uninstalled
  • downloded your version (Version 5dd4780 (1) - installed
  • new mail plug-in installed Same issue "No reports found"

Tbh I have no idea how to fix it. I just ordered my esp32 and it will be by the next week. I couldn't test functionality of the app unfortunately. Maybe main developer will take a look at this issue someday.

pcace commented 1 year ago

@mishailovic Hey guys, little update on this one. I bumped versions of mailplugin and built it using GitHub actions. You can grub it Here (Download and unpack .zip file and go to the Contents/Resources you will find mail plugin here.) Install plugin and use latest version of openhaystack from here Works for me on latest macos (13.2.1)

i am not really familiar with osx development, but is it possible that this must be build for ARM plattform and currently is build for x86? and: do you have your changes somewhere in a different branch/fork? Cheers

EDIT: ah no, i see its already build as universal binary:

/OpenHaystackMail.mailbundle/Contents/MacOS/OpenHaystackMail: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit bundle x86_64] [arm64:Mach-O 64-bit bundle arm64]
/OpenHaystackMail.mailbundle/Contents/MacOS/OpenHaystackMail (for architecture x86_64): Mach-O 64-bit bundle x86_64
/OpenHaystackMail.mailbundle/Contents/MacOS/OpenHaystackMail (for architecture arm64):  Mach-O 64-bit bundle arm64
mishailovic commented 1 year ago

do you have your changes somewhere in a different branch/fork?

I did nothing but merging #158 and rewriting build system so I can trigger it manually

pcace commented 1 year ago

hm thanks for clarification. is there any success story of openhaystack running on ARM?

Thanks a lot!

holygrolli commented 1 year ago

Thanks for all the input here. I finally got it working on Ventura on my M1 Pro. I had to build it on my own. See my #182 where I also included a separate file for instructions how to build OpenHaystack on your own

marinsss commented 1 year ago

Hey guys, little update on this one. I bumped versions of mailplugin and built it using GitHub actions. You can grub it Here (Download and unpack .zip file and go to the Contents/Resources you will find mail plugin here.) Install plugin and use latest version of openhaystack from here Works for me on latest macos (13.2.1)

worked great for me. thank you