poingstudios / godot-admob-ios

Godot's AdMob Plugin for iOS with support for Mediations.
https://poingstudios.github.io/godot-admob-plugin/
MIT License
104 stars 15 forks source link

[BUG] Can't run on an iOS simulator with an m1 macbook #26

Closed bdoucette closed 2 years ago

bdoucette commented 2 years ago

Describe the bug Following the youtube guide I get the following error when trying to run my game in the simulator

Undefined symbols for architecture x86_64: "Object::emit_signal(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&)", referenced from: _34-[Interstitial load_interstitial:]_block_invoke in admob.a(Interstitial.o) -[Interstitial ad:didFailToPresentFullScreenContentWithError:] in admob.a(Interstitial.o) -[Interstitial adDidPresentFullScreenContent:] in admob.a(Interstitial.o) -[Interstitial adDidDismissFullScreenContent:] in admob.a(Interstitial.o) ___26-[Rewarded load_rewarded:]_block_invoke in admob.a(Rewarded.o) -[Rewarded showrewarded] in admob.a(Rewarded.o) 25-[Rewarded show_rewarded]_block_invoke in admob.a(Rewarded.o) ... (maybe you meant: Object::emit_signal(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&)) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

To Reproduce Steps to reproduce the behavior:

  1. Export for iOS
  2. Modify Build Settings to be Standard Architectures & exclude arm64 + i386
  3. Select simulator and press run

Expected behavior The game to build and run in the simulator

Additional context using a macbook pro m1 and the latest version of xcode

Note - when I follow the same steps without the Admob plugin the game can be played on the simulator just fine

bdoucette commented 2 years ago

I sorted this one out

I was on 3.5 RC8 so I needed to build the plugin myself for this version

gumaciel commented 2 years ago

@bdoucette Hi! I recommend you to use 3.5 stable version.

Here is the version builded for iOS: https://github.com/Poing-Studios/godot-admob-ios/releases/download/v2.1.0/ios-template-v3.5.zip