You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
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.
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.
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! 😊
Activity
erikbdev commentedon May 16, 2025
Currently this feature is not supported, but I am currently working on a version that allows you to add App Extensions (appex).
sevenc-nanashi commentedon May 16, 2025
infoPathmaybe? (https://swiftpackageindex.com/xtool-org/xtool/1.11.2/documentation/xtool/control#Customize-Infoplist)brocodevs commentedon May 17, 2025
Really? How much work would it take to set up an app extension manually
kabiroberai commentedon May 17, 2025
Setting
infoPathallows 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.ymlspec and then adding support to build them viaPackLib. 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.kabiroberai commentedon May 17, 2025
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-projectcommand 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:
generate-xcode-projectto support executable targets.XcodePackeris 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.
[-]How to edit Info.plist and add Extensions(i.e. Widgets)?[/-][+]Support for App Extensions (e.g. Widgets)[/+]erikbdev commentedon May 17, 2025
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! 😊
Add support for App Extensions (#97)