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

feat: bring back ios-simulator support #3278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

okwasniewski
Copy link

@okwasniewski okwasniewski commented Apr 12, 2024

This PR reintroduces ios/tvos simulator support to bgfx. It will allow developers to develop and extend the framework easily.

Corresponding PR to bx: bkaradzic/bx#322

It should fix this issue: #3239

Test plan

Generate test projects using GENie (I've used the latest version from main):

iOS:

 ~/GENie/bin/darwin/genie --with-combined-examples --xcode=ios --gcc=ios-simulator xcode15

tvOS:

 ~/GENie/bin/darwin/genie --with-combined-examples --xcode=tvos --gcc=tvos-simulator xcode15

Screenshots

CleanShot 2024-04-12 at 14 35 08@2x

CleanShot 2024-04-12 at 14 39 13@2x

Note: I've tested everything on M1 Macbook Pro (Apple Silicon)

@@ -414,6 +414,11 @@ function exampleProjectDefaults()
"-framework UIKit",
"-weak_framework Metal",
}
xcodecopyresources {
{ "shaders/metal", {
os.matchfiles(path.join(BGFX_DIR, "examples/runtime/shaders/metal/**.bin"))
Copy link
Author

Choose a reason for hiding this comment

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

This fixes crashing examples

@@ -215,6 +216,14 @@ ios-arm64-release: .build/projects/gmake-ios-arm64 ## Build - iOS ARM64 Release
$(MAKE) -R -C .build/projects/gmake-ios-arm64 config=release
ios-arm64: ios-arm64-debug ios-arm64-release ## Build - iOS ARM64 Debug and Release

.build/projects/gmake-ios-simulator:
Copy link
Author

Choose a reason for hiding this comment

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

I'm reintroducing only ios-simulator (64 bit) support as 32-bit simulators were discontinued.

iOS 10, which was released in 2016, was the last version of iOS to run 32-bit apps. As of iOS 11, all 32-bit apps installed on device will not launch.

Source: https://developer.apple.com/news/upcoming-requirements/?id=06062022a

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

1 participant