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

excludedPackages doesn't work with Google Ads integration #59

Open
ailtonvivaz opened this issue Dec 14, 2024 · 2 comments
Open

excludedPackages doesn't work with Google Ads integration #59

ailtonvivaz opened this issue Dec 14, 2024 · 2 comments

Comments

@ailtonvivaz
Copy link

I’m encountering a build issue when trying to use the excludedPackages option in combination with react-native-google-mobile-ads. The app fails to build, showing undefined symbols related to Google Mobile Ads. This appears to indicate that the excludedPackages configuration does not properly exclude the react-native-google-mobile-ads dependency when building the app clip.

❌  Undefined symbols for architecture arm64
┌─ Symbol: _RNGoogleMobileAdsBannerViewCls
└─ Referenced from: _RCTThirdPartyFabricComponentsProvider in libReact-RCTFabric.a[41](RCTThirdPartyFabricComponentsProvider.o)


❌  ld: symbol(s) not found for architecture arm64


    Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hermes-engine' from project 'Pods')
    Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'BloxClip' from project 'Blox')
    Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'BloxClip' from project 'Blox')
    Run script build phase '[CP-User] [RN]Check rncore' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-Fabric' from project 'Pods')
    Run script build phase '[CP-User] [RN]Check rncore' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-FabricComponents' from project 'Pods')
    Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')

› 2 error(s), and 29 warning(s)
@nathan-ahn
Copy link
Collaborator

What version of react-native-app-clip are you using? And is this on the new architecture?

I've previously had similar issues with @shopify/flash-list (undefined symbols) when using the new architecture, which seems to be fixed in version 0.5.0.

@ailtonvivaz
Copy link
Author

Hi @nathan-ahn, thank you for the response!

I’m currently using version 0.5.0 of react-native-app-clip. The project is set up with the new architecture enabled.

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

2 participants