3

I have an iPad app using Google Mobile Ads SDK through CocoaPods and would like to port it to Mac Catalyst. However, the underlying Pods like Google App Measurement does not support Mac Catalyst. When I try to port it, it shows a compile time error saying "...building for Mac Catalyst, but compiling for iOS Simulator" (roughly paraphrasing here).

I tried this solution on Medium (scroll down to "Automate the Process" section). Namely I modified the Podfile to exclude the incompatible libraries from compiling on Mac Catalyst. However when I do that, it removes the previous errors but is giving me two new errors:

Undefined symbol: _OBJC_CLASS_$_GADMobileAds
Undefined symbol: _OBJC_CLASS_$_GADRequest

I don't know how to remove these errors and make it compile on Mac Catalyst. Do you know how to solve them?

Blip
  • 1,158
  • 1
  • 14
  • 35

0 Answers0