ios – Library ‘GoogleSignIn’ not discovered

0
29
ios – Library ‘GoogleSignIn’ not discovered


I am engaged on an iOS app that was functioning completely earlier than I added Firebase Cloud Messaging (FCM) to implement push notifications. The Android facet remains to be working flawlessly after integrating FCM, however the iOS model will not construct anymore. Each time I attempt to run the app in Xcode, I encounter the identical error.

enter picture description right here

listed here are a few of my information

# Allow modular headers globally
use_modular_headers!
def node_require(script)
   # Resolve script with node to permit for hoisting
   require Pod::Executable.execute_command('node', ['-p',
     "require.resolve(
       '#{script}',
       {paths: [process.argv[1]]},
     )", __dir__]).strip
 finish

# Use it to require each react-native's and this bundle's scripts:
 node_require('react-native/scripts/react_native_pods.rb')
 node_require('react-native-permissions/scripts/setup.rb')


platform :ios, min_ios_version_supported
prepare_react_native_project!

setup_permissions([
  'LocationAlways',
  'LocationWhenInUse',
])

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
  Pod::UI.places "Configuring Pod with #{linkage}ally linked Frameworks".inexperienced
  use_frameworks! :linkage => linkage.to_sym
finish

use_frameworks! :linkage => :static
$RNFirebaseAsStaticFramework = true

goal 'OfferBoat' do
  
  rn_maps_path="../node_modules/react-native-maps"
  pod 'react-native-google-maps', :path => rn_maps_path
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # An absolute path to your utility root.
    :app_path => "#{Pod::Config.occasion.installation_root}/.."
  )

   # Add GooglePlaces and GoogleMaps pods right here
   pod 'GooglePlaces'
   pod 'GoogleMaps'

  goal 'OfferBoatTests' do
    inherit! :full
    # Pods for testing
  finish

  post_install do |installer|
    # https://github.com/fb/react-native/blob/most important/packages/react-native/scripts/react_native_pods.rb#L197-L202
    react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => false,
      # :ccache_enabled => true
    )
  finish
finish
#import "AppDelegate.h"
#import 
#import 
#import 
#import 
@implementation AppDelegate

- (BOOL)utility:(UIApplication *)utility didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  [FIRApp configure];
  [GMSServices provideAPIKey:@"AIza...iY4.....Y...nYj...Q3G...g"];
  self.moduleName = @"OfferBoat";

  // You may add your customized preliminary props within the dictionary beneath.
  // They are going to be handed right down to the ViewController utilized by React Native.
  self.initialProps = @{};
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
  return [self bundleURL];
}

- (NSURL *)bundleURL
{
#if DEBUG
  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
  return [[NSBundle mainBundle] URLForResource:@"most important" withExtension:@"jsbundle"];
#endif
}

@finish

enter picture description right here

I added GoogleService Information.plist file like this .

right here is my bundle.json file

{
  "title": "OfferBoat",
  "model": "0.0.1",
  "non-public": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "begin": "react-native begin",
    "take a look at": "jest"
  },
  "dependencies": {
    "@hookform/resolvers": "^3.5.0",
    "@notifee/react-native": "^7.8.2",
    "@react-native-async-storage/async-storage": "^1.23.1",
    "@react-native-community/datetimepicker": "^8.1.0",
    "@react-native-community/geolocation": "^3.3.0",
    "@react-native-firebase/app": "^20.4.0",
    "@react-native-firebase/messaging": "^20.4.0",
    "@react-native-google-signin/google-signin": "^12.2.1",
    "@react-navigation/bottom-tabs": "^6.5.20",
    "@react-navigation/native": "^6.1.17",
    "@react-navigation/native-stack": "^6.9.26",
    "@react-navigation/stack": "^6.3.29",
    "@reduxjs/toolkit": "^2.2.5",
    "@stripe/stripe-react-native": "^0.38.2",
    "@sorts/react-redux": "^7.1.33",
    "axios": "^1.7.2",
    "date-fns": "^3.6.0",
    "lottie-react-native": "^6.7.2",
    "react": "18.2.0",
    "react-hook-form": "^7.51.5",
    "react-native": "0.74.2",
    "react-native-calendars": "^1.1305.0",
    "react-native-gesture-handler": "^2.16.2",
    "react-native-get-random-values": "^1.11.0",
    "react-native-google-places-autocomplete": "^2.5.6",
    "react-native-image-crop-picker": "^0.41.1",
    "react-native-image-zoom-viewer": "^3.0.1",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-maps": "^1.15.6",
    "react-native-modal": "^13.0.1",
    "react-native-modal-datetime-picker": "^17.1.0",
    "react-native-permissions": "newest",
    "react-native-phone-number-input": "^2.1.0",
    "react-native-ratings": "^8.1.0",
    "react-native-reanimated": "^3.12.0",
    "react-native-reanimated-carousel": "^3.5.1",
    "react-native-safe-area-context": "^4.10.4",
    "react-native-screens": "^3.31.1",
    "react-native-vector-icons": "^10.1.0",
    "react-redux": "^9.1.2",
    "yup": "^1.4.0"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@react-native/babel-preset": "0.74.84",
    "@react-native/eslint-config": "0.74.84",
    "@react-native/metro-config": "0.74.84",
    "@react-native/typescript-config": "0.74.84",
    "@sorts/react": "^18.2.6",
    "@sorts/react-native-vector-icons": "^6.4.18",
    "@sorts/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.6.3",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "prettier": "2.8.8",
    "react-test-renderer": "18.2.0",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  },
  "packageManager": "[email protected]"
}

and sure I additionally added these capabilities in xcode

enter picture description right here

I would recognize any steerage or strategies on resolve this subject. Thanks prematurely!

Steps I’ve Taken:

Ran pod set up –repo-update to make sure all dependencies are updated.
Deleted Pods and Podfile.lock, then reinstalled pods utilizing pod set up.
Cleaned the construct folder in Xcode (Product > Clear Construct Folder).
Deleted the contents of /Customers/Library/Developer/Xcode/DerivedData/.
Regardless of these efforts, the construct error persists.

LEAVE A REPLY

Please enter your comment!
Please enter your name here