Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Help for Qt for iOS with AdMob implementation
Qt 6.11 is out! See what's new in the release blog

Help for Qt for iOS with AdMob implementation

Scheduled Pinned Locked Moved Solved Mobile and Embedded
11 Posts 3 Posters 1.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Adla
    wrote on last edited by
    #2

    Hi, Can someone please have a look at my problem.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #3

      Hi,

      Intuitively I would say that you have to tell cmake where to find these framework so it can properly configure the build system.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Intuitively I would say that you have to tell cmake where to find these framework so it can properly configure the build system.

        A Offline
        A Offline
        Adla
        wrote on last edited by
        #4

        @SGaist ,

        I downloaded Google Mobile Ads manually, and I updated the CMakeLists.txt file, but still it is not working.

        # Define the frameworks path
        set(FRAMEWORKS_DIR "${CMAKE_SOURCE_DIR}/ios_frameworks")
        
        # Add include directories
        target_include_directories(apptesting PUBLIC
            ${FRAMEWORKS_DIR}
        )
        
        # Link the frameworks explicitly
        target_link_libraries(apptesting PUBLIC
            "-framework GoogleMobileAds" 
            Qt6::Core
            Qt6::Quick
            Qt6::Widgets
        )
        
        # Link the framework search paths
        set(CMAKE_EXE_LINKER_FLAGS
            "${CMAKE_EXE_LINKER_FLAGS} -F${FRAMEWORKS_DIR}"
        )
        

        or

        should I consider the Google mobile ads which are in Pod in Xcode, but how can I use this location in CMakeLists.txt

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Adla
          wrote on last edited by
          #5

          Has anyone implemented AdMob on iOS using Qt ?, Are there any example projects that will give some ideas ?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            The folks at Felgo have a plug-in for AdMob.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            A 1 Reply Last reply
            0
            • SGaistS SGaist

              The folks at Felgo have a plug-in for AdMob.

              A Offline
              A Offline
              Adla
              wrote on last edited by
              #7

              @SGaist ,

              Thanks. got the answer I needed.

              1 Reply Last reply
              0
              • A Adla has marked this topic as solved on
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                What was it ? It might other people having the same issue as you.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1
                • A Offline
                  A Offline
                  Adla
                  wrote on last edited by Adla
                  #9

                  I stored in GitHub, if anyone interested, you can have a look at it. Link below.

                  https://github.com/thirupathiadla/AdMob-for-iOS-with-Qt.git

                  Also, for Android link below.

                  https://github.com/thirupathiadla/AdMob-for-Qt-Android.git

                  S 1 Reply Last reply
                  1
                  • A Offline
                    A Offline
                    Adla
                    wrote on last edited by
                    #10

                    Does anyone know how to implement Firebase Core and Firebase Analytics for both Android and iOS using CMakeLists.txt in Qt ?

                    1 Reply Last reply
                    0
                    • A Adla

                      I stored in GitHub, if anyone interested, you can have a look at it. Link below.

                      https://github.com/thirupathiadla/AdMob-for-iOS-with-Qt.git

                      Also, for Android link below.

                      https://github.com/thirupathiadla/AdMob-for-Qt-Android.git

                      S Offline
                      S Offline
                      samdol
                      wrote on last edited by samdol
                      #11

                      @Adla Thank you for sharing. GoogleMobileAds.framework in your Pods.zip works well.
                      May I ask you how you generated this Pods.zip?
                      I tried to generate it but it didn't work as yours.

                      Here is my steps.

                      1. Run Xcode
                      2. Create an iOS app project with
                        Interface: Storyboard
                        Language: Objective-C
                      3. pod init
                      4. Edit Podfile
                        pod 'Google-Mobile-Ads-SDK'
                      5. pod install --repo-update

                      But with the resulting GoogleMobileAds.framework, I got many errors,
                      Undefined symbols for architecture arm64:
                      "_$sBOWV", referenced from:
                      $s15GoogleMobileAds24GADMarketplaceKitSignalsCMf in GoogleMobileAds(GADMarketplaceKitSignals.o)
                      "
                      $sScA15unownedExecutorScevgTj", referenced from:
                      $sScTss5NeverORs_rlE8priority9operationScTyxABGScPSg_xyYaYAcntcfCyt_Tgmq5 in GoogleMobileAds(GADMarketplaceKitSignals.o)
                      "
                      $sScAMp", referenced from:
                      _symbolic ______pSg ScA in GoogleMobileAds(GADMarketplaceKitSignals.o)
                      ...

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved