Questions tagged [lipo]

`lipo` command available in `macOS` that creates or operates on multi-architecture files.

lipo command available in macOS creates or operates on multi-architecture files. It only ever produces one output file, and never alters the input file. The operations that lipo performs are: listing the architecture types in a universal file; creating a single universal file from one or more input files; thinning out a single universal file to one specified architecture type; and extracting, replacing, and/or removing architectures types from the input file to create a single new universal output file.

68 questions
1
vote
1 answer

Undefined symbols for architecture i386 - Lipo error?

I have compiled libclang.a for i386 and armv7. I'm able to build my ios app with i386 libclang.so but it can't be started because of ".dylib not found" error. Then i decided to create fat lib using lipo: lipo -create ../i386/libclang.a…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
1
vote
1 answer

Lipo error with additional schemes in Xcode

I want to create additional build configurations and schemes in my Xcode project in order to build specific archives for TestFlight. One connected to our DEV environment for internal testers, and one connected to our PROD environment for external…
Sebastien
  • 3,583
  • 4
  • 43
  • 82
1
vote
0 answers

Does lipo increase final binary size?

I know I can use lipo to create a universal static library that I can then include in my project. It's convenient because it builds for the simulator or device, but will it make my project's archive bigger than if I had (a) included the static…
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
1
vote
1 answer

How to use lipo command line tool to view my project architectures?

I'm uploading an application to the application loader but i get the error "Apps that include amr64 architecture should include armv7 and armv7s" I have already added these three architectures in the build settings but i'm still getting the same…
devdev101
  • 241
  • 1
  • 5
  • 14
0
votes
0 answers

How to use lipo to convert c++ output file from arm64 to x86_32/ x86_64

I started programming with c++ since a while but was using Xcode only or terminal occasionally to compile my .cpp file. Recently, our instructor suggested we use Valgrind for memory leaks but I figured Valgrind was unavailable for my M2 Mac. So,…
SilianRail
  • 29
  • 4
0
votes
0 answers

Cocoapod arm64 simulator support

I’m trying to use this cocoapod called Postal that is no longer maintained. If I download the code and try to run the demo project on Xcode 14.2 I get "building for iOS Simulator, but linking in object file built for iOS, file". I understand this is…
Richard Witherspoon
  • 4,082
  • 3
  • 17
  • 33
0
votes
0 answers

Can't build universal library for IOS application using `cargo lipo` in flutter_rust_bridge template

I'm using the flutter_rust_bridge template to run my rust project on an app. I managed to got it running on Android but IOS gives me trouble. I'm now trying to build a universal library for my rust project using cargo lipo but I get this error which…
0
votes
1 answer

"command not found" running universal console app on macOS with Apple Silicon chip

I have the issue on my library – DllNotFoundException on Apple Silicon chips. It's fixed now but we observed strange behavior trying to run simple console application on macOS with Apple Silicon chip: sudo ./LoopbackDevice "MIDI A" "MIDI B" "MIDI C"…
Maxim
  • 1,995
  • 1
  • 19
  • 24
0
votes
2 answers

Difference between lipo -thin and -extract

What is the difference between lipo -thin arch_type and lipo -extract arch_type [-extract arch_type...] when used to get a "single architecture" static library from a fat static library? The documentation says: -extract arch_type [-extract…
alessionossa
  • 923
  • 2
  • 15
  • 41
0
votes
0 answers

How to use the lipo command in debug view hierarchy with swift

In Objective-C,I can use the following command to view the properties of some view objects: // 1. Sending messages directly to memory addresses po [0x10daab000 contentInset] // 2. or convert to the corresponding type and then send the message. po…
Rakuyo
  • 390
  • 3
  • 15
0
votes
2 answers

Build FFTW for Apple M1 and the older intel devices

I built FFTW on my Apple m1 computer. When I run lipo -info libfftw3.a (which is located in .libs/libfftw3.a). It says it is of architecture ARM64. In my Xcode I set the build target to 10.11, for backward compatibility. Now when I add the FFTW…
Thinium
  • 171
  • 1
  • 14
0
votes
0 answers

lipo - input file must be a fat file when the -thin option is specified

I am trying to extract somethinh from a UNIX Executable File (vmware-vmx). When i try to execute lipo vmware-vmx -thin i386 -output vmware_x64, I'm getting an error input file (vmware-vmx) must be a fat file when the -thin option is specified What…
0
votes
1 answer

arm64/x86_64 universal binary created with lipo is missing deployment target

Context I'm converting several libraries/frameworks that my Mac app uses to be Universal Binaries for the new Apple Silicon Macs. Problem I have two versions of a binary framework: one compiled for x86_64 and one compiled for arm64. I always check…
Bryan
  • 4,628
  • 3
  • 36
  • 62
0
votes
0 answers

input file XXXX must be a fat file when the -remove option is specified

I am trying to publish our app to testflight/appstore by fastlane and i get these two errors: fatal error: lipo: input file (==FILEPATH==/CommonCrypto.framework/CommonCrypto) must be a fat file when the -remove option is specified fatal error:…
Aleksander Aleksic
  • 1,282
  • 3
  • 12
  • 18
0
votes
1 answer

What is the difference between Build Active Architecture Only -> No and creating a fat binary by using lipo?

Let's imagine that we're creating a static library in Xcode and in the Build Settings we set Build Active Architecture Only to No. Why does it still produce a library suitable only for the device currently selected (a simulator or real device)? What…
Andrey Chernukha
  • 21,488
  • 17
  • 97
  • 161