iOS Security.framework arm64 architecture issue

377 Views Asked by At

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:

Xcode 10.2 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.

1

There are 1 best solutions below

4
Allen Theobald On

A couple of things to try:

  1. Set Architectures to armv7 armv7s, Build Active Architecture Only to NO, for every target in the project, including every one in Pods:

ARCHS = armv7 armv7s

VALID_ARCHS = armv6 armv7 armv7s arm64

  1. Clean project, shutdown Xcode, then find your application in ~/Library/Developer/Xcode/DerivedData/ and move it trash then empty it.