As part of the upload of an application to App Store using Xcode, I run a validation of the archive prior to the upload.
I had a problem with an app, where the widget I had created appeared both in the Plugins
folder, and in the folder directly above it.
FYI - the current situation is that when you create a widget extension, Xcode build will, if your settings are correct, automatically put it in the Plugins
folder.
For some reason and somehow, I manage to create a duplicate of the widget extension in the directory above the Plugins
folder.
I have examined the build settings and commands and have not yet been able to determine where I had changed them to cause this situation. Although I can fix the archive to remove the duplicated widget, that is only a workaround. The problem will return the next time I build and archive the app. The right step is to fix the build commands or other settings to avoid this reoccurring.
If there is anyone who can help me it would be much appreciated.
For those interested I have listed the step to examine an archive (for widgets) below.
Do not use the commands on any archives for an app that you have submitted to Apple App Store or have app that you are actively distributing.
Excrcise caution when accessing the contents of the archive directly.
- Select Windows\Organiser
- Select the archive, and click to show in Finder
- Right click to show the package contents of the .xcarchive file
- In Products\Applications find the .app file
- Right click on the .app file to show the package contents
- Examine the Plugins directory for the widget extension
- Examine sub-directories and higher level directories to find the duplicate widget extension