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
187
votes
4 answers

Xcode 12.3: Building for iOS Simulator, but the linked and embedded framework was built for iOS + iOS Simulator

I have an app using a linked and embedded custom framework. The app built properly for iOS devices and simulators until Xcode 12.2. Starting from Xcode 12.3 however, I'm getting the following error: Building for iOS Simulator, but the linked and…
spassas
  • 4,778
  • 2
  • 31
  • 39
79
votes
3 answers

How to check if a static library is built for 64-bit?

I just built a static library for iOS with the build setting for Architectures set to $(ARCHS_STANDARD_INCLUDING_64_BIT). I want to make sure that the .a library is properly including that architecture, but when i run lipo -info on it, I…
Joel Fischer
  • 6,521
  • 5
  • 35
  • 46
50
votes
21 answers

Lipo Error!! can't open input file

My application was working perfectly fine, then I started integrating SDK for push notification and stop the integration in between. I even deleted the SDK from my project and trying to archive or run the app, it gives me the error: lipo Error!!…
Zac24
  • 2,514
  • 1
  • 23
  • 28
26
votes
5 answers

xcrun/lipo freezes with OS X Mavericks and XCode 4.x

Been trying to install psycopg2 with either easy_install or pip, and the terminal gets stuck in a loop between xcrun and lipo. sidwyn$ sudo easy_install psycopg2 Searching for psycopg2 Reading https://pypi.python.org/simple/psycopg2/ Reading…
Sidwyn Koh
  • 1,742
  • 2
  • 21
  • 29
17
votes
4 answers

iOS 14, lipo error while creating library for both device and simulator

We have been using lipo command to create a framework which works on both device and simulator when integrated in other project. following are the build commands used to generate device and simulator builds xcodebuild -target SampleSDK…
Rajesh Rs
  • 1,301
  • 5
  • 24
  • 48
17
votes
0 answers

Creating fat files: libtool vs lipo (Should I prefer lipo?)

I wonder what would be the difference when using: lipo -create i386/libAwesome.a armv7/libAwesome.a -o fat/libAwesome.a and libtool -static i386/libAwesome.a armv7/libAwesome.a -o fat/libAwesome.a I have the impression that lipo is more general,…
nacho4d
  • 43,720
  • 45
  • 157
  • 240
8
votes
1 answer

Creating a Universal Objective-C framework, LIPO can't map input file

Been researching this for the past day without success, hopefully someone can provide a few pointers on this. I have inherited an old objC static library project which I'm trying to convert to a dynamic, universal framework. Created a new target for…
David Homes
  • 2,725
  • 8
  • 33
  • 53
8
votes
1 answer

Is usage of "lipo" command recommended by Apple?

When we develop a dynamic framework and distribute it to reuse. We combine simulator (i386 and x86_64) and device(arm7, arm7s and arm64) architectures into one. So that developer can easily run an app on simulator and device without any error. If we…
Developer
  • 81
  • 1
  • 2
7
votes
1 answer

iOS universal framework with iphoneos and iphonesimulator architectures

xcodebuild can build a project with sdk set to either iphoneos or iphonesimulator but not both, so in order to generate a framework containing armv7 arm64 and i386 x86_64 architectures, I have to run xcodebuild twice and then use lipo to combine all…
Bob
  • 8,424
  • 17
  • 72
  • 110
7
votes
3 answers

Lipo error when coverting iOS project to ARC

I'm trying to convert my iOs project to use ARC but am receiving a lipo error below is the command and error Command: CreateUniversalBinary…
Sami
  • 1,374
  • 1
  • 16
  • 43
6
votes
0 answers

How to create a fat binary on xcode 10

I am trying to make a fat binary of my library using XCode 10 (10A255) Using Fastlane: xcodebuild( workspace: "Mylibrary.xcworkspace", scheme: "Mylibrary", configuration: "Release", clean: true, archive: true …
Rifinio
  • 943
  • 12
  • 15
6
votes
1 answer

iOS fat binaries: should every arch include bitcode?

When building a library that is to be used in bitcode-enabled apps, does each arch in the fat binary need to be built with -fembed-bitcode or only one of them? One of them because the bitcode is architecture-independent and will just be…
OrangeDog
  • 36,653
  • 12
  • 122
  • 207
6
votes
4 answers

Lipo Error: can't open input file

I'm getting this error: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo: can't open input file:…
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
5
votes
1 answer

Creating Universal Fat Framework lipo: can't create temporary output file

On creating Fat framework from aggregate target, I am following the build phase script from this gist link with minor changes on my script link. On target build, Xcode is showing fetal error: lipo: can't create temporary output file:…
kaushal
  • 1,553
  • 18
  • 25
4
votes
1 answer

build a single .a for simulator and device containing arm64 (targeting M1 simulator too) possible?

We are facing problems with lipo/libtool when trying to build a fat static lib for simulator and device. Before M1 arm64 all went fine with an armv7/arm64 slices for the device and an x86_64 slice for the simulator. Now lipo can't spot the…
Leo
  • 925
  • 10
  • 24
1
2 3 4 5