apotocki / boost-iosx

Builds Boost C++ libraries and packages them as XCFrameworks for iOS (simulator and device), visionOS (simulator and device), macOS, and Mac Catalyst (Intel & Apple Silicon M1).
Boost Software License 1.0
60 stars 17 forks source link

Apple Silicon #4

Closed timeinpixels closed 2 years ago

timeinpixels commented 3 years ago

Is it possible to use the script to build the Apple Silicon version (M1)?

apotocki commented 3 years ago

yes

daviscdev commented 3 years ago

How can I do this in the script? I would like to generate a XCFramework containing both x86 and arm64 for iOS simulator to support iOS simulator on M1 Mac. Expecting result something like ios-arm64_x86_64-simulator or ios-arm64-simulator, ios-x86_64-simulator. Thanks.

apotocki commented 3 years ago

You don't need x86 on M1 Mac and don't need arm64 on x86 Mac, so there is no need to have binaries for both platforms in the same XCFramework. Just run the script on the target platform and it will build the required (only for the current platform) binaries.

timeinpixels commented 3 years ago

But if you deploy your app you want to make an universal app so that it runs on both intel and Apple silicon.

apotocki commented 3 years ago

What is the purpose of deploying an app built for iOS simulator on another machine? iOS simulator is a tool helping us during the development on a particular development machine. So I really don't see the case where it's worth having a universal binary for simulator.

snyuryev commented 3 years ago

The same question - how to build x86_64 simulator on Apple Silicon?

apotocki commented 3 years ago

Тот же встречный вопрос - Зачем!?

snyuryev commented 3 years ago

@apotocki например как вариант - собирается свой фреймворк, который должен работать на всех архитектурах.

apotocki commented 3 years ago

фреймворк будет распространяться в виде бинарников?

snyuryev commented 3 years ago

да

apotocki commented 3 years ago

Подобный подход не входит в моё понимание правильного распространения фреймворков. Поэтому реализации запрашиваемой кросскомпиляции пока не планируется. Однако, я рассмотрю pull request с соответствующей функциональностью, если такой появится.

mamunabcoder commented 2 years ago

I have tried to build the boost library but still it's not build for iOS, Can please help me to build this library?

it's urgent to me to build the boost library.

Even CocoaPods not install found some error to install pod

apotocki commented 2 years ago

Hi @mamunabcoder! Could you provide an installation log? (at least from the start of "pod install" until the first errors)

apotocki commented 2 years ago

now the script builds both x86 and arm64 libs for the iOS simulator and catalyst (1.79.0.3)