picaso / parrot-zik-status

A Mac interface for Zik Headphones
https://picaso.github.io/parrot-zik-status
MIT License
72 stars 19 forks source link

App won't show in menu bar under High Sierra beta #14

Open NoSync opened 7 years ago

NoSync commented 7 years ago

Hi, I recently installed High Sierra (build A330h) on my Mac, and Parrot Status does not work anymore. The app itself launches, it does not crash and there are no errors in the syslog, but its icon won't load in the menu bar. Can't really gather more info than this, unfortunately.

maarconte commented 7 years ago

I have the same problem... When i click on the app, it doesn't launch or appear in the menu bar.

picaso commented 7 years ago

Hello, Thanks for the feedback. Unfortunately, I do not have the parrot headphones anymore and cannot maintain this repo. If I can find a pair to test with, I will try to fix all these bugs noted.

alexkahn139 commented 7 years ago

Do you have several bluetooth peripherals connected to your mac? If I disconnect everything but the headphones the app works

maarconte commented 7 years ago

I only have my Parrot connected. But the app doesn't even appear in the menu bar, like its not launching. I'm on macOS High Sierra beta 10.13.

Namouk commented 6 years ago

Hi, I've ported the app on Swift 4 in Xcode 9.0.1 and successfully compiled it for High Sierra 10.13, but it still doesn't show up in the menu bar.

The problem resides in the ZikMenu class located in ZikMenu.swift (Main.Storyboard crashes a lot when working on it)

High Sierra has changed a lot of things on how to display stuff.

I'm now trying to integrate it that way (which works perfectly in High Sierra): http://fbm.hk/wp/menu-bar-apps/

@picaso The apps should at least launch without the Zik connected. If you could take a look at it, that would be a great help. I'm currently learning Swift 4.

EDIT/ Figured out SwinjectStoryboard is the culprit.

Swinject: Resolution failed. Expected registration: { Service: ZikMemuInterface, Factory: (Resolver) -> ZikMemuInterface }

Available registrations:

Swinject: Resolution failed. Expected registration: { Service: BTConnectionServiceInterface, Factory: (Resolver) -> BTConnectionServiceInterface }

Available registrations:

Swinject: Resolution failed. Expected registration: { Service: AboutProtocol, Factory: (Resolver) -> AboutProtocol }

Waiting for the devs to fix it on Swift 4.

Namouk commented 6 years ago

@picaso

I've noticed your compiled 0.46-alpha app (available for download) doesn't contain SwinjectStoryboard.framework.

But when compiling from the master branch sources, the built app contains it.

Did you use a different branch that makes only use of Swinject.framework?

EDIT/ BAD NEWS, SwinjectStoryboard.framework has been opted out since it doesn't work at all on High Sierra. https://github.com/Swinject/Swinject/issues/295#issuecomment-338424402

shams-ahmed commented 6 years ago

@Namouk can you push your fork on github? i would like to help in finding an alternative solution...

Namouk commented 6 years ago

@shams-ahmed

I've also modified pods to successfully compile with Xcode 9.0.1 and macOS 10.2/10.3.

How do I include them in the fork?

zikdoe commented 6 years ago

All,

I recently upgraded to High Sierra and was saddened like most of you by the incompatibility of this app. I know nothing about XCode, nothing about Swift, nothing about Objective-C, nothing about Cocoa, nothing about SwinjectionStoryboard... but somehow managed to build something very simple using make and swiftc. I modified a couple lines from the original code to fix warnings and errors, directly imported AEXML into my worktree, and wrote some code to display a little menu in the status bar. To put it in a nutshell, I added an AppDelegate.swift file that uses most of the original code and build its own status bar menu. Very little is available, but I thought it may be useful to some of you. And who knows, maybe you will expand on it...

How to:

More information:

This is a throwaway GitHub account behind a temporary email address used during a brief business trip in Japan by somebody who did not even dare sign the patch. Farewell my friends.

Fiotty0 commented 6 years ago

Hi, glad to hear that the project is not abandoned. I'm not a dev, i don't have Xcode on my computer. Is any of you able to compile the code and share an executable app ready-to-use ?

Thank you very much !

Texxer commented 6 years ago

Keep it up guys! Looking forward to a push of a working version. Let me know if you need help with the fix.

bantunesm commented 6 years ago

Any news on this ? I have same problem on my macbook high sierra

alexkahn139 commented 6 years ago

I found this, which seems to work. I had to add a library and added support for dark menu bar. Which you can find here of in the Pull Request ;)

Texxer commented 6 years ago

Awesome alex, you're the man! Now I only have to figure out how to install this...

alexkahn139 commented 6 years ago

I was able to build it in Xcode, which would work

activecs commented 6 years ago

@alexkahn139 application crashes when I connect/disconnect headphones. So if you connect headphones and only after that start application - it works, but after any connection activity, it crashes. I can try to collect logs, if it will help

alexkahn139 commented 6 years ago

I have the same error 😠. Still looking if I am able to fix it. For the moment I use controlplane to automatically restart the app

letsleaveitempty commented 6 years ago

Same here. If any of you have the time/manage to fix this, please share 🙂

alexkahn139 commented 6 years ago

I made a dirty fix here