I’ve been submitting my app to the App Store for test flight and after build 11, I’ve been getting failures via email from Apple:
Non-public API usage: The app conta
I used soffes/CommonCrypto with Carthage. Remove the CommonCrypto.framework are work for me, and please check this link how to import commoncryto framework: http://ioscake.com/importing-commoncrypto-in-a-swift-framework.html
After a LOT of investigations on this part we finally found the problem for this issue: It seems like Apple gives this error for applications that suport both 32 and 64 bits.
Apple gave this reminder for Mac Appstore, but it seems that iOS applications are affected as well.
So a solution for this is to support bitcode OR to drop support for 32 bit devices by removing support for ARMV7 and ARMV7S or bellow from Valid Architectures from build settings. This will mean your application will work only on iPhone 5S and above. I hope this helps someone. Thank you!
I was able to resolve it for myself, here's what I did:
I hope that helps!
Seems like the problem was fixed in the iTunes Connect backend. After build 45 we got through yesterday evening. Tried to find out what fixed the problem from all those changes - seems to go through with the inital build as well now.
So three days I could have spent outside...
Recently from 26th Jan 2018 Without any notice or announcement apple did some change related swift old code does not longer work with submission of application at app-store. I did not use CommonCrypto
in my project at all
I am also face that issue and i do lots of search and posting a question at apple forums and various platform about Non-public API usage: The app contains one or more corrupted binaries. Rebuild the app and resubmit
After get to know that for that kind of Invalid Binary rejection have not single solution. I mention some possible solution that works for some user recently.
swift4
i get following warning:The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "appname" target.
For fix this warning i use that answer: The use of Swift 3 @objc inference in Swift 4 mode is deprecated?
After that i need to add @objc
in swift3
class public method that i used in my objective-c
class using bridge
I also check other warning in left side panel there is some other dependency warning of application target might be that also helpfup for other.
Hope this answer can useful for some of user who does not find the answer yet and that might be helpful.
I found the solution by my self after uploading the 9th build.
You can check how to use @objc at swift class check this link: The use of Swift 3 @objc inference in Swift 4 mode is deprecated?
Then I have change unused profiles.
Then I upload the app and it works. Let me know if anyone need help