浏览代码

Merge pull request #43348 from bruvzg/ios_sim_fix

[iOS] Add missing ARC flag to the simulator build.
Rémi Verschelde 4 年之前
父节点
当前提交
1e5a782ce8
共有 1 个文件被更改,包括 1 次插入1 次删除
  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"