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:
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:
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!