title: itunes store operation failed the app references non-public selectors in payload : setResult; taskWithResult
body: <p>I am getting an error while uploading to app-store using Xcode :</p>
  
  <pre><code>itunes store operation failed the app references non-public selectors in payload: setResult; taskWithResult
  </code></pre>
  
  <p>With reference to <a href="https://stackoverflow.com/questions/33775536/ios-app-non-public-api-usage-app-references-non-public-selectors-cancelbutto">iOS app - Non-Public API usage- app references non-public selectors: cancelButtonClicked, setResult:</a></p>
  
  <p>I found :
  PatienPortal_ios_build_new jenkins$ grep -Rnis 'etResult:' *</p>
  
  <pre><code>Binary file build/Physician Portal.xcarchive/Products/Applications/Physician Portal.app/Physician Portal matches
  Binary file node_modules/cordova-plugin-facebook/src/ios/Bolts.framework/Bolts matches
  node_modules/cordova-plugin-facebook/src/ios/Bolts.framework/Headers/BFTaskCompletionSource.h:37:- (void)setResult:(id)result;
  node_modules/cordova-plugin-facebook/src/ios/Bolts.framework/Headers/BFTaskCompletionSource.h:63:- (BOOL)trySetResult:(id)result;
  Binary file node_modules/cordova-plugin-facebook/src/ios/FBSDKCoreKit.framework/FBSDKCoreKit matches
  Binary file platforms/ios/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Physician Portal/IntermediateBuildFilesPath/Physician Portal.build/Release-iphoneos/Physician Portal.build/Objects-normal/arm64/Physician Portal matches
  Binary file platforms/ios/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Physician Portal/IntermediateBuildFilesPath/Physician Portal.build/Release-iphoneos/Physician Portal.build/Objects-normal/armv7/Physician Portal matches
  Binary file platforms/ios/Physician Portal/Plugins/cordova-plugin-facebook/FBSDKCoreKit.framework/FBSDKCoreKit matches
  Binary file plugins/cordova-plugin-facebook/src/ios/Bolts.framework/Bolts matches
  plugins/cordova-plugin-facebook/src/ios/Bolts.framework/Headers/BFTaskCompletionSource.h:37:- (void)setResult:(id)result;
  plugins/cordova-plugin-facebook/src/ios/Bolts.framework/Headers/BFTaskCompletionSource.h:63:- (BOOL)trySetResult:(id)result;
  Binary file plugins/cordova-plugin-facebook/src/ios/FBSDKCoreKit.framework/FBSDKCoreKit matches
  </code></pre>
  
  <p>This means that issue is due to Facebook Plugin!</p>
  
  <p>Furthermore, I added my bundle id to .plist reference  <a href="https://developers.facebook.com" rel="noreferrer">https://developers.facebook.com</a> :</p>
  
  <pre><code>&lt;key&gt;CFBundleURLTypes&lt;/key&gt;
  &lt;array&gt;
    &lt;dict&gt;
    &lt;key&gt;CFBundleURLSchemes&lt;/key&gt;
    &lt;array&gt;
      &lt;string&gt;fbxxxxxx&lt;/string&gt;
    &lt;/array&gt;
    &lt;/dict&gt;
  &lt;/array&gt;
  &lt;key&gt;FacebookAppID&lt;/key&gt;
  &lt;string&gt;xxxxx&lt;/string&gt;
  &lt;key&gt;FacebookDisplayName&lt;/key&gt;
  &lt;string&gt;PC360-PatientPortal&lt;/string&gt;
  </code></pre>
  
  <p>Still, I am getting same error! So Please help me out, I am stuck badly, what to do next?</p>
  
  <p>Note: I am using Xcode 9 and building Cordova project using Jenkins. </p>