Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
396 views
in Technique[技术] by (71.8m points)

ios - App rejected for for non-public API usage after including react-native-purchases

Our app uses [email protected]. After including the library and uploading the build the app got rejected by Apple for non-public API usage. The message is:

Non-public API usage - The app references non-public selectors in app: configure, constants, isAnonymous, isPassthrough, removeValuesForKeys:completion:, resetWithCompletionBlock:.

isAnonymous is a method in react-native-purchases. Some of the other names are just normal public things in @react-native-community/async-storage

We cannot use react-native-purchases versions newer than 3.3.3 because it is incompatible with our react and react-native dependencies.

Here are our dependencies:

  "dependencies": {
    "@react-native-community/async-storage": "^1.5.0",
    "babel-plugin-transform-es2015-block-scoping": "6.15.0",
    "react": "^16.8.3",
    "react-native": "^0.59.10",
    "react-native-camera": "^2.11.2",
    "react-native-device-info": "^2.2.2",
    "react-native-google-analytics-bridge": "^7.1.0",
    "react-native-image-view": "^2.1.5",
    "react-native-keyboard-aware-scroll-view": "^0.8.0",
    "react-native-navigation": "^2.22.3",
    "react-native-purchases": "3.3.3",
    "react-native-qrcode-svg": "^6.0.3",
    "react-native-svg": "^11.0.1",
    "react-native-view-pdf": "^0.9.1",
    "react-native-webview": "^6.3.1"
  }

What should we do to resolve the issue?

question from:https://stackoverflow.com/questions/65924950/app-rejected-for-for-non-public-api-usage-after-including-react-native-purchases

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

In the end it turned out to be a problem with XCode project. Due to the age of the project and many modifications the file got corrupted somehow. Re-creating XCode project made things work again.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...