Missing required x86_64 architecture

I have an old project that I recompiled for uodate and now it shows this error message:

…. missing required architecture x86_64 in file myLibrary.a …. 

I tried various tricks that I could find on the net after searching the missing required architecture x86_64 in file , but without success. Does anyone know how to solve the problem correctly?

I am using Xcode Version 7.0.1.

Duration:

 lipo -info myLibrary.a 

shows:

 Architectures in the fat file: myLibrary.a are: armv7 arm64 

I managed to add armv7s but not x86_64.

+6
source share
1 answer

You are trying to create a universal library and do not have all the architectures armv7 armv7s i386 x86_64 arm64 . The compiler complains when creating with 64-bit architecture.

To fix this, add the following parameters of your architecture to the static library project:

enter image description here

This requires manually adding architectures to something like this:

enter image description here

Create a library with this architecture on both the device and the simulator, create the library using lipo -create -output "myLibrary.a" ./Simulator/myLibrary.a ./Device/myLibrary.a and use it.

+4
source

All Articles