71 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
77
views
Do I need a dSYM file for a universal binary or is a dSYM for each arch enough?
I have a C++ application that compiles for x86_64, and for arm64, each compilation produces its .dSYM folder for debug symbols. I then join each binary with lipo, resulting in a universal binary.
Do I ...
0
votes
0
answers
198
views
Error trying to run a FAT binary on iOS device: incompatible architecture message while correct architecture is included
I've been trying to Google similar issues, but it seems I'm the only one so far, to my surprise ...
I am trying to build Tesseract for iOS. There's various build scripts online that I've tried, but ...
2
votes
0
answers
720
views
How does "arch -arch" work to enable Rosetta and force binary architecture?
When using Rosetta on macOS running on an ARM processor, the arch command can be used to force a wrapped command to execute as a specific architecture. In other words, arch -arch x86_64 mycommand will ...
0
votes
1
answer
1k
views
Unable to build XCFramework for my existing project that was building .Framework file from Static Library
I am relatively new to iOS and have been trying really hard to diagnose and find a way to start generating XCFramework instead of .Framework that was being built earlier until xCode 10.
I have went ...
1
vote
1
answer
307
views
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, ...
0
votes
0
answers
190
views
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 ...
1
vote
0
answers
354
views
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 ...
1
vote
1
answer
353
views
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 ...
1
vote
0
answers
407
views
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 ...
2
votes
1
answer
261
views
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 ...
1
vote
1
answer
89
views
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 ...
0
votes
1
answer
112
views
"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:
...
1
vote
2
answers
946
views
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) ...
6
votes
1
answer
1k
views
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 ...
Leo's user avatar
- 1,035
1
vote
2
answers
2k
views
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 ...