Hello everyone, I'm currently implementing AdMob a...
# multiplatform
s
Hello everyone, I'm currently implementing AdMob ads for iOS in a Kotlin Multiplatform project using Jetpack Compose Multiplatform. I’ve added the AdMob SDK to the
Podfile
as follows:
Copy code
pod 'Google-Mobile-Ads-SDK'
The pods are being installed successfully, and integration appears fine. On the Android side, AdMob ads are working perfectly. However, when I try to build the iOS app through Xcode, I encounter the following error:
Copy code
Multiple commands produce '/Users/User_Name/Library/Developer/Xcode/DerivedData/iosApp-.../Build/Products/Debug-iphoneos/YourApp.app'
Here’s what I’ve tried so far: • Cleaned project/invalidate caches in Android Studio • Deleted
DerivedData
folder in Xcode • Ran
pod deintegrate
and
pod install
again • Verified there are no duplicate entries for output paths or targets But the issue still persists. Has anyone faced a similar problem with Compose Multiplatform and CocoaPods (AdMob)? Any advice or workaround would be greatly appreciated. Thanks in advance!
t
k
I have exactly same error and cannot fix it. 😞 My project is based on Compose Multiplatform
"Check our cocoapods sample:" ___________ I cannot even build this sample
t
cc @Andrey Yastrebov
a
@Konstantin Adamov which version of Xcode are you using?
k
@Andrey Yastrebov Latest - Android Studio Narwhal | 2025.1.1 Patch 1
a
I'm asking about Xcode, not Android Studio
a
I was also getting the same issue, turned out that
Product Name
was missing from iosApp (KMP wizard didn't add that param and the name was
.app
in
project.pbxproj
), it can be fixed from Xcode -> Build Settings -> Product Name, after that everything was ok.
👍 1
k
@Andrey Yastrebov Version 16.4 (16F6)