yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project
MIT License
6.88k stars 809 forks source link

How to configure Notification Service Extention target? #1420

Closed sborovikov-belkacar closed 3 months ago

sborovikov-belkacar commented 7 months ago

Perhaps someone has already solved this problem. Tell me if you know. How can I add a Notification Service Extention target using XcdoeGen? I just don't see this type of target in XcodeGen.

Simimi-dot commented 6 months ago

@sborovikov-belkacar have you solve this problem ? I have a similar situation, I create an app-extension target, but the folder for this target is not created, and because of this, info.plist and entitlements are not created

yonaskolb commented 3 months ago

This is the target definition you can use

targets:
  NotificationService:
    type: com.apple.product-type.app-extension
    platform: iOS
    sources:
      - path: NotificationService

You'll need an appropriate Info.plist in that directory that XcodeGen doesn't generate for you. You can get one by just creating the target within Xcode.

Let me know if that helps. Closing this for now