Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

file was built for arm64 which is not the architecture being linked (x86_64)

I am building a framework first to use in my ios simulator. However I get this error when importing it into the main project:

file was built for arm64 which is not the architecture being linked (x86_64)

Here is the build info of my framework: enter image description here

UPDATE:

I created a universal framework using this technique: https://medium.com/@syshen/create-an-ios-universal-framework-148eb130a46c but I'm still getting the error

UPDATE: Results from running file on the binary:

hunterp$ file dinkle 
dinkle: Mach-O universal binary with 2 architectures
dinkle (for architecture x86_64):   Mach-O 64-bit dynamically linked shared library x86_64
dinkle (for architecture arm64):    Mach-O 64-bit dynamically linked shared library
like image 876
hunterp Avatar asked May 08 '15 07:05

hunterp


1 Answers

To create framework and convert .h file into .a fat file. Compile your project with simulator target and device target ,after these two tasks you have to join to make universal file with shell.

like image 115
Vivek Yadav Avatar answered Sep 22 '22 11:09

Vivek Yadav