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

How to more accurately calculate a LiFePO4 12.8V battery percentage?

Grafana Data static const uint8_t lifepo4[NUM_BATT_READINGS][2] = { {144, 100}, {136, 100}, {134, 99}, {133, 90}, {132, 70}, {131, 40}, {130, 30}, {129, 20}, {128, 17}, {125, 14}, {120, 9}, {100, 0} }; int16_t…
Jdelmore
  • 11
  • 3
1
vote
0 answers

How to use lipo to strip simulator binaries from an xcframework?

I have a 3rd party fat xcframework and wish to strip the emulator portion from it. I used lipo on a .framework several years ago, however this time it's a .xcframework I am using. This command used to work with a .framework: lipo -info…
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
1
vote
1 answer

How can I make a universal binary using non-universal libs?

I'm trying to build a universal/fat executable binary and I'm linking against ncurses. I'm using ncurses from homebrew because the built in one doesn't support wide characters. The problem seems to be -L/path/to/arm/libs -L/path/to/intel/libs never…
majinnaibu
  • 2,832
  • 1
  • 18
  • 22
1
vote
0 answers

xcodebuild 14.2 create xcframework doesn't recognize mac catalyst static library build in rust

So I've build the following fat binary ➜ wallet-core git:(m/rust_fix) ✗ lipo -detailed_info build/local/catalyst/libwallet_core_rs.a Fat header in: build/local/catalyst/libwallet_core_rs.a fat_magic 0xcafebabe nfat_arch 2 architecture x86_64 …
roman Sztergbaum
  • 671
  • 1
  • 5
  • 11
1
vote
1 answer

Can't combine universal binary built using Clang++

sudo cmake -DCMAKE_BUILD_TYPE=Release -S . -B cmake-build-release -Wno-dev -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX sudo cmake --build ./cmake-build-release --config Release eventually leads to lipo being called, where it…
Tobi Akinyemi
  • 804
  • 1
  • 8
  • 24
1
vote
1 answer

Pods copying headers from x86_64 and arm64 folders in frameworks and causes multiple commands produce error

I am trying to add a custom framework to my iOS app. The framework includes code for both x86_64 architecture and arm64 architecture. When I try to build my project on my MacOS for simulator I receive multiple errors of the same form: As I see the…
Samo Kralj
  • 33
  • 3
1
vote
2 answers

How to load framework at runtime in Xcode?

I have a third party framework customx.framework (iOS) customx.framework (Simulator). To run project on simulator customx.framework (Simulator) to be imported & for device customx.framework (iOS) to be imported simultaneously importing is not…
Jack
  • 13,571
  • 6
  • 76
  • 98
1
vote
1 answer

Will the compiler strip the unrelated arch symbols from dependent static library in product binary file?

I'm a new in framework development, here is my case. I build a private static library to provide it to the vendors to link it. Currently, I build my library with arch armv7 and arm64 only, this should be work for vendors to debug it in iOS device…
Itachi
  • 5,777
  • 2
  • 37
  • 69
1
vote
1 answer

Fail to run 'lipo', Lib have the same architectures

I try to build static framework. So I run following commands: for device xcodebuild -project MyAppLib.xcodeproj -sdk iphoneos -target $PRODUCT_FRAMEWORK -configuration Release clean build for…
snaggs
  • 5,543
  • 17
  • 64
  • 127
1
vote
1 answer

iOS fat binaries and thinning out

I have an app that when using file, reports that it has 2 architectures in the Mach-O iPad:~/map/MyApp.app root# file MyApp MyApp: Mach-O fat file with 2 architectures EDIT - I have also checked this with Xcode's tool xcrun -sdk iphoneos lipo…
P Shaw
  • 121
  • 2
  • 14
1
vote
1 answer

Merging iOS .dylib into framework with lipo breaks bitcode recompilation

I'm trying to build a dynamic iOS framework manually from .dylib files. Binaries are created with cmake and xcodebuild and produce two .dylib files, one containing armv7, armv7s and arm64 and the other x86_64 and i386 architectures. Libraries are…
Legoless
  • 10,942
  • 7
  • 48
  • 68
1
vote
0 answers

xcode7: file was built for x86_64 which is not the architecture being linked (i386)

There are two floders named "Release-iphoneos" and "Release-iphonesimulator",and I use these commands to create common framework,but is still have some error "file was built for x86_64 which is not the architecture being linked (i386)" lipo -create…
1
vote
1 answer

How to make Xcode Run Script x86_64 compatible

Hello hello community! So here is my issue, welll not really an issue but the following Run Script compiles my static library and it works great! my only issue is that it doesnt compile it for the simulator and i get a x86_64 error. I know that i…
1
vote
2 answers

using lipo vs "valid architecture" while creating universal static library

I want to create a universal static library, say called sampleStaticLib.a, which gets included in an app called HelloWorld. The HelloWorld app needs to use the APIs defined in the static library, and needs to work on both iOS simulator and iOS…
user777355
  • 41
  • 5
1
vote
1 answer

Lipo working from terminal, but permission denied from bash script

If I run this in a terminal (on OSX Mavericks), it works fine: lipo -create /Release-iphoneos/libMyNewLibrary.a /Release-iphonesimulator/libMyNewLibrary.a -output /Merged/libMyNewLibrary.a I didn't use sudo when running it in the terminal. If I add…
TheBestBigAl
  • 1,231
  • 1
  • 16
  • 42