3

This was working perfectly - before I upgraded to Xcode 10 that is. My app has a Quicklook and a Spotlight plugin integrated into it. These plugins are built separately and then, in the Build Phase, copied (two Copy Files) with the following settings:

Destination: Wrapper
Subpath: Contents/Library/<QuickLook|Spotlight>
Code Sign on Copy

Now, when I attempt to Archive in order to submit my App to the Mac App Store, my application archive to 'Other Items' instead of 'MacOS Apps'.

If I remove my plugins then it will archive correctly - but (obviously) I don't want to do that since this functionality is critical.

Has anyone seen this problem before? Can anyone suggest a solution?

headbanger
  • 1,038
  • 1
  • 11
  • 32
  • Possible duplicate of [Cannot generate iOS App archive in xcode](https://stackoverflow.com/questions/10715211/cannot-generate-ios-app-archive-in-xcode) – Tamás Sengel Oct 04 '18 at 20:12

3 Answers3

9

You're getting generic Xcode build. This may happen, if you're using nested applications, static libraries, frameworks or headers.

You should set Skip install toYES in build settings for your plugins.

More here

AVerguno
  • 1,277
  • 11
  • 27
2

To be a bit more precise than just randomly setting Skip install on any target:

Check the contents of the .xcarchive, Xcode reports it as a generic archive when there's more than one item in Products/Applications. It should contain only your application.

After finding the extra items there, you can then know for which target you should set "Skip Install" to Yes.

Ceylo
  • 362
  • 2
  • 11
0

Same problem here, but when I look inside the archive, found the app and the documentation (doccarchive). Fix: Disable "Build documentation during 'Build'" flag (only for Release).

quarac
  • 3,454
  • 3
  • 21
  • 25