Non-public use of the API: the application refers to non-public characters: __XCTFailureFormat, __XCTFailureHandler

I am using action-native to create an iOS application. I successfully downloaded the application to the application store, but itunes sent me this letter saying that there are some problems in my application, so I can not download this assembly. Email

I searched for characters in my entire reaction project. No results were found, which matches __XCTFailureFormat or __XCTFailureHandler. How can i solve this?

+5
source share
1 answer

I do not think this is a problem with React. __XCTFailureFormat and __XCTFailureHandler are part of XCTest, a unit testing system.

I assume that you have unit test files compiled and embedded in the target that you use to release the AppStore.

In the project view in Xcode, select the target used for release on the App Store, then go to the Phase Build tab and find the files that should be in the Compile Source section.

Compiled Files List

Usually unit file name tests end with Test , so it’s easy to use a search registered to filter the list. Then simply delete these files and re-upload the new binary to the App Store.

+3
source

Source: https://habr.com/ru/post/1272617/


All Articles