leancodepl / patrol

Flutter-first UI testing framework. Ready for action!
https://patrol.leancode.co
Apache License 2.0
845 stars 125 forks source link

Error while installing pod after adding patrol to dependencies #723

Closed icodelifee closed 1 year ago

icodelifee commented 1 year ago

Adding the latest version of patrol [^0.10.6] to dev_dependencies and running pod install causes the error below. [!] The 'Pods-Runner' target has frameworks with conflicting names: grpc.

Full error log : https://katb.in/vagejozupem

bartekpacia commented 1 year ago

Hi @icodelifee, thanks for using Patrol and creating this issue.

I haven't encountered this issue before. Could you create a minimal reproducible sample of this problem in a separate GitHub repo? It'd help a lot.

icodelifee commented 1 year ago

Hi @icodelifee, thanks for using Patrol and creating this issue.

I haven't encountered this issue before. Could you create a minimal reproducible sample of this problem in a separate GitHub repo? It'd help a lot.

Hey @bartekpacia, sorry for lack of more info but i did some digging and seems like issue is when you have both patrol and cloud_firestore in dependencies

if you test a project with both of them you will encounter this issue

dependencies:
  flutter:
    sdk: flutter
  cloud_firestore: ^4.3.1

dev_dependencies:
  flutter_test:
    sdk: flutter
  patrol:
bartekpacia commented 1 year ago

Thanks for this info @icodelifee.

Are you using precompiled Firestore iOS SDKs? I am and I see no problems in the app on which I tried to reproduce this issue. It should also greatly reduce your build times :)

icodelifee commented 1 year ago

Yea i know about the precompiled. if i use precompiled sdk, my app crashes on launch, i think it might be an issue with m1 pro cpus

icodelifee commented 1 year ago

Thanks for this info @icodelifee.

Are you using precompiled Firestore iOS SDKs? I am and I see no problems in the app on which I tried to reproduce this issue. It should also greatly reduce your build times :)

Screenshot 2023-01-09 at 6 14 56 PM Not sure what the issue is here

bartekpacia commented 1 year ago

No idea as well. But what did you do?

icodelifee commented 1 year ago

No idea as well. But what did you do?

Nothing, other than just running the app using the precompiled sdk

icodelifee commented 1 year ago

I have created an issue at firestore-ios-sdk-frameworks(#69), for now i'll just be testing patrol on android.

bartekpacia commented 1 year ago

Can you attach the whole logs?

icodelifee commented 1 year ago

Can you attach the whole logs?

katb.in/yojaziteheg

jacobokoenig commented 1 year ago

Same issue. Here are my logs when running the following command:

flutter clean && flutter pub get && pod install --verbose

Dependencies:

dependencies:
  flutter:
    sdk: flutter

  # UI
  auto_size_text: ^3.0.0
  auto_route: ^5.0.2
  pretty_qr_code: ^2.0.2
  qr_code_scanner: ^1.0.1
  fl_chart: ^0.55.2
  dotted_line: ^3.1.0
  better_player: ^0.0.83
  iconsax: ^0.0.8 # TODO: Remove after icon implementation
  flutter_svg: ^1.1.5 # TODO: User only zoi image
  cached_network_image: ^3.2.2
  smooth_page_indicator: ^1.0.0+2
  flutter_sticky_header: ^0.6.4
  confetti: ^0.7.0
  rive: ^0.9.1
  carousel_slider: ^4.1.1
  pull_down_button: ^0.5.0

  # Architecture
  flutter_bloc: ^8.1.1
  get_it: ^7.2.0
  freezed_annotation: ^2.2.0
  json_annotation: ^4.7.0

  # Web3
  erc20: ^1.0.0
  web3dart: 2.3.5
  ed25519_hd_key: ^2.2.0
  solana: ^0.26.1
  hex: ^0.2.0
  bip39: ^1.0.6
  eth_sig_util: ^0.0.9
  wallet_connect: ^1.0.2

  # Compliance
  #  flutter_idensic_mobile_sdk_plugin: ^1.20.0

  # Firebase
  firebase_core: ^2.4.1
  cloud_firestore: ^4.3.1
  firebase_auth: ^4.2.5
  firebase_dynamic_links: ^5.0.11
  firebase_analytics: ^10.1.0
  firebase_messaging: ^14.2.1
  firebase_crashlytics: ^3.0.11
  firebase_storage: ^11.0.10
  firebase_app_check: ^0.1.1+8
  firebase_remote_config: ^3.0.9

  # Auth
  google_sign_in: ^5.4.2
  sign_in_with_apple: ^4.1.0
  crypto: ^3.0.2
  # flutter_facebook_auth: ^4.3.4+2

  # Network
  dio: ^4.0.6
  http: ^0.13.5
  algolia_helper_flutter: ^0.2.1

  # Utilities
  open_store: ^0.4.0
  version: ^3.0.2
  pay: ^1.0.11
  rxdart: ^0.27.5
  convert: ^3.0.2
  # new_version: ^0.3.1
  device_info_plus: ^8.0.0
  package_info_plus: ^3.0.1
  open_mail_app: ^0.4.5
  local_auth: ^2.1.2
  shared_preferences: ^2.0.15
  share: ^2.0.4
  url_launcher: ^6.1.6
  encrypt: ^5.0.1
  jwt_decode: ^0.3.1
  intercom_flutter: ^7.5.0
  permission_handler: ^10.2.0
  in_app_update: ^3.0.0
  in_app_review: ^2.0.4
  timeago: ^3.3.0
  flutter_countdown_timer: ^4.1.0
  duration: ^3.0.12
  logger: ^1.1.0
  injectable: ^1.5.3
  video_player: ^2.4.7
  camera: ^0.10.0+3
  mime_type: ^1.0.0
  uuid: ^3.0.6

  # Misc
  intl: ^0.17.0
  collection: ^1.16.0
  flutter_native_splash: ^2.2.14

  # Analytics
  # flutter_uxcam: ^2.1.1
  appsflyer_sdk: ^6.8.2
  flutter_segment: ^3.12.1

  # Security
  flutter_secure_storage: ^6.0.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_driver:
    sdk: flutter
  integration_test:
    sdk: flutter

  freezed: ^2.1.0+1
  auto_route_generator: ^5.0.2
  build_runner: ^2.2.1
  flutter_lints: ^2.0.1
  flutter_launcher_icons: ^0.10.0
  mockito: ^5.3.2
  firebase_auth_mocks: ^0.9.0
  injectable_generator: ^1.5.4
  json_serializable: ^6.5.4
  bloc_test: ^9.1.0
  patrol: ^0.10.8

Logs:

Expand Analyzing dependencies Inspecting targets to integrate Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``) Finding Podfile changes A patrol - Flutter - appsflyer_sdk - better_player - camera_avfoundation - cloud_firestore - device_info_plus - firebase_analytics - firebase_app_check - firebase_auth - firebase_core - firebase_crashlytics - firebase_dynamic_links - firebase_messaging - firebase_remote_config - firebase_storage - flutter_native_splash - flutter_secure_storage - flutter_segment - google_sign_in_ios - image_picker_ios - in_app_review - integration_test - intercom_flutter - local_auth_ios - open_mail_app - package_info_plus - path_provider_ios - pay_ios - permission_handler_apple - qr_code_scanner - share - shared_preferences_ios - sign_in_with_apple - sqflite - url_launcher_ios - video_player_avfoundation - wakelock - web3.swift - web3auth Fetching external sources -> Fetching podspec for `Flutter` from `Flutter` -> Fetching podspec for `appsflyer_sdk` from `.symlinks/plugins/appsflyer_sdk/ios` -> Fetching podspec for `better_player` from `.symlinks/plugins/better_player/ios` -> Fetching podspec for `camera_avfoundation` from `.symlinks/plugins/camera_avfoundation/ios` -> Fetching podspec for `cloud_firestore` from `.symlinks/plugins/cloud_firestore/ios` cloud_firestore: Using Firebase SDK version '10.3.0' defined in 'firebase_core' -> Fetching podspec for `device_info_plus` from `.symlinks/plugins/device_info_plus/ios` -> Fetching podspec for `firebase_analytics` from `.symlinks/plugins/firebase_analytics/ios` firebase_analytics: Using Firebase SDK version '10.3.0' defined in 'firebase_core' -> Fetching podspec for `firebase_app_check` from `.symlinks/plugins/firebase_app_check/ios` firebase_app_check: Using Firebase SDK version '10.3.0' defined in 'firebase_core' -> Fetching podspec for `firebase_auth` from `.symlinks/plugins/firebase_auth/ios` firebase_auth: Using Firebase SDK version '10.3.0' defined in 'firebase_core' -> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios` firebase_core: Using Firebase SDK version '10.3.0' defined in 'firebase_core' -> Fetching podspec for `firebase_crashlytics` from `.symlinks/plugins/firebase_crashlytics/ios` Ignoring digest-crc-0.6.1 because its extensions are not built. Try: gem pristine digest-crc --version 0.6.1 Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5 Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4 Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0 Ignoring unf_ext-0.0.7.7 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.7 Run script to upload symbols already exists. firebase_crashlytics: Using Firebase SDK version '10.3.0' defined in 'firebase_core' -> Fetching podspec for `firebase_dynamic_links` from `.symlinks/plugins/firebase_dynamic_links/ios` firebase_dynamic_links: Using Firebase SDK version '10.3.0' defined in 'firebase_core' -> Fetching podspec for `firebase_messaging` from `.symlinks/plugins/firebase_messaging/ios` firebase_messaging: Using Firebase SDK version '10.3.0' defined in 'firebase_core' -> Fetching podspec for `firebase_remote_config` from `.symlinks/plugins/firebase_remote_config/ios` firebase_remote_config: Using Firebase SDK version '10.3.0' defined in 'firebase_core' -> Fetching podspec for `firebase_storage` from `.symlinks/plugins/firebase_storage/ios` firebase_storage: Using Firebase SDK version '10.3.0' defined in 'firebase_core' -> Fetching podspec for `flutter_native_splash` from `.symlinks/plugins/flutter_native_splash/ios` -> Fetching podspec for `flutter_secure_storage` from `.symlinks/plugins/flutter_secure_storage/ios` -> Fetching podspec for `flutter_segment` from `.symlinks/plugins/flutter_segment/ios` -> Fetching podspec for `google_sign_in_ios` from `.symlinks/plugins/google_sign_in_ios/ios` -> Fetching podspec for `image_picker_ios` from `.symlinks/plugins/image_picker_ios/ios` -> Fetching podspec for `in_app_review` from `.symlinks/plugins/in_app_review/ios` -> Fetching podspec for `integration_test` from `.symlinks/plugins/integration_test/ios` -> Fetching podspec for `intercom_flutter` from `.symlinks/plugins/intercom_flutter/ios` -> Fetching podspec for `local_auth_ios` from `.symlinks/plugins/local_auth_ios/ios` -> Fetching podspec for `open_mail_app` from `.symlinks/plugins/open_mail_app/ios` -> Fetching podspec for `package_info_plus` from `.symlinks/plugins/package_info_plus/ios` -> Fetching podspec for `path_provider_ios` from `.symlinks/plugins/path_provider_ios/ios` -> Fetching podspec for `patrol` from `.symlinks/plugins/patrol/ios` -> Fetching podspec for `pay_ios` from `.symlinks/plugins/pay_ios/ios` -> Fetching podspec for `permission_handler_apple` from `.symlinks/plugins/permission_handler_apple/ios` -> Fetching podspec for `qr_code_scanner` from `.symlinks/plugins/qr_code_scanner/ios` -> Fetching podspec for `share` from `.symlinks/plugins/share/ios` -> Fetching podspec for `shared_preferences_ios` from `.symlinks/plugins/shared_preferences_ios/ios` -> Fetching podspec for `sign_in_with_apple` from `.symlinks/plugins/sign_in_with_apple/ios` -> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios` -> Fetching podspec for `url_launcher_ios` from `.symlinks/plugins/url_launcher_ios/ios` -> Fetching podspec for `video_player_avfoundation` from `.symlinks/plugins/video_player_avfoundation/ios` -> Fetching podspec for `wakelock` from `.symlinks/plugins/wakelock/ios` -> Pre-downloading: `web3.swift` from `https://github.com/torusresearch/web3.swift.git`, commit `de7c330035329642466c19ec7a6e99aa1fb6585f` > Copying web3.swift from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/External/web3.swift/8312af8ebb76baabb9c6ffc69005788f` to `Pods/web3.swift` -> Fetching podspec for `web3auth` from `.symlinks/plugins/web3auth/ios` Resolving dependencies of `Podfile` CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update Comparing resolved specification to the sandbox manifest A Amplitude A Analytics A AnalyticsConnector A AppAuth A AppsFlyerFramework A BigInt A BoringSSL-GRPC A CGRPCZlib A CNIOAtomics A CNIOBoringSSL A CNIOBoringSSLShims A CNIODarwin A CNIOHTTPParser A CNIOLinux A CNIOWindows A Cache A CryptoSwift A CustomAuth A FMDB A Firebase A FirebaseABTesting A FirebaseAnalytics A FirebaseAppCheck A FirebaseAppCheckInterop A FirebaseAuth A FirebaseAuthInterop A FirebaseCore A FirebaseCoreExtension A FirebaseCoreInternal A FirebaseCrashlytics A FirebaseDynamicLinks A FirebaseFirestore A FirebaseInstallations A FirebaseMessaging A FirebaseRemoteConfig A FirebaseStorage A Flutter A GCDWebServer A GTMAppAuth A GTMSessionFetcher A GenericJSON A GoogleAppMeasurement A GoogleDataTransport A GoogleSignIn A GoogleUtilities A HLSCachingReverseProxyServer A Intercom A Libuv-gRPC A Logging A MTBBarcodeScanner A PINCache A PINOperation A PromiseKit A PromisesObjC A Segment-Amplitude A SwiftNIO A SwiftNIOConcurrencyHelpers A SwiftNIOCore A SwiftNIOEmbedded A SwiftNIOExtras A SwiftNIOFoundationCompat A SwiftNIOHPACK A SwiftNIOHTTP1 A SwiftNIOHTTP2 A SwiftNIOPosix A SwiftNIOSSL A SwiftNIOTLS A SwiftNIOTransportServices A SwiftProtobuf A Torus-fetchNodeDetails A Torus-utils A _NIODataStructures A abseil A appsflyer_sdk A better_player A camera_avfoundation A cloud_firestore A device_info_plus A firebase_analytics A firebase_app_check A firebase_auth A firebase_core A firebase_crashlytics A firebase_dynamic_links A firebase_messaging A firebase_remote_config A firebase_storage A flutter_native_splash A flutter_secure_storage A flutter_segment A gRPC-C++ A gRPC-Core A gRPC-Swift A google_sign_in_ios A image_picker_ios A in_app_review A integration_test A intercom_flutter A leveldb-library A local_auth_ios A nanopb A open_mail_app A package_info_plus A path_provider_ios A patrol A pay_ios A permission_handler_apple A qr_code_scanner A secp256k1.swift A segment-appsflyer-ios A share A shared_preferences_ios A sign_in_with_apple A sqflite A url_launcher_ios A video_player_avfoundation A wakelock A web3.swift A web3auth Downloading dependencies -> Installing Amplitude (8.14.0) > Copying Amplitude from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/Amplitude/8.14.0-bff4c` to `Pods/Amplitude` -> Installing Analytics (4.1.6) > Copying Analytics from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/Analytics/4.1.6-eefe5` to `Pods/Analytics` -> Installing AnalyticsConnector (1.0.1) > Copying AnalyticsConnector from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/AnalyticsConnector/1.0.1-eccd7` to `Pods/AnalyticsConnector` -> Installing AppAuth (1.6.0) > Copying AppAuth from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/AppAuth/1.6.0-8fca6` to `Pods/AppAuth` -> Installing AppsFlyerFramework (6.8.0) > Copying AppsFlyerFramework from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/AppsFlyerFramework/6.8.0-a8de5` to `Pods/AppsFlyerFramework` -> Installing BigInt (5.0.0) > Copying BigInt from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/BigInt/5.0.0-74b4d` to `Pods/BigInt` -> Installing BoringSSL-GRPC (0.0.24) > Copying BoringSSL-GRPC from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/BoringSSL-GRPC/0.0.24-3175b` to `Pods/BoringSSL-GRPC` -> Installing CGRPCZlib (1.8.0) > Copying CGRPCZlib from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/CGRPCZlib/1.8.0-298dd` to `Pods/CGRPCZlib` -> Installing CNIOAtomics (2.40.0) > Copying CNIOAtomics from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/CNIOAtomics/2.40.0-8edf0` to `Pods/CNIOAtomics` -> Installing CNIOBoringSSL (2.19.0) > Copying CNIOBoringSSL from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/CNIOBoringSSL/2.19.0-2c9c9` to `Pods/CNIOBoringSSL` -> Installing CNIOBoringSSLShims (2.19.0) > Copying CNIOBoringSSLShims from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/CNIOBoringSSLShims/2.19.0-c5c93` to `Pods/CNIOBoringSSLShims` -> Installing CNIODarwin (2.40.0) > Copying CNIODarwin from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/CNIODarwin/2.40.0-93850` to `Pods/CNIODarwin` -> Installing CNIOHTTPParser (2.40.0) > Copying CNIOHTTPParser from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/CNIOHTTPParser/2.40.0-8ce39` to `Pods/CNIOHTTPParser` -> Installing CNIOLinux (2.40.0) > Copying CNIOLinux from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/CNIOLinux/2.40.0-62e35` to `Pods/CNIOLinux` -> Installing CNIOWindows (2.40.0) > Copying CNIOWindows from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/CNIOWindows/2.40.0-3047f` to `Pods/CNIOWindows` -> Installing Cache (6.0.0) > Copying Cache from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/Cache/6.0.0-4ca7e` to `Pods/Cache` -> Installing CryptoSwift (1.4.3) > Copying CryptoSwift from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/CryptoSwift/1.4.3-a0799` to `Pods/CryptoSwift` -> Installing CustomAuth (2.1.0) > Copying CustomAuth from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/CustomAuth/2.1.0-40424` to `Pods/CustomAuth` -> Installing FMDB (2.7.5) > Copying FMDB from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FMDB/2.7.5-2ce00` to `Pods/FMDB` -> Installing Firebase (10.3.0) > Copying Firebase from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/Firebase/10.3.0-f92fc` to `Pods/Firebase` -> Installing FirebaseABTesting (10.4.0) > Copying FirebaseABTesting from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseABTesting/10.4.0-ae3b3` to `Pods/FirebaseABTesting` -> Installing FirebaseAnalytics (10.3.0) > Copying FirebaseAnalytics from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseAnalytics/10.3.0-03623` to `Pods/FirebaseAnalytics` -> Installing FirebaseAppCheck (10.3.0) > Copying FirebaseAppCheck from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseAppCheck/10.3.0-edbc4` to `Pods/FirebaseAppCheck` -> Installing FirebaseAppCheckInterop (10.4.0) > Copying FirebaseAppCheckInterop from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseAppCheckInterop/10.4.0-ef074` to `Pods/FirebaseAppCheckInterop` -> Installing FirebaseAuth (10.3.0) > Copying FirebaseAuth from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseAuth/10.3.0-0e415` to `Pods/FirebaseAuth` -> Installing FirebaseAuthInterop (10.4.0) > Copying FirebaseAuthInterop from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseAuthInterop/10.4.0-fef28` to `Pods/FirebaseAuthInterop` -> Installing FirebaseCore (10.3.0) > Copying FirebaseCore from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseCore/10.3.0-98875` to `Pods/FirebaseCore` -> Installing FirebaseCoreExtension (10.4.0) > Copying FirebaseCoreExtension from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseCoreExtension/10.4.0-d209a` to `Pods/FirebaseCoreExtension` -> Installing FirebaseCoreInternal (10.4.0) > Copying FirebaseCoreInternal from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseCoreInternal/10.4.0-e3012` to `Pods/FirebaseCoreInternal` -> Installing FirebaseCrashlytics (10.3.0) > Copying FirebaseCrashlytics from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseCrashlytics/10.3.0-f20d9` to `Pods/FirebaseCrashlytics` -> Installing FirebaseDynamicLinks (10.3.0) > Copying FirebaseDynamicLinks from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseDynamicLinks/10.3.0-51c81` to `Pods/FirebaseDynamicLinks` -> Installing FirebaseFirestore (10.3.0) > Copying FirebaseFirestore from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseFirestore/10.3.0-244f7` to `Pods/FirebaseFirestore` -> Installing FirebaseInstallations (10.4.0) > Copying FirebaseInstallations from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseInstallations/10.4.0-36b38` to `Pods/FirebaseInstallations` -> Installing FirebaseMessaging (10.3.0) > Copying FirebaseMessaging from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseMessaging/10.3.0-e345b` to `Pods/FirebaseMessaging` -> Installing FirebaseRemoteConfig (10.3.0) > Copying FirebaseRemoteConfig from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseRemoteConfig/10.3.0-c24f7` to `Pods/FirebaseRemoteConfig` -> Installing FirebaseStorage (10.3.0) > Copying FirebaseStorage from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/FirebaseStorage/10.3.0-0efbf` to `Pods/FirebaseStorage` -> Installing Flutter (1.0.0) -> Installing GCDWebServer (3.5.4) > Copying GCDWebServer from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/GCDWebServer/3.5.4-2c156` to `Pods/GCDWebServer` -> Installing GTMAppAuth (1.3.1) > Copying GTMAppAuth from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/GTMAppAuth/1.3.1-0ff23` to `Pods/GTMAppAuth` -> Installing GTMSessionFetcher (2.3.0) > Copying GTMSessionFetcher from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/GTMSessionFetcher/2.3.0-3a63d` to `Pods/GTMSessionFetcher` -> Installing GenericJSON (2.0.2) > Copying GenericJSON from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/GenericJSON/2.0.2-79a84` to `Pods/GenericJSON` -> Installing GoogleAppMeasurement (10.3.0) > Copying GoogleAppMeasurement from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/GoogleAppMeasurement/10.3.0-c7d6f` to `Pods/GoogleAppMeasurement` -> Installing GoogleDataTransport (9.2.1) > Copying GoogleDataTransport from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/GoogleDataTransport/9.2.1-ea169` to `Pods/GoogleDataTransport` -> Installing GoogleSignIn (6.2.4) > Copying GoogleSignIn from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/GoogleSignIn/6.2.4-5651c` to `Pods/GoogleSignIn` -> Installing GoogleUtilities (7.11.0) > Copying GoogleUtilities from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/GoogleUtilities/7.11.0-c2bdc` to `Pods/GoogleUtilities` -> Installing HLSCachingReverseProxyServer (0.1.0) > Copying HLSCachingReverseProxyServer from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/HLSCachingReverseProxyServer/0.1.0-59935` to `Pods/HLSCachingReverseProxyServer` -> Installing Intercom (14.0.6) > Copying Intercom from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/Intercom/14.0.6-443c8` to `Pods/Intercom` -> Installing Libuv-gRPC (0.0.10) > Copying Libuv-gRPC from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/Libuv-gRPC/0.0.10-55e51` to `Pods/Libuv-gRPC` -> Installing Logging (1.4.0) > Copying Logging from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/Logging/1.4.0-beeb0` to `Pods/Logging` -> Installing MTBBarcodeScanner (5.0.11) > Copying MTBBarcodeScanner from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/MTBBarcodeScanner/5.0.11-f453b` to `Pods/MTBBarcodeScanner` -> Installing PINCache (3.0.3) > Copying PINCache from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/PINCache/3.0.3-7a8fc` to `Pods/PINCache` -> Installing PINOperation (1.2.2) > Copying PINOperation from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/PINOperation/1.2.2-daa34` to `Pods/PINOperation` -> Installing PromiseKit (6.18.1) > Copying PromiseKit from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/PromiseKit/6.18.1-49d70` to `Pods/PromiseKit` -> Installing PromisesObjC (2.1.1) > Copying PromisesObjC from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/PromisesObjC/2.1.1-ab77f` to `Pods/PromisesObjC` -> Installing Segment-Amplitude (3.3.2) > Copying Segment-Amplitude from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/Segment-Amplitude/3.3.2-6c1e5` to `Pods/Segment-Amplitude` -> Installing SwiftNIO (2.40.0) > Copying SwiftNIO from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIO/2.40.0-82995` to `Pods/SwiftNIO` -> Installing SwiftNIOConcurrencyHelpers (2.40.0) > Copying SwiftNIOConcurrencyHelpers from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIOConcurrencyHelpers/2.40.0-69737` to `Pods/SwiftNIOConcurrencyHelpers` -> Installing SwiftNIOCore (2.40.0) > Copying SwiftNIOCore from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIOCore/2.40.0-473fd` to `Pods/SwiftNIOCore` -> Installing SwiftNIOEmbedded (2.40.0) > Copying SwiftNIOEmbedded from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIOEmbedded/2.40.0-ffcb5` to `Pods/SwiftNIOEmbedded` -> Installing SwiftNIOExtras (1.11.0) > Copying SwiftNIOExtras from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIOExtras/1.11.0-481f7` to `Pods/SwiftNIOExtras` -> Installing SwiftNIOFoundationCompat (2.40.0) > Copying SwiftNIOFoundationCompat from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIOFoundationCompat/2.40.0-b9cdb` to `Pods/SwiftNIOFoundationCompat` -> Installing SwiftNIOHPACK (1.22.0) > Copying SwiftNIOHPACK from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIOHPACK/1.22.0-e7d3f` to `Pods/SwiftNIOHPACK` -> Installing SwiftNIOHTTP1 (2.40.0) > Copying SwiftNIOHTTP1 from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIOHTTP1/2.40.0-ef567` to `Pods/SwiftNIOHTTP1` -> Installing SwiftNIOHTTP2 (1.22.0) > Copying SwiftNIOHTTP2 from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIOHTTP2/1.22.0-cc81d` to `Pods/SwiftNIOHTTP2` -> Installing SwiftNIOPosix (2.40.0) > Copying SwiftNIOPosix from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIOPosix/2.40.0-b49af` to `Pods/SwiftNIOPosix` -> Installing SwiftNIOSSL (2.19.0) > Copying SwiftNIOSSL from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIOSSL/2.19.0-d153c` to `Pods/SwiftNIOSSL` -> Installing SwiftNIOTLS (2.40.0) > Copying SwiftNIOTLS from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIOTLS/2.40.0-598af` to `Pods/SwiftNIOTLS` -> Installing SwiftNIOTransportServices (1.12.0) > Copying SwiftNIOTransportServices from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftNIOTransportServices/1.12.0-0b2b4` to `Pods/SwiftNIOTransportServices` -> Installing SwiftProtobuf (1.20.3) > Copying SwiftProtobuf from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/SwiftProtobuf/1.20.3-b02b5` to `Pods/SwiftProtobuf` -> Installing Torus-fetchNodeDetails (1.3.0) > Copying Torus-fetchNodeDetails from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/Torus-fetchNodeDetails/1.3.0-f25e2` to `Pods/Torus-fetchNodeDetails` -> Installing Torus-utils (1.3.0) > Copying Torus-utils from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/Torus-utils/1.3.0-b7ce3` to `Pods/Torus-utils` -> Installing _NIODataStructures (2.40.0) > Copying _NIODataStructures from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/_NIODataStructures/2.40.0-3d45d` to `Pods/_NIODataStructures` -> Installing abseil (1.20211102.0) > Copying abseil from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/abseil/1.20211102.0-ebe5b` to `Pods/abseil` -> Installing appsflyer_sdk (6.8.0) -> Installing better_player (0.0.1) -> Installing camera_avfoundation (0.0.1) -> Installing cloud_firestore (4.3.1) -> Installing device_info_plus (0.0.1) -> Installing firebase_analytics (10.1.0) -> Installing firebase_app_check (0.1.1-8) -> Installing firebase_auth (4.2.5) -> Installing firebase_core (2.4.1) -> Installing firebase_crashlytics (3.0.11) -> Installing firebase_dynamic_links (5.0.11) -> Installing firebase_messaging (14.2.1) -> Installing firebase_remote_config (3.0.9) -> Installing firebase_storage (11.0.10) -> Installing flutter_native_splash (0.0.1) -> Installing flutter_secure_storage (6.0.0) -> Installing flutter_segment (3.12.1) -> Installing gRPC-C++ (1.44.0) > Copying gRPC-C++ from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/gRPC-C++/1.44.0-9675f` to `Pods/gRPC-C++` -> Installing gRPC-Core (1.44.0) > Copying gRPC-Core from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/gRPC-Core/1.44.0-943e4` to `Pods/gRPC-Core` -> Installing gRPC-Swift (1.8.0) > Copying gRPC-Swift from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/gRPC-Swift/1.8.0-74adc` to `Pods/gRPC-Swift` -> Installing google_sign_in_ios (0.0.1) -> Installing image_picker_ios (0.0.1) -> Installing in_app_review (0.2.0) -> Installing integration_test (0.0.1) -> Installing intercom_flutter (7.5.0) -> Installing leveldb-library (1.22.1) > Copying leveldb-library from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/leveldb-library/1.22.1-50c7b` to `Pods/leveldb-library` -> Installing local_auth_ios (0.0.1) -> Installing nanopb (2.30909.0) > Copying nanopb from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/nanopb/2.30909.0-b552c` to `Pods/nanopb` -> Installing open_mail_app (0.0.1) -> Installing package_info_plus (0.4.5) -> Installing path_provider_ios (0.0.1) -> Installing patrol (0.0.1) -> Installing pay_ios (0.0.1) -> Installing permission_handler_apple (9.0.4) -> Installing qr_code_scanner (0.2.0) -> Installing secp256k1.swift (0.1.4) > Copying secp256k1.swift from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/secp256k1.swift/0.1.4-a7e7a` to `Pods/secp256k1.swift` -> Installing segment-appsflyer-ios (6.8.0) > Copying segment-appsflyer-ios from `/Users/jacobokoenig/Library/Caches/CocoaPods/Pods/Release/segment-appsflyer-ios/6.8.0-9b84c` to `Pods/segment-appsflyer-ios` -> Installing share (0.0.1) -> Installing shared_preferences_ios (0.0.1) -> Installing sign_in_with_apple (0.0.1) -> Installing sqflite (0.0.2) -> Installing url_launcher_ios (0.0.1) -> Installing video_player_avfoundation (0.0.1) -> Installing wakelock (0.0.1) -> Installing web3.swift (0.8.2) -> Installing web3auth (1.0.0) - Running pre install hooks [!] The 'Pods-Runner' target has frameworks with conflicting names: grpc. /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:67:in `verify_no_duplicate_names' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:54:in `block (2 levels) in verify_no_duplicate_framework_and_library_names' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:48:in `each_key' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:48:in `block in verify_no_duplicate_framework_and_library_names' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:47:in `each' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:47:in `verify_no_duplicate_framework_and_library_names' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:37:in `validate!' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:597:in `validate_targets' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:163:in `install!' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/bin/pod:55:in `' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `load' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `
'
bartekpacia commented 1 year ago

Hi @jacobokoenig, can you edit your message to include the command you invoked and also include the whole logs?

icodelifee commented 1 year ago

Same issue. Here are my logs:

[!] The 'Pods-Runner' target has frameworks with conflicting names: grpc.

/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:67:in verify_no_duplicate_names' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:54:inblock (2 levels) in verify_no_duplicate_framework_and_library_names' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:48:in each_key' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:48:inblock in verify_no_duplicate_framework_and_library_names' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:47:in each' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:47:inverify_no_duplicate_framework_and_library_names' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:37:in validate!' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:597:invalidate_targets' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:163:in install!' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:inrun' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in run' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:inrun' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/bin/pod:55:in <top (required)>' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:inload' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `

'

just use the pre compiled firebase sdk, it solves the issue

jacobokoenig commented 1 year ago

Updated @bartekpacia

@icodelifee can you clarify or explain how I can do this?

bartekpacia commented 1 year ago

@jacobokoenig I'm pretty sure they mean this: https://github.com/invertase/firestore-ios-sdk-frameworks

Let me know if this helps you.

bartekpacia commented 1 year ago

@jacobokoenig Did you try using the precompiled Firebase SDKs?

dwievermos commented 1 year ago

hello @bartekpacia i really have no idea whats wrong with precomiled Firebase SDKs, can you explain it to me ? i try to remove all of my precompile SDKs and it's still giving me an error when running pod update or pod install on my project

apple@ip-192-168-1-2 ios % pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
firebase_auth: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
firebase_remote_config: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "patrol":
  In Podfile:
    patrol (from `.symlinks/plugins/patrol/ios`)

Specs satisfying the `patrol (from `.symlinks/plugins/patrol/ios`)` dependency were found, but they required a higher minimum deployment target.
bartekpacia commented 1 year ago

Hi @dwievermos,

I get this problem sometimes as well – it usually means that the version of precompiled Firebase SDKS that you defined in Podfile isn't compatible with the versions of Firebase Dart packages defined in pubspec.yaml.

I recommend you makes sure you're using the latest.

For example, here're the versions I use in my private app 😁:

pod 'FirebaseFirestore', git: 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', tag: '10.3.0'

and:

cloud_firestore: 4.3.1
firebase_auth: 4.2.5
firebase_core: 2.4.1
firebase_crashlytics: 3.0.11
firebase_storage: 11.0.10

PS Mind the lack of ^ before Dart packages versions - this force pub to use this exact version. Learn more here.

dwikurniantom commented 1 year ago

hello, thanks for the fast response @bartekpacia I try to add a line on my Podfile & change my dependency versions as you refer to without the caret as well. Unfortunately, the error still occurs. I think I will dig into this problem, and waiting for the others to come with solution

pod 'FirebaseFirestore', git: 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', tag: '10.3.0'

And

  cloud_firestore: 4.3.1
  firebase_auth: 4.2.5
  firebase_core: 2.4.1
  firebase_remote_config: 3.0.9
  firebase_messaging: 14.2.1
MathiasTP commented 1 year ago

hello @bartekpacia i really have no idea whats wrong with precomiled Firebase SDKs, can you explain it to me ? i try to remove all of my precompile SDKs and it's still giving me an error when running pod update or pod install on my project

apple@ip-192-168-1-2 ios % pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
firebase_auth: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
firebase_remote_config: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "patrol":
  In Podfile:
    patrol (from `.symlinks/plugins/patrol/ios`)

Specs satisfying the `patrol (from `.symlinks/plugins/patrol/ios`)` dependency were found, but they required a higher minimum deployment target.

Had the same problem as you, but bumping my iOS deployment target to 16.2 for my Pods project in Xcode solved the problem.

river2202 commented 1 year ago

Some discussion in grpc-swift: https://github.com/grpc/grpc-swift/issues/915

As workaround here works for me:

1. Download our current Podspec from https://github.com/grpc/grpc-swift/raw/main/gRPC-Swift.podspec and place it next to your Podfile.
2. In the downloaded gRPC-Swift.podspec, replace s.module_name = 'GRPC' with s.module_name = 'GRPC_Swift'.
3. Include the dependency in your Podfile as follows: pod 'gRPC-Swift', :podspec => 'gRPC-Swift.podspec'

I do use link https://github.com/grpc/grpc-swift/blob/1.8.0/gRPC-Swift.podspec to download the gRPC-Swift.podspec file and update the version to 1.8. Seems the latest version has dropped cocoapods support ???

---- update

Sorry, this only fix the pod install, but when compiling got error:

        /Users/riverhuang/.pub-cache/hosted/pub.dartlang.org/patrol-1.0.7/ios/Classes/AutomatorServer/AutomatorServer.swift:2:8: error: no such module 'GRPC'
        import GRPC

of course since I change the module name. So fall back to FirebaseFirestore prebuild binary warkaround.

river2202 commented 1 year ago

Will it solve the problem if patrol upgrade to latest grpc-swift using SPM?

bartekpacia commented 1 year ago

@river2202 I don't know – does SPM even work with Flutter (which uses CocoaPods as its default package manager on iOS)? Looks like it does not.

reacct commented 1 year ago

Hi Is there any updates?

cl0v commented 1 year ago

Simplest solution: Go to the example project in the dir: https://github.com/leancodepl/patrol/blob/master/packages/patrol/example/ios/Podfile

then copy the lines 2 and 3:

ios_deployment_target = '13.0'
platform :ios, ios_deployment_target

Replace in your ios/Podfile lines 2 and 3 with this

promops commented 1 year ago

@river2202 @icodelifee Podfile fix working for me:


grpc_swift_override_name = 'Custom_Name'
pre_install do |installer|
  patrol_pod = installer.pod_targets.find{|target| target.name == 'patrol'}
  grpc_swift_pod = installer.pod_targets.find{|target| target.name == 'gRPC-Swift'}

  next if patrol_pod.nil? || grpc_swift_pod.nil?
  grpc_swift_pod.root_spec.module_name = grpc_swift_override_name

  patrol_srcroot_dir = patrol_pod.pod_target_srcroot
  symlink_patrol_dir = File.dirname(File.expand_path(patrol_srcroot_dir))
  pub_cache_patrol_dir = File.readlink(symlink_patrol_dir)

  File.unlink(symlink_patrol_dir)
  FileUtils.cp_r(pub_cache_patrol_dir, symlink_patrol_dir)

  Dir.glob("#{symlink_patrol_dir}/**/*.swift").each do |file_path|
    content = File.read(file_path).gsub(/(\s)GRPC([\s.])/, "\\1#{grpc_swift_override_name}\\2")
    File.open(file_path, 'w') {|file| file.write(content)}
  end
end
Codeaview commented 1 year ago

@river2202 @icodelifee Podfile fix working for me:

grpc_swift_override_name = 'Custom_Name'
pre_install do |installer|
  patrol_pod = installer.pod_targets.find{|target| target.name == 'patrol'}
  grpc_swift_pod = installer.pod_targets.find{|target| target.name == 'gRPC-Swift'}

  next if patrol_pod.nil? || grpc_swift_pod.nil?
  grpc_swift_pod.root_spec.module_name = grpc_swift_override_name

  patrol_srcroot_dir = patrol_pod.pod_target_srcroot
  symlink_patrol_dir = File.dirname(File.expand_path(patrol_srcroot_dir))
  pub_cache_patrol_dir = File.readlink(symlink_patrol_dir)

  File.unlink(symlink_patrol_dir)
  FileUtils.cp_r(pub_cache_patrol_dir, symlink_patrol_dir)

  Dir.glob("#{symlink_patrol_dir}/**/*.swift").each do |file_path|
    content = File.read(file_path).gsub(/(\s)GRPC([\s.])/, "\\1#{grpc_swift_override_name}\\2")
    File.open(file_path, 'w') {|file| file.write(content)}
  end
end```

This fix is also working for me. Otherwise, while using precompiled Firestore, the Runner instantly crashes with: Termination Reason: DYLD 1 Library missing Library not loaded: @rpath/GRPC.framework/GRPC

promops commented 1 year ago

@Codeaview Check your Target Dependencies in Build phases (on your test target), include something similar to Runner (maybe you have services that are used native GRPC library)

bartekpacia commented 11 months ago

FYI: https://github.com/leancodepl/patrol/issues/1660#issuecomment-1693355936

Once we're done with it, the workarounds shouldn't be needed.

github-actions[bot] commented 9 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.