invertase / react-native-google-mobile-ads

React Native Google Mobile Ads enables you to monetize your app with AdMob.
https://docs.page/invertase/react-native-google-mobile-ads
Other
671 stars 135 forks source link

[🐛] Build faild on Xcode 14.3 (M1 chip) #385

Closed dessorry closed 1 year ago

dessorry commented 1 year ago

What happened?

When I build my App on Xcode I receive:

/Users/YYY/Library/Developer/Xcode/DerivedData/XXX-fbnxaeyonyhhynfhsfrnddqnecfc/Build/Intermediates.noindex/XXX.build/Debug-iphonesimulator/XXX.build/DerivedSources/XXX_vers.c module map file '/Users/YYY/Library/Developer/Xcode/DerivedData/XXX-fbnxaeyonyhhynfhsfrnddqnecfc/Build/Products/Debug-iphonesimulator/RNGoogleMobileAds/RNGoogleMobileAds.modulemap' not found

Platforms

Only on iOS

React Native Info

System:
    OS: macOS 13.3.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 243.14 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.9.0 - /opt/homebrew/bin/node
    Yarn: Not Found
    npm: 8.19.1 - /opt/homebrew/bin/npm
    Watchman: 2022.09.12.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.3 AI-213.7172.25.2113.9123335
    Xcode: 14.3/14E222b - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.16.1 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: ^6.1.0 => 6.4.0 
    react: 17.0.2 => 17.0.2 
    react-native: 0.65.3 => 0.65.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Are your using Typescript?

package.json

{
  "name": "XXX",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@freakycoder/react-native-bounceable": ">= 0.1.1",
    "@react-native-async-storage/async-storage": "^1.17.3",
    "@react-native-community/cli": "^6.1.0",
    "@react-native-community/masked-view": "^0.1.10",
    "@react-navigation/drawer": "^6.3.1",
    "@react-navigation/native": "^6.0.0",
    "@react-navigation/stack": "^5.14.3",
    "expo": "^41.0.1",
    "expo-cli": "^4.4.4",
    "lottie-ios": "^3.2.3",
    "lottie-react-native": "^4.1.3",
    "moment": "^2.29.1",
    "moment-timezone": "^0.5.34",
    "react": "17.0.2",
    "react-native": "0.65.3",
    "react-native-fast-image": "^8.3.7",
    "react-native-gesture-handler": "^1.10.3",
    "react-native-google-mobile-ads": "^8.1.0",
    "react-native-material-dialog": "^0.7.7",
    "react-native-raw-bottom-sheet": "^2.2.0",
    "react-native-reanimated": "^1.13.4",
    "react-native-rounded-checkbox": "^0.3.3",
    "react-native-safe-area-context": "^3.1.9",
    "react-native-screens": "^3.0.0",
    "react-native-storage": "^1.0.1",
    "react-native-swipe-list-view": "^3.2.9",
    "react-native-switch-selector": "^2.3.0"
  },
  "devDependencies": {
    "@babel/core": "^7.8.4",
    "@babel/runtime": "^7.8.4",
    "@react-native-community/eslint-config": "^1.1.0",
    "babel-jest": "^25.1.0",
    "eslint": "^6.5.1",
    "jest": "^25.1.0",
    "metro-react-native-babel-preset": "^0.59.0",
    "react-native-codegen": "^0.0.12",
    "react-test-renderer": "17.0.2"
  },
  "jest": {
    "preset": "react-native"
  }
}

app.json

{
  "name": "XXX",
  "displayName": "XXX",
  "react-native-google-mobile-ads": {
    "android_app_id": "ZZZ",
    "ios_app_id": "WWW"
  }
}

ios/Podfile

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '11.0'

target 'XXX' do
  config = use_native_modules!
  use_react_native!(:path => config["reactNativePath"])

  target 'XXXTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
  use_flipper!
  post_install do |installer|
    flipper_post_install(installer)
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        # Disable arm64 builds for the simulator
        config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
      end
    end
  end
end

target 'XXX-tvOS' do
  # Pods for XXX-tvOS

  target 'XXX-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end
end

android/build.gradle

No response

android/app/build.gradle

No response

android/settings.gradle

No response

AndroidManifest.xml

No response

github-actions[bot] commented 1 year ago

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

minhchienwikipedia commented 6 months ago

@dessorry do you have any solution for this issue?