Browse Source

Merge pull request #43348 from bruvzg/ios_sim_fix

[iOS] Add missing ARC flag to the simulator build.
Rémi Verschelde 4 years ago
parent
commit
1e5a782ce8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/iphone/detect.py

+ 1 - 1
platform/iphone/detect.py

@@ -119,7 +119,7 @@ def configure(env):
         arch_flag = "i386" if env["arch"] == "x86" else env["arch"]
         env.Append(
             CCFLAGS=(
-                "-arch "
+                "-fobjc-arc -arch "
                 + arch_flag
                 + " -fobjc-abi-version=2 -fobjc-legacy-dispatch -fmessage-length=0 -fpascal-strings -fblocks"
                 " -fasm-blocks -isysroot $IPHONESDK -mios-simulator-version-min=13.0"