Framework compilation with Command CodeSign failed with a nonzero exit code

I am trying to extract a protocol from an app to be able to use it in a siri intent. Yet when I compile it I get:

note: Injecting stub binary into codeless framework (in target 'Virtual Tags Framework' from project 'Virtual Tags Framework') /Users/fabriziobartolomucci/Library/Developer/Xcode/DerivedData/Virtual_Tags_Framework-chxutmulwgujeiceazyyzaphwner/Build/Products/Debug-iphonesimulator/Virtual_Tags_Framework.framework/Frameworks/ARKit.framework/Versions/A: bundle format unrecognized, invalid, or unsuitable Command CodeSign failed with a nonzero exit code

Debug-iphonesimulator/Virtual_Tags_Framework.framework/Frameworks/ARKit.framework

This path fragment shows that your Virtual Tags framework is embedding a copy of the ARKit system framework into itself. In general on iOS, you can't embed a framework inside of another framework, and also, you should never include a copy of a system framework in your app.

You can address this with a simple configuration change to your project. Look at the Frameworks and Libraries section of your app target (on the General tab in Xcode), and make sure to set any system frameworks to Do Not Embed instead of Embed and Sign.

—Ed Ford,  DTS Engineer

Framework compilation with Command CodeSign failed with a nonzero exit code
 
 
Q