1. Home
  2. Foxit PDF SDK for iOS
  3. How to fix the “Invalid Binary Architecture” error when publishing app to Apple App Store?

How to fix the “Invalid Binary Architecture” error when publishing app to Apple App Store?

Foxit SDK Framwork includes arm64, armv7, i386, and x86_64 architectures, but the i386, and x86_64 architectures are not allowed to be uploaded to Apple App Store so that you will meet the “Invalid Binary Architecture” error if you use the framework directly.

To solve this problem, Foxit SDK provides a script named “prepare-framework-to-publish-to-appstore.sh” found in the “libs” folder to strip the arm architectures, and then output the library to the directory “./device/FoxitRDK.framework“. You should use this library in your project and then you can publish your app to Apple App Store.

Updated on October 4, 2019

Was this article helpful?

Related Articles

Ready to try Foxit PDF SDK?
Click the link below to download your trial
Free Trial