parrot-zik-status icon indicating copy to clipboard operation
parrot-zik-status copied to clipboard

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

Open NoSync opened this issue 8 years ago • 19 comments

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.

NoSync avatar Aug 13 '17 15:08 NoSync

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

maarconte avatar Aug 22 '17 09:08 maarconte

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.

picaso avatar Aug 29 '17 05:08 picaso

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

alexkahn139 avatar Sep 01 '17 07:09 alexkahn139

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.

maarconte avatar Sep 01 '17 09:09 maarconte

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 avatar Oct 20 '17 02:10 Namouk

@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

Namouk avatar Oct 21 '17 16:10 Namouk

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

shams-ahmed avatar Oct 29 '17 15:10 shams-ahmed

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

Namouk avatar Oct 30 '17 07:10 Namouk

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:

  • Connect your Zik headphones
  • Read my squashed patch: https://pastebin.com/jD8KB5V4
  • Download it: https://pastebin.com/dl/jD8KB5V4
  • Apply it in your parrot-zik-status tree (on 3cfad30 current origin/master)
  • cd zik3 && make all run

More information:

  • macOS 10.13.1 (17B1002)
  • Zik3 headphones
  • % swiftc -v Apple Swift version 4.0.2 (swiftlang-900.0.69.2 clang-900.0.38) Target: x86_64-apple-macosx10.9

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.

zikdoe avatar Nov 29 '17 19:11 zikdoe

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 !

Fiotty0 avatar Dec 06 '17 11:12 Fiotty0

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

Texxer avatar Dec 15 '17 10:12 Texxer

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

bantunesm avatar Jan 08 '18 14:01 bantunesm

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

alexkahn139 avatar May 30 '18 13:05 alexkahn139

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

Texxer avatar May 30 '18 13:05 Texxer

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

alexkahn139 avatar May 30 '18 13:05 alexkahn139

@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

activecs avatar Jun 05 '18 15:06 activecs

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

alexkahn139 avatar Jun 05 '18 15:06 alexkahn139

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

letsleaveitempty avatar Jun 25 '18 10:06 letsleaveitempty

I made a dirty fix here

alexkahn139 avatar Jun 25 '18 11:06 alexkahn139