(reposting from StackOverflow hoping someone from Apple may see this here - https://stackoverflow.com/questions/58422127/imessage-app-disallowed-nested-bundles-error-trying-to-archive-upload-with-bi):
===
I have an iMessage app (not an app with an iMessage extension) in which I am trying to add a binary framework - however when I add the framework to the iMessage app as instructed by Apple here:
https://developer.apple.com/library/archive/technotes/tn2435/_index.html
(see Embedding a Framework in an iMessage App section)
I cannot any longer successfully upload the project to App Store Connect - upload from the archive build returns the following errors:
The relevant text of the error is:
The bundle ... contains disallowed nested bundles. Refer to https://developer.apple.com/go/id=framework-imessage
That link (if you follow the instructions for using an newer Xcode version) leads you back to the Apple link I posted above about how to add frameworks to iMessage apps...
What do I need to change to the settings for the project or extension in order for the archive/upload process to succeed, while actually including the framework I need? I have searched on StackOverflow, and found a variety of posts related to cocoapods, or around various build settings of "Always Embed Swift Standard Libraries" that do not help.
I have reduced the problem down to a simple sample app you can see here, which builds and runs just fine but cannot be archived and uploaded:
https://www.dropbox.com/sh/jpa4oe7zlnb21wl/AACXkLbxIbayZUtJr3VDwO07a?dl=0
That directory contains a zip file of the project, and an image showing the error encountered (above).
Thanks for any thoughts on this! Really madddening as I have been able to get an app with an iMessage extension and the same framework uploaded just fine, it's only an iMessage app (which has no real app) I've run into this stumbling block.
P.S. Using Xcode11