I am trying to compile an app on an iPhone 6 device under iOS 11.4.
This app uses a framework of my own compiled for architectures armv7 and arm64 (confirmed with lipo -info) and targetted for iOS8+.
In this framework, I use kSecImportExportPassphrase, SecPKCS12Import and kSecImportItemIdentity from the Security.framework of iOS.
When I compile in Xcode 10.2, I get this error:
If someone get an idea of what is going on?
It is like the Security.framework is not compiled for arm64 which is quite impossible.
Regards.

A couple of things to try:
Build Active Architecture Onlyto NO, for every target in the project, including every one in Pods:ARCHS = armv7 armv7sVALID_ARCHS = armv6 armv7 armv7s arm64~/Library/Developer/Xcode/DerivedData/and move it trash then empty it.