v3rm0n / intercom_flutter

Flutter wrapper for Intercom libraries
95 stars 141 forks source link

7.1.0 - IntercomFlutterPlugin.m:2:9: 'Intercom/Intercom.h' file not found when adding the `intercom_flutter` plugin 7.1.0 #237

Closed jonchui closed 2 years ago

jonchui commented 2 years ago

STEPS:

EXPECTED:

ACTUAL:

The Xcode Runner.app also confirms this: image

jonchui commented 2 years ago

I just confirmed that the example code @ https://github.com/v3rm0n/intercom_flutter/tree/master/intercom_flutter/example works though - so I'll see what's different with that code and mine

Zazo032 commented 2 years ago

You can try this:

  1. Add the plugin to your pubspec.yaml
  2. Run the following commands in the root folder:
    flutter clean
    flutter pub cache clean
    flutter pub get
  3. Run the following commands in the ios/ folder:
    sudo gem install cocoapods
    pod repo update
    pod update
jonchui commented 2 years ago

Ah thanks, i think that worked! weird

Jon Chui Partner @ Wonder and Wander

WonderAndWander.io ( http://wonderandwander.io/ )

"Helping mission-driven companies amplify their impact with Technology. Book a Free Consult ( https://wonderandwander.io/talk-to-us ) "

Sent via Superhuman ( @.*** )

On Tue, May 03, 2022 at 1:56 AM, Cristian Zazo < @.*** > wrote:

You can try this:

  • Add the plugin to your pubspec.yaml
  • Run the following commands in the root folder: flutter clean flutter pub cache clean flutter pub get
  • Run the following commands in the ios/ folder: sudo gem install cocoapods pod repo update pod update

— Reply to this email directly, view it on GitHub ( https://github.com/v3rm0n/intercom_flutter/issues/237#issuecomment-1115829451 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AABSAREQTJQDG752ACQ2OPTVIDLZPANCNFSM5U55EDVQ ). You are receiving this because you authored the thread. Message ID: <v3rm0n/intercom_flutter/issues/237/1115829451 @ github. com>

strmchsr commented 2 years ago

Same issue is coming while running the IOS on version 7.2.0 , tried the above solution but no luck

@Zazo032 @deepak786

deepak786 commented 2 years ago

@strmchsr try the example app and see if you have the same issue?

simplenotezy commented 1 year ago

I have same issue, and it keeps coming back month-by-month. Not sure why, but this is the only package I have this issue with

simplenotezy commented 1 year ago

Can we reopen this issue please? I have it as well. I have tried your suggestion @jonchui but that does not work, unfortunately.


❯ flutter clean
Cleaning Xcode workspace...                                      2,914ms
Cleaning Xcode workspace...                                      1,836ms
Deleting build...                                                   32ms
Deleting .dart_tool...                                               0ms
Deleting Generated.xcconfig...                                       0ms
Deleting flutter_export_environment.sh...                            0ms
Deleting Flutter.podspec...                                          0ms
Deleting ephemeral...                                                0ms
Deleting ephemeral...                                                0ms
Deleting ephemeral...                                                0ms
Deleting .flutter-plugins-dependencies...                            0ms
Deleting .flutter-plugins...                                         0ms
❯ flutter pub cache clean

This will remove everything inside /Users/mf/.pub-cache.
You will have to run `flutter pub get` again in each project.
Are you sure? (y/N)? y
Removing pub cache directory /Users/mf/.pub-cache.
❯ flutter pub get
Resolving dependencies... (1:17.3s)
  _fe_analyzer_shared 58.0.0 (62.0.0 available)
  _flutterfire_internals 1.3.2 (1.3.3 available)
  amplitude_flutter 3.14.0 (3.15.0 available)
  analyzer 5.10.0 (6.0.0 available)
  appsflyer_sdk 6.10.3 (6.11.2 available)
  args 2.4.1 (2.4.2 available)
  auto_route 6.4.0 (7.6.0 available)
  auto_route_generator 6.2.0 (7.1.1 available)
  build 2.4.0 (2.4.1 available)
  build_resolvers 2.2.0 (2.2.1 available)
  build_runner 2.4.4 (2.4.6 available)
  build_runner_core 7.2.9 (7.2.10 available)
  built_value 8.6.0 (8.6.1 available)
  circle_flags 1.0.4 (3.0.1 available)
  collection 1.17.1 (1.17.2 available)
  connectivity_plus 3.0.6 (4.0.1 available)
  csslib 0.17.3 (1.0.0 available)
  custom_lint 0.3.4 (0.5.0 available)
  custom_lint_builder 0.3.4 (0.5.0 available)
  custom_lint_core 0.3.4 (0.5.0 available)
  dart_style 2.3.1 (2.3.2 available)
  device_info_plus 8.2.2 (9.0.2 available)
  diacritic 0.1.3 (0.1.4 available)
  dio 5.1.2 (5.2.1+1 available)
  extended_image_library 3.5.1 (3.5.3 available)
  file 6.1.4 (7.0.0 available)
  firebase_analytics 10.4.2 (10.4.3 available)
  firebase_analytics_platform_interface 3.6.2 (3.6.3 available)
  firebase_analytics_web 0.5.4+2 (0.5.4+3 available)
  firebase_core 2.13.1 (2.14.0 available)
  firebase_core_web 2.5.0 (2.6.0 available)
  firebase_crashlytics 3.3.2 (3.3.3 available)
  firebase_crashlytics_platform_interface 3.6.2 (3.6.3 available)
  firebase_messaging 14.6.2 (14.6.4 available)
  firebase_messaging_platform_interface 4.5.2 (4.5.3 available)
  firebase_messaging_web 3.5.2 (3.5.3 available)
  flutter_cache_manager 3.3.0 (3.3.1 available)
  flutter_lints 2.0.1 (2.0.2 available)
  flutter_local_notifications 14.1.1 (15.0.0 available)
  flutter_native_image 0.0.6+1 (discontinued)
  flutter_native_splash 2.3.0 (2.3.1 available)
  flutter_svg 2.0.6 (2.0.7 available)
  freezed 2.3.3 (2.3.5 available)
  geolocator_android 4.1.8 (4.1.9 available)
  geolocator_apple 2.2.5 (2.2.7 available)
  google_fonts 4.0.4 (5.1.0 available)
  gql 0.14.0 (1.0.0 available)
  gql_error_link 0.2.3+1 (1.0.0 available)
  gql_exec 0.4.3 (1.0.0 available)
  gql_http_link 0.4.5 (1.0.1 available)
  gql_link 0.5.1 (1.0.0 available)
  gql_transform_link 0.2.2+1 (1.0.0 available)
  html 0.15.3 (0.15.4 available)
  http 0.13.6 (1.1.0 available)
  http_client_helper 2.0.4 (3.0.0 available)
  image_cropper 3.0.3 (5.0.0 available)
  image_cropper_for_web 1.0.3 (3.0.0 available)
  image_cropper_platform_interface 3.0.3 (5.0.0 available)
  image_picker 0.8.7+5 (1.0.0 available)
  image_picker_android 0.8.6+17 (0.8.7+3 available)
  image_picker_for_web 2.1.12 (2.2.0 available)
  image_picker_ios 0.8.7+4 (0.8.8 available)
  image_picker_platform_interface 2.6.3 (2.8.0 available)
  intl 0.18.0 (0.18.1 available)
  json_serializable 6.6.2 (6.7.1 available)
  lints 2.1.0 (2.1.1 available)
  logger 1.3.0 (1.4.0 available)
  lottie 2.3.2 (2.4.0 available)
  matcher 0.12.15 (0.12.16 available)
  material_color_utilities 0.2.0 (0.8.0 available)
  normalize 0.7.2 (0.8.2+1 available)
  package_info_plus 3.1.2 (4.0.2 available)
  path_provider_windows 2.1.6 (2.1.7 available)
  permission_handler 10.2.0 (10.4.1 available)
  permission_handler_android 10.2.1 (10.3.0 available)
  permission_handler_apple 9.0.8 (9.1.2 available)
  permission_handler_platform_interface 3.9.0 (3.11.0+1 available)
  permission_handler_windows 0.1.2 (0.1.3 available)
  phone_number_metadata 5.0.4 (5.0.5 available)
  phone_numbers_parser 7.0.2 (8.0.0 available)
  pin_input_text_field 4.5.0 (4.5.1 available)
  riverpod_analyzer_utils 0.3.0 (0.3.1 available)
  riverpod_generator 2.2.2 (2.2.3 available)
  riverpod_lint 1.3.1 (1.3.2 available)
  sembast 3.4.5 (3.4.9 available)
  share_plus 6.3.4 (7.0.2 available)
  shared_preferences 2.1.1 (2.2.0 available)
  shared_preferences_android 2.1.4 (2.2.0 available)
  shared_preferences_foundation 2.2.2 (2.3.0 available)
  shared_preferences_linux 2.2.0 (2.3.0 available)
  shared_preferences_platform_interface 2.2.0 (2.3.0 available)
  shared_preferences_web 2.1.0 (2.2.0 available)
  shared_preferences_windows 2.2.0 (2.3.0 available)
  source_gen 1.3.2 (1.4.0 available)
  source_helper 1.3.3 (1.3.4 available)
  source_span 1.9.1 (1.10.0 available)
  sqflite_common 2.4.5 (2.4.5+1 available)
  stream_channel 2.1.1 (2.1.2 available)
  test_api 0.5.1 (0.6.1 available)
  timeago 3.4.0 (3.5.0 available)
  universal_io 2.2.0 (2.2.2 available)
  url_launcher_android 6.0.35 (6.0.36 available)
  url_launcher_platform_interface 2.1.2 (2.1.3 available)
  vector_graphics 1.1.6 (1.1.7 available)
  vector_graphics_codec 1.1.6 (1.1.7 available)
  vector_graphics_compiler 1.1.6 (1.1.7 available)
  video_player 2.6.1 (2.7.0 available)
  video_player_android 2.4.8 (2.4.9 available)
  vm_service 11.6.0 (11.7.2 available)
! web_socket_channel 2.2.0 (overridden) (2.4.0 available)
  win32 3.1.4 (5.0.5 available)
Got dependencies!
❯ flutter pub get
❯ cd ios
❯ sudo gem install cocoapods
Password:
Successfully installed cocoapods-1.12.1
Parsing documentation for cocoapods-1.12.1
Done installing documentation for cocoapods after 0 seconds
1 gem installed
❯ pod repo update
Updating spec repo `trunk`
❯ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
firebase_analytics: Using Firebase SDK version '10.9.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.9.0' defined in 'firebase_core'
Warning: firebase_app_id_file.json file does not exist. This may cause issues in upload-symbols. If this error is unexpected, try running flutterfire configure again.
firebase_crashlytics: Using Firebase SDK version '10.9.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.9.0' defined in 'firebase_core'
Downloading dependencies
Installing Amplitude (8.14.0)
Installing AnalyticsConnector (1.0.1)
Installing AppsFlyerFramework (6.10.1)
Installing FMDB (2.7.5)
Installing Firebase (10.9.0)
Installing FirebaseAnalytics (10.9.0)
Installing FirebaseCore (10.9.0)
Installing FirebaseCoreExtension (10.11.0)
Installing FirebaseCoreInternal (10.11.0)
Installing FirebaseCrashlytics (10.9.0)
Installing FirebaseInstallations (10.11.0)
Installing FirebaseMessaging (10.9.0)
Installing FirebaseSessions (10.11.0)
Installing Flutter (1.0.0)
Installing GoogleAppMeasurement (10.9.0)
Installing GoogleDataTransport (9.2.3)
Installing GoogleUtilities (7.11.1)
Installing Intercom (15.0.1)
Installing PINCache (3.0.3)
Installing PINOperation (1.2.2)
Installing PromisesObjC (2.2.0)
Installing PromisesSwift (2.2.0)
Installing ReachabilitySwift (5.0.0)
Installing SnapSDK (1.11.0)
Installing TOCropViewController (2.6.1)
Installing amplitude_flutter (0.0.1)
Installing app_tracking_transparency (0.0.1)
Installing appsflyer_sdk (6.8.0)
Installing connectivity_plus (0.0.1)
Installing contacts_service (0.2.2)
Installing device_info_plus (0.0.1)
Installing firebase_analytics (10.4.2)
Installing firebase_core (2.13.1)
Installing firebase_crashlytics (3.3.2)
Installing firebase_messaging (14.6.2)
Installing flutter_app_badger (1.3.0)
Installing flutter_keyboard_visibility (0.0.1)
Installing flutter_local_notifications (0.0.1)
Installing flutter_native_image (0.0.1)
Installing flutter_native_splash (0.0.1)
Installing flutter_secure_storage (6.0.0)
Installing flutter_sms (1.1.0)
Installing geolocator_apple (1.2.0)
Installing image_cropper (0.0.4)
Installing image_picker_ios (0.0.1)
Installing in_app_review (0.2.0)
Installing intercom_flutter (7.5.0)
Installing nanopb (2.30909.0)
Installing package_info_plus (0.4.5)
Installing path_provider_foundation (0.0.1)
Installing permission_handler_apple (9.0.4)
Installing screenshot_callback (0.0.1)
Installing share_plus (0.0.1)
Installing shared_preferences_foundation (0.0.1)
Installing sms_autofill (0.0.1)
Installing snapkit (1.0.0)
Installing social_share (0.0.1)
Installing sqflite (0.0.3)
Installing uni_links (0.0.1)
Installing url_launcher_ios (0.0.1)
Installing video_player_avfoundation (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 38 dependencies from the Podfile and 61 total pods installed.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).

[!] The `Runner [Debug]` target overrides the `EXCLUDED_ARCHS[sdk=iphonesimulator*]` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.
❯ ..
❯ flutter build ios --release --no-codesign
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building dk.my.app for device (ios-release)...
Running pod install...                                           2,731ms
Running Xcode build...
Xcode build done.                                            5.2s
Failed to build iOS app
Lexical or Preprocessor Issue (Xcode): 'Intercom/Intercom.h' file not found
/Users/mf/.pub-cache/hosted/pub.dev/intercom_flutter-7.8.1/ios/Classes/IntercomFlutterPlugin.m:1:8

Encountered error while building for device.
deepak786 commented 1 year ago

@simplenotezy See https://github.com/v3rm0n/intercom_flutter/issues/325 for more info

simplenotezy commented 1 year ago

Thanks @deepak786!