Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Silicon #4

Closed
timeinpixels opened this issue May 25, 2021 · 14 comments
Closed

Apple Silicon #4

timeinpixels opened this issue May 25, 2021 · 14 comments

Comments

@timeinpixels
Copy link

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

@apotocki
Copy link
Owner

yes

@daviscdev
Copy link

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
Copy link
Owner

apotocki commented Jul 4, 2021

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
Copy link
Author

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

@apotocki
Copy link
Owner

apotocki commented Jul 5, 2021

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
Copy link

snyuryev commented Aug 4, 2021

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

@apotocki
Copy link
Owner

apotocki commented Aug 4, 2021

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

@snyuryev
Copy link

snyuryev commented Aug 4, 2021

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

@apotocki
Copy link
Owner

apotocki commented Aug 4, 2021

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

@snyuryev
Copy link

snyuryev commented Aug 4, 2021

да

@apotocki
Copy link
Owner

apotocki commented Aug 4, 2021

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

@mamunabcoder
Copy link

mamunabcoder commented Feb 9, 2022

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
Copy link
Owner

apotocki commented Feb 9, 2022

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

@apotocki
Copy link
Owner

apotocki commented Aug 4, 2022

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

@apotocki apotocki closed this as completed Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants