Help for Qt for iOS with AdMob implementation
-
Hi,
Intuitively I would say that you have to tell cmake where to find these framework so it can properly configure the build system.
-
Hi,
Intuitively I would say that you have to tell cmake where to find these framework so it can properly configure the build system.
@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
-
-
What was it ? It might other people having the same issue as you.
-
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.
-
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.
@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.
- Run Xcode
- Create an iOS app project with
Interface: Storyboard
Language: Objective-C - pod init
- Edit Podfile
pod 'Google-Mobile-Ads-SDK' - 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)
...