Hi,
not sure if officially supported but I can not build iOS simulator with this extension on Intel based Mac's.
building for the iOS simulator fails to compile admob.mm:
admob.mm:5:9: fatal error: 'GoogleMobileAds/GoogleMobileAds.h' file not found
Root cause: In project/admob-ios/Build.xml the simulator -F search path is guarded by if="HXCPP_ARM64 || HXCPP_X86_64". For an x86_64 simulator build hxcpp defines HXCPP_M64, not HXCPP_X86_64, so the guard never fires and -F is never emitted. (Apple Silicon builds arm64, so HXCPP_ARM64 fires and it works — hence Intel-only.) The clang++ invocation confirms -DHXCPP_M64 is present and no -F is added.
Fix:
-
<compilerflag value="-F${haxelib:extension-admob}/project/admob-ios/frameworks/arm64_x86_64-simulator" if="HXCPP_ARM64 || HXCPP_X86_64" />
-
<compilerflag value="-F${haxelib:extension-admob}/project/admob-ios/frameworks/arm64_x86_64-simulator" if="HXCPP_ARM64 || HXCPP_X86_64 || HXCPP_M64" />
Testing: Intel Mac, Xcode 26.5, lime 8.3.2, hxcpp 4.3.2, extension at git version. Before: missing-header error. After: admob.mm compiles and the app links GoogleMobileAds + UMP. No effect on Apple Silicon / device builds.
Hi,
not sure if officially supported but I can not build iOS simulator with this extension on Intel based Mac's.
building for the iOS simulator fails to compile admob.mm:
Root cause: In project/admob-ios/Build.xml the simulator -F search path is guarded by if="HXCPP_ARM64 || HXCPP_X86_64". For an x86_64 simulator build hxcpp defines HXCPP_M64, not HXCPP_X86_64, so the guard never fires and -F is never emitted. (Apple Silicon builds arm64, so HXCPP_ARM64 fires and it works — hence Intel-only.) The clang++ invocation confirms -DHXCPP_M64 is present and no -F is added.
Fix:
Testing: Intel Mac, Xcode 26.5, lime 8.3.2, hxcpp 4.3.2, extension at git version. Before: missing-header error. After: admob.mm compiles and the app links GoogleMobileAds + UMP. No effect on Apple Silicon / device builds.