Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plist activation doesn't work in Share extension #566

Open
ws233 opened this issue Jul 12, 2017 · 1 comment
Open

Plist activation doesn't work in Share extension #566

ws233 opened this issue Jul 12, 2017 · 1 comment

Comments

@ws233
Copy link

ws233 commented Jul 12, 2017

Hi!

It seems that plist automatic activation doesn't work in share extension, since the extension doesn't have an app delegate and the swizzled method is never being called.

Are there any plans to add a support for the Typhoon in the extensions?

Thanks!

@Foboz
Copy link

Foboz commented Nov 8, 2017

Hi guys! I have the same issue with iMessage extension (with storyboard + RamblerTyphoonUtils), but found the reason.

  1. Since extension don't have app delegate we should swizzle another method,( f.e. -[NSXPCListener setDelegate:]) in TyphoonStartup.m
  2. Second issue with TyphoonStoryboardResolver, that can't be used correctly because componentFactory is nil (TyphoonStoryboardResolver:42). In this case we should use dummy app delegate on the Typhoon level instead of delegate, that was swizzled in point 1
    That my solution. Full solution available in my fork (https://github.com/foboz/typhoon). Maybe you can find more concise solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants