Skip to content

Support for App Extensions (e.g. Widgets) #45

Closed

Description

Hello, the title is my question. Is it feasible to do these things?

Activity

  1. erikbdev commented on May 16, 2025

    @erikbdev
    Contributor

    Currently this feature is not supported, but I am currently working on a version that allows you to add App Extensions (appex).

  2. brocodevs commented on May 17, 2025

    @brocodevs

    Currently this feature is not supported, but I am currently working on a version that allows you to add App Extensions (appex).

    Really? How much work would it take to set up an app extension manually

  3. kabiroberai commented on May 17, 2025

    @kabiroberai
    Member

    Setting infoPath allows you to Info.plist, yes.

    As for extensions, xtool can't build them yet but it would be feasible to do so by extending the xtool.yml spec and then adding support to build them via PackLib. I think we're mostly able to sign/provision them correctly — there might be edge cases around entitlements for app extensions but I'm not sure, will probably be something we find out once we implement the building part.

  4. kabiroberai commented on May 17, 2025

    @kabiroberai
    Member

    It's great to see your fork @erikbdev, looks like a good start so far! My only recommendation is that you also consider how things interact with the xtool dev generate-xcode-project command which allows you to scaffold an Xcode project from an xtool one. The idea behind this is that people can perform their final builds with Xcode for more robust App Store compatibility. This is the reason that xtool expects products to be libraries: Xcode isn't happy if we give it an iOS executable target.

    Which is to say:

    1. It would be ideal to stick to libraries for now unless you've also found a way to get generate-xcode-project to support executable targets.
    2. Let's make sure that XcodePacker is able to generate App Extension targets.

    Will hold off on further feedback until you ask for it, just wanted to make sure you keep these points in mind.

  5. changed the title [-]How to edit Info.plist and add Extensions(i.e. Widgets)?[/-] [+]Support for App Extensions (e.g. Widgets)[/+] on May 17, 2025
  6. added
    enhancement
    on May 17, 2025
  7. moved this to Todo in Roadmapon May 17, 2025
  8. erikbdev commented on May 17, 2025

    @erikbdev
    Contributor

    My only recommendation is that you also consider how things interact with the xtool dev generate-xcode-project command which allows you to scaffold an Xcode project from an xtool one.

    Ah, so this is one of the reasons as to why a library preferred over an executable. I changed it so it aligns with AppleProductTypes.Product.iOSApplication() as it uses an executable type, but I will most likely revert back to using library instead.

    Also, if you have additional suggestions feel free to let me know! 😊

  9. added a commit that references this issue on Jul 14, 2025
    edd6b90
  10. moved this from Todo to Done in Roadmapon Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions