0

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 because the static libraries this includes in dependancies/build/ios/lib do not support arm64 for the simulator. The error in Xcode even points to "libsasl2.a".

My question is, how can I support arm64 on the simulator without using Rosetta or excluding arm64 support in build settings?

I believe I need to update both libetpan.a and libsasl2.a. I've managed to build libetpan, but that only outputs the libsasl2.a file. When I copy the new libsasl2.a file into the Postal folder, the error now points to libetpan.a being the issue. How can I get a new (arm64 supported) libetpan.a file?

Another method I've read about is using the existing versions of libetpan.a and libsasl2.a then using a lipo command in terminal to create an XCFramework. The issue is that I've only seen this done on .framework files. How can I do it with multiple .a files?


Update:

I've figured out that by deleting the built in "build" folder of the Postal demo project, updating the build-dependencies.sh file with an updated url, rev, ios_simarchs & ios_devicearchs, I can get the project to download a new version of libetpan that outputs the .a files I’m looking for. However, this then outputs both a iphoneos & iphonesimulator folder, each with their own static libraries. I’m now having an issue combining these to get everything working.

marc-medley
  • 8,931
  • 5
  • 60
  • 66
Richard Witherspoon
  • 4,082
  • 3
  • 17
  • 33

0 Answers0