title: NSExtension - Runtime warning - [NSXPCDecoder validateAllowedClass:forKey:]
body: <p>I am using a share extension and I get the following runtime warning:</p>
  <p>Note: Even adding the share extension on a new project and running throws the same runtime warning</p>
  <pre><code>[Foundation] *** -[NSXPCDecoder validateAllowedClass:forKey:]: NSSecureCoding allowed classes list contains [NSObject class], which bypasses security by allowing any Objective-C class to be implicitly decoded. Consider reducing the scope of allowed classes during decoding by listing only the classes you expect to decode, or a more specific base class than NSObject. This will become an error in the future. Allowed class list: {(
      &quot;'NSObject' (0x7fff862bc6e8) [/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib]&quot;
  )}
  </code></pre>
  <p>Given below is the Extension's info.plist</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
  &lt;plist version=&quot;1.0&quot;&gt;
  &lt;dict&gt;
      &lt;key&gt;NSExtension&lt;/key&gt;
      &lt;dict&gt;
          &lt;key&gt;NSExtensionAttributes&lt;/key&gt;
          &lt;dict&gt;
              &lt;key&gt;NSExtensionActivationRule&lt;/key&gt;
              &lt;dict&gt;
                  &lt;key&gt;NSExtensionActivationSupportsWebURLWithMaxCount&lt;/key&gt;
                  &lt;integer&gt;1&lt;/integer&gt;
              &lt;/dict&gt;
          &lt;/dict&gt;
          &lt;key&gt;NSExtensionMainStoryboard&lt;/key&gt;
          &lt;string&gt;MainInterface&lt;/string&gt;
          &lt;key&gt;NSExtensionPointIdentifier&lt;/key&gt;
          &lt;string&gt;com.apple.share-services&lt;/string&gt;
      &lt;/dict&gt;
  &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>
  <h2>Questions:</h2>
  <ul>
  <li>What should I do to fix this warning?</li>
  </ul>