Skip to content

Commit dfedfe7

Browse files
committed
Merge pull request #102179 from bruvzg/remove_sim
Disable Metal and Vulkan renderers in simulator builds. Remove simulator support from editor/exporter.
2 parents a28316c + 9310d25 commit dfedfe7

File tree

4 files changed

+16
-388
lines changed

4 files changed

+16
-388
lines changed

platform/ios/detect.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ def configure(env: "SConsEnvironment"):
151151
env.Prepend(CPPPATH=["#platform/ios"])
152152
env.Append(CPPDEFINES=["IOS_ENABLED", "UNIX_ENABLED", "COREAUDIO_ENABLED"])
153153

154-
if env["metal"] and env["arch"] != "arm64":
155-
print_warning("Target architecture '{}' does not support the Metal rendering driver".format(env["arch"]))
154+
if env["metal"] and env["ios_simulator"]:
155+
print_warning("iOS simulator does not support the Metal rendering driver")
156156
env["metal"] = False
157157

158158
if env["metal"]:
@@ -166,11 +166,16 @@ def configure(env: "SConsEnvironment"):
166166
)
167167
env.Prepend(CPPPATH=["#thirdparty/spirv-cross"])
168168

169+
if env["vulkan"] and env["ios_simulator"]:
170+
print_warning("iOS simulator does not support the Vulkan rendering driver")
171+
env["vulkan"] = False
172+
169173
if env["vulkan"]:
170174
env.AppendUnique(CPPDEFINES=["VULKAN_ENABLED", "RD_ENABLED"])
171175

172176
if env["opengl3"]:
173177
env.Append(CPPDEFINES=["GLES3_ENABLED", "GLES_SILENCE_DEPRECATION"])
178+
env.Append(CCFLAGS=["-Wno-module-import-in-extern-c"])
174179
env.Prepend(
175180
CPPPATH=[
176181
"$IOS_SDK_PATH/System/Library/Frameworks/OpenGLES.framework/Headers",

platform/ios/doc_classes/EditorExportPlatformIOS.xml

-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@
4141
<member name="application/export_project_only" type="bool" setter="" getter="">
4242
If [code]true[/code], exports iOS project files without building an XCArchive or [code].ipa[/code] file. If [code]false[/code], exports iOS project files and builds an XCArchive and [code].ipa[/code] file at the same time. When combining Godot with Fastlane or other build pipelines, you may want to set this to [code]true[/code].
4343
</member>
44-
<member name="application/generate_simulator_library_if_missing" type="bool" setter="" getter="">
45-
If [code]true[/code], and ARM64 simulator library is missing from the export template, it is automatically generated from ARM64 device library.
46-
</member>
4744
<member name="application/icon_interpolation" type="int" setter="" getter="">
4845
Interpolation method used to resize application icon.
4946
</member>

0 commit comments

Comments
 (0)