Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac previews crash on multiplatform target even with GoogleMobileAds set to iOS only. #92

Open
raynertanxw opened this issue Jul 22, 2024 · 0 comments

Comments

@raynertanxw
Copy link

I'm making a multiplatform target app with both iOS/iPad and Mac target platforms. I've already set GoogleMobileAds filter to iOS only. It builds fine no problem to all platforms.

Screenshot 2024-07-22 at 5 21 03 PM

So I can run the application without a hitch with the My Mac schema. But the previews specifically for My Mac are broken.

Screenshot 2024-07-22 at 5 24 20 PM

Preview logs as follows:

== PREVIEW UPDATE ERROR:

SchemeBuildError: Failed to build the scheme “MyList”

While building for macOS, no library for this platform was found in '/Users/raynertanxw/Library/Developer/Xcode/DerivedData/MyList-ckgkiuocxntjmxfjppnnijpqrnil/SourcePackages/artifacts/swift-package-manager-google-mobile-ads/GoogleMobileAds/GoogleMobileAds.xcframework'. (in target 'GoogleMobileAdsTarget' from project 'GoogleMobileAds')

Build target GoogleMobileAdsTarget:
/Users/raynertanxw/Library/Developer/Xcode/DerivedData/MyList-ckgkiuocxntjmxfjppnnijpqrnil/SourcePackages/artifacts/swift-package-manager-google-mobile-ads/GoogleMobileAds/GoogleMobileAds.xcframework:1:1: error: While building for macOS, no library for this platform was found in '/Users/raynertanxw/Library/Developer/Xcode/DerivedData/MyList-ckgkiuocxntjmxfjppnnijpqrnil/SourcePackages/artifacts/swift-package-manager-google-mobile-ads/GoogleMobileAds/GoogleMobileAds.xcframework'. (in target 'GoogleMobileAdsTarget' from project 'GoogleMobileAds')


Build target GoogleMobileAds:
/Users/raynertanxw/Library/Developer/Xcode/DerivedData/MyList-ckgkiuocxntjmxfjppnnijpqrnil/SourcePackages/artifacts/swift-package-manager-google-mobile-ads/GoogleMobileAds/GoogleMobileAds.xcframework:1:1: error: While building for macOS, no library for this platform was found in '/Users/raynertanxw/Library/Developer/Xcode/DerivedData/MyList-ckgkiuocxntjmxfjppnnijpqrnil/SourcePackages/artifacts/swift-package-manager-google-mobile-ads/GoogleMobileAds/GoogleMobileAds.xcframework'. (in target 'GoogleMobileAds' from project 'GoogleMobileAds')
/Users/raynertanxw/Library/Developer/Xcode/DerivedData/MyList-ckgkiuocxntjmxfjppnnijpqrnil/SourcePackages/artifacts/swift-package-manager-google-user-messaging-platform/UserMessagingPlatform/UserMessagingPlatform.xcframework:1:1: error: While building for macOS, no library for this platform was found in '/Users/raynertanxw/Library/Developer/Xcode/DerivedData/MyList-ckgkiuocxntjmxfjppnnijpqrnil/SourcePackages/artifacts/swift-package-manager-google-user-messaging-platform/UserMessagingPlatform/UserMessagingPlatform.xcframework'. (in target 'GoogleMobileAds' from project 'GoogleMobileAds')


Build target UserMessagingPlatformTarget:
/Users/raynertanxw/Library/Developer/Xcode/DerivedData/MyList-ckgkiuocxntjmxfjppnnijpqrnil/SourcePackages/artifacts/swift-package-manager-google-user-messaging-platform/UserMessagingPlatform/UserMessagingPlatform.xcframework:1:1: error: While building for macOS, no library for this platform was found in '/Users/raynertanxw/Library/Developer/Xcode/DerivedData/MyList-ckgkiuocxntjmxfjppnnijpqrnil/SourcePackages/artifacts/swift-package-manager-google-user-messaging-platform/UserMessagingPlatform/UserMessagingPlatform.xcframework'. (in target 'UserMessagingPlatformTarget' from project 'GoogleUserMessagingPlatform')


Build target GoogleUserMessagingPlatform:
/Users/raynertanxw/Library/Developer/Xcode/DerivedData/MyList-ckgkiuocxntjmxfjppnnijpqrnil/SourcePackages/artifacts/swift-package-manager-google-user-messaging-platform/UserMessagingPlatform/UserMessagingPlatform.xcframework:1:1: error: While building for macOS, no library for this platform was found in '/Users/raynertanxw/Library/Developer/Xcode/DerivedData/MyList-ckgkiuocxntjmxfjppnnijpqrnil/SourcePackages/artifacts/swift-package-manager-google-user-messaging-platform/UserMessagingPlatform/UserMessagingPlatform.xcframework'. (in target 'GoogleUserMessagingPlatform' from project 'GoogleUserMessagingPlatform')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant