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

Add Apple Silicon iOS simulator build support. #68

Merged
merged 1 commit into from
Jul 10, 2021

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Jan 27, 2021

Adds ARM64 iOS simulator toolchain and Mono builds.

Depends on godotengine/godot-mono-builds#30

Dockerfile.ios Outdated
Comment on lines 19 to 23
#iOS arm64 simulator
sed -i 's/miphoneos-version-min/mios-simulator-version-min/g' usage_examples/wrapper.c && \
usage_examples/ios_toolchain/build.sh /root/files/iPhoneSimulator${IOS_SDK}.sdk.tar.xz arm64 && \
mkdir -p /root/ioscross/arm64_sim && \
mv usage_examples/ios_toolchain/target/* /root/ioscross/arm64_sim && \
mkdir /root/ioscross/arm64_sim/usr && \
ln -s /root/ioscross/arm64_sim/bin /root/ioscross/arm64_sim/usr/bin && \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like osxcross toolchain do not support ARM64 iOS Simulator target. Toolchain built with Simulator SDK produce incompatible iOS binaries, and it's not building with arm64-apple-ios-simulator target at all.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Faced the same problem with WIP tvOS arm64 simulator build container.

There is an existing issue: tpoechtrager/cctools-port#102 so it seems like arm64 support might appear in future.

Dockerfile.ios Outdated Show resolved Hide resolved
@neikeq
Copy link

neikeq commented Jun 2, 2021

Are you sure comments won't break the \ escape for new lines?

@bruvzg
Copy link
Member Author

bruvzg commented Jun 3, 2021

Are you sure comments won't break the \ escape for new lines?

It seems to work, but it might be only because of && (which should work without any line breaks), I have remove it in case it's not entirely correct.

@bruvzg bruvzg changed the title [WIP] Add Apple Silicon iOS simulator build support. Add Apple Silicon iOS simulator build support. Jun 3, 2021
@bruvzg bruvzg marked this pull request as ready for review June 3, 2021 05:19
@akien-mga akien-mga merged commit af550ac into godotengine:main Jul 10, 2021
@akien-mga
Copy link
Member

Thanks!

akien-mga added a commit that referenced this pull request Jul 12, 2021
akien-mga added a commit that referenced this pull request Jul 12, 2021
@bruvzg bruvzg deleted the m1-ios-simulator-b branch November 5, 2021 13:10
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

Successfully merging this pull request may close these issues.

None yet

4 participants