I am getting an error while uploading to app-store using Xcode :
itunes store operation failed the app references non-public selectors in payload: setResult; taskWithResult
With reference to iOS app - Non-Public API usage- app references non-public selectors: cancelButtonClicked, setResult:
I found : PatienPortal_ios_build_new jenkins$ grep -Rnis 'etResult:' *
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
This means that issue is due to Facebook Plugin!
Furthermore, I added my bundle id to .plist reference https://developers.facebook.com :
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fbxxxxxx</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>xxxxx</string>
<key>FacebookDisplayName</key>
<string>PC360-PatientPortal</string>
Still, I am getting same error! So Please help me out, I am stuck badly, what to do next?
Note: I am using Xcode 9 and building Cordova project using Jenkins.
You have to contact Apple on resolution center and tell them that you are not using any private API, then explain that the calls to setResult and taskWithResult are calls to the Facebook Bolts SDK, not to private APIs.
You can try to send them the link of the bug report opened on Facebook SDK site.
That usually work, but if it doesn't work you will have to remove the plugin adding that SDK and try with another plugin that doesn't use Bolts.
Another issue where people complains about apps being rejected because of this
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments