Application builded using Dynamic framework not submitted to app store

Hi,

I have created Dynamic Framework , While importing this dynamic framework into Application it needs to be add in Embedded Binaries.

it is working with Both Device and Simulator but when i archive and make .IPA file to submit , I got Below error while submitting app to app store.


1) ERROR ITMS-90087: "Unsupported Architectures. The executable for sample.app/Frameworks/customFramework.framework contains unsupported architectures '[x86_64, i386]'.


2) ERROR ITMS-90209: "Invalid Segment Alignment. The app binary at 'sample.app/Frameworks/customFramework.framework/CustomFramework' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version.


3) ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker.”


4) WARNING ITMS-90080: "The executable 'Payload/sample.app/Frameworks/customFramework.framework' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information refer to Technical Q&A QA1788 - Building a Position Independent Executable in the iOS Developer Library."


Any insights into this would be really helpful.

The main problem is that you've built the framework to include binaries for both the simulator and devices. This isn't officially supported at all (because the iOS simulator is actually macOS platform, while devices are iOS platform). Your framework must contain only ARM architectures for iOS platform.


Try building the framework again with just the correct architectures and platform. It's possible all the other errors will go away too.

Thanks QuinceyMorris,


We created only Generic device based Dynamic framework, Not include or merge any simulator Slice and it removes all error but after submitting app to itunes connects it shows like below: Invalid binary in itunes connect



Can you please help me out of this issue? Any help is appriciated.

I don't know. There isn't enough information to suggest what might be wrong.

Thanks a lot QuinceyMorris

Application builded using Dynamic framework not submitted to app store
 
 
Q