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
base: master
Are you sure you want to change the base?
Conversation
0192f94
to
dab5c06
Compare
@@ -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")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes crashing examples
dab5c06
to
a798b84
Compare
@@ -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: |
There was a problem hiding this comment.
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
a798b84
to
09c5e41
Compare
This reverts commit 8cb7445.
09c5e41
to
2ff9a61
Compare
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#322It 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
Note: I've tested everything on M1 Macbook Pro (Apple Silicon)