v3rm0n / intercom_flutter

Flutter wrapper for Intercom libraries
94 stars 137 forks source link

[ios]: the example cannot build and run #325

Closed idy closed 1 year ago

idy commented 1 year ago

Updated: If you also encounter this issue, please follow https://github.com/v3rm0n/intercom_flutter/issues/325#issuecomment-1618670440 to fix it.


flutter run failed with the following error messages:

Could not build the precompiled application for the device.
Lexical or Preprocessor Issue (Xcode): 'Intercom/Intercom.h' file not found
/Users/_/Work/intercom_flutter/intercom_flutter/ios/Classes/IntercomFlutterPlugin.m:1:8

flutter --version

Flutter 3.10.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 796c8ef792 (3 weeks ago) • 2023-06-13 15:51:02 -0700
Engine • revision 45f6e00911
Tools • Dart 3.0.5 • DevTools 2.23.1

flutter deps

Resolving dependencies... (1.5s)
Got dependencies.
Dart SDK 3.0.5
Flutter SDK 3.10.5
intercom_flutter 7.8.1
├── collection 1.17.1
├── flutter 0.0.0
│   ├── characters 1.3.0
│   ├── js 0.6.7
│   │   └── meta...
│   ├── material_color_utilities 0.2.0
│   ├── meta 1.9.1
│   ├── sky_engine 0.0.99
│   ├── vector_math 2.1.4
│   └── collection...
├── flutter_test 0.0.0
│   ├── async 2.11.0
│   │   ├── collection...
│   │   └── meta...
│   ├── boolean_selector 2.1.1
│   │   ├── source_span...
│   │   └── string_scanner...
│   ├── clock 1.1.1
│   ├── fake_async 1.3.1
│   │   ├── clock...
│   │   └── collection...
│   ├── matcher 0.12.15
│   │   ├── async...
│   │   ├── meta...
│   │   ├── stack_trace...
│   │   ├── term_glyph...
│   │   └── test_api...
│   ├── path 1.8.3
│   ├── source_span 1.9.1
│   │   ├── collection...
│   │   ├── path...
│   │   └── term_glyph...
│   ├── stack_trace 1.11.0
│   │   └── path...
│   ├── stream_channel 2.1.1
│   │   └── async...
│   ├── string_scanner 1.2.0
│   │   └── source_span...
│   ├── term_glyph 1.2.1
│   ├── test_api 0.5.1
│   │   ├── async...
│   │   ├── boolean_selector...
│   │   ├── collection...
│   │   ├── matcher...
│   │   ├── meta...
│   │   ├── source_span...
│   │   ├── stack_trace...
│   │   ├── stream_channel...
│   │   ├── string_scanner...
│   │   └── term_glyph...
│   ├── characters...
│   ├── collection...
│   ├── flutter...
│   ├── js...
│   ├── material_color_utilities...
│   ├── meta...
│   └── vector_math...
├── flutter_web_plugins 0.0.0
│   ├── characters...
│   ├── collection...
│   ├── flutter...
│   ├── js...
│   ├── material_color_utilities...
│   ├── meta...
│   └── vector_math...
├── intercom_flutter_platform_interface 1.3.0
│   ├── plugin_platform_interface 2.1.4
│   │   └── meta...
│   └── flutter...
└── intercom_flutter_web 0.3.1
    ├── uuid 3.0.7
    │   └── crypto 3.0.3
    │       └── typed_data 1.3.2
    │           └── collection...
    ├── flutter...
    ├── flutter_web_plugins...
    └── intercom_flutter_platform_interface...
MaximeEglem commented 1 year ago

An issue has been raised on iOS intercom repo : https://github.com/intercom/intercom-ios/pull/414

They reverted the changed. It should work for you now.

On flutter plugin, it needs to trigger a fix version to make sure this won't happen again.

bry3005 commented 1 year ago

Still got the same issue even by deleting pub/pod cache.

Is there something special to do ?

Thank you

MaximeEglem commented 1 year ago

Did you tried : flutter clean; rm ios/Podfile.lock pubspec.lock; rm -rf ios/Pods ios/Runner.xcworkspace flutter pub get && pod repo update flutter pub run build_runner build --delete-conflicting-outputs

bry3005 commented 1 year ago

Did you tried : flutter clean; rm ios/Podfile.lock pubspec.lock; rm -rf ios/Pods ios/Runner.xcworkspace flutter pub get && pod repo update flutter pub run build_runner build --delete-conflicting-outputs

Just tested again with running all those commands. Same result 😔 Lexical or Preprocessor Issue (Xcode): 'Intercom/Intercom.h' file not found

doriansabo commented 1 year ago

Did you tried : flutter clean; rm ios/Podfile.lock pubspec.lock; rm -rf ios/Pods ios/Runner.xcworkspace flutter pub get && pod repo update flutter pub run build_runner build --delete-conflicting-outputs

Just tested again with running all those commands. Same result 😔 Lexical or Preprocessor Issue (Xcode): 'Intercom/Intercom.h' file not found

Same with me.

gabrimatic commented 1 year ago

Did you tried : flutter clean; rm ios/Podfile.lock pubspec.lock; rm -rf ios/Pods ios/Runner.xcworkspace flutter pub get && pod repo update flutter pub run build_runner build --delete-conflicting-outputs

Same here

Zazo032 commented 1 year ago

An issue has been raised on iOS intercom repo : intercom/intercom-ios#414

They reverted the changed. It should work for you now.

On flutter plugin, it needs to trigger a fix version to make sure this won't happen again.

No new release published yet, I can update it once it's done on Intercom's side

deepak786 commented 1 year ago

Can you try the version intercom_flutter: 7.8.0? Note: without the Caret symbol (^).

bry3005 commented 1 year ago

Can you try the version intercom_flutter: 7.8.0? Note: without the Caret symbol (^).

Same result Lexical or Preprocessor Issue (Xcode): 'Intercom/Intercom.h' file not found

deepak786 commented 1 year ago

Then let's wait for the new release version of Intercom iOS SDK as this issue is resolved in https://github.com/intercom/intercom-ios/pull/414

simplenotezy commented 1 year ago

@deepak786 what I don't understand is why it's not possible to rollback, as this is currently halting our release / deployment cycle. Usually I would just be able to revert to the previous version constraint, however, even when I do that, it keeps pulling in the faulty intercom pod 15.0.1

mikklfr commented 1 year ago

👋 Hello everyone, the issue is on the code downloaded on the latest version of cocoapod, reverting the version of the flutter package will not fix the build issue.

You can followup here : https://github.com/intercom/intercom-ios/pull/413 and also here https://github.com/intercom/intercom-ios/pull/414

deepak786 commented 1 year ago

The ios intercom_flutter.podspec file uses the optimistic operator (~>) https://github.com/v3rm0n/intercom_flutter/blob/dbe8a5ae41e914fb0883c2397b248968bd8ea5f7/intercom_flutter/ios/intercom_flutter.podspec#L20

This optimistic operator fetches the latest version from cocoapods. And recently this PR https://github.com/intercom/intercom-ios/pull/413 introduces this issue. But it is already reverted in https://github.com/intercom/intercom-ios/pull/414 and still they are working to resolve this issue.

Br1an-Boyle commented 1 year ago

This issue is now fixed.

deepak786 commented 1 year ago

Thanks for the update @Br1an-Boyle

I suggest everyone to do the following:

bry3005 commented 1 year ago

This issue is now fixed.

Still the same error on my side (even with flushing all cache)

deepak786 commented 1 year ago

@bry3005 Can you try these commands as well?

rm ios/Podfile.lock pubspec.lock
rm -rf ios/Pods
bry3005 commented 1 year ago

@bry3005 Can you try these commands as well?

rm ios/Podfile.lock pubspec.lock
rm -rf ios/Pods

same

bry3005 commented 1 year ago

@bry3005 Can you try these commands as well?

rm ios/Podfile.lock pubspec.lock
rm -rf ios/Pods

same

Manage to make it work by :

Thank you

mikklfr commented 1 year ago

Working fine now, they updated the repo, thanks everyone 👍

simplenotezy commented 1 year ago

@mikklfr what did you do to get it working exactly?

simplenotezy commented 1 year ago

And what version are you running? 7.8.1 or 7.8.0?

mikklfr commented 1 year ago

We are still on a old version: intercom_flutter: ^7.6.9

Local devs did a full flutter clean + pod cache clean so they have everything new on their computers. On the CI: we don't have caching there so did not have to clean the caches on the build agent.

simplenotezy commented 1 year ago

Ok, I tried this, but to no avail. I am still getting below error.

@oguibueno, could you provide step by step instructions?


❯ gs
On branch master
Your branch is up to date with 'remotes/origin/master'.

nothing to commit, working tree clean
❯ flutter clean
Cleaning Xcode workspace...                                         3.1s
Cleaning Xcode workspace...                                      1,887ms
Deleting build...                                                   43ms
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
❯ rm ios/Podfile.lock pubspec.lock
❯ rm -rf ios/Pods
❯ 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:07.7s)
+ _fe_analyzer_shared 58.0.0 (62.0.0 available)
+ _flutterfire_internals 1.3.3
+ after_layout 1.2.0
+ amplitude_flutter 3.15.0
+ analyzer 5.10.0 (6.0.0 available)
+ analyzer_plugin 0.11.2
+ animate_do 3.0.2
+ app_tracking_transparency 2.0.4
+ appsflyer_sdk 6.11.2
+ archive 3.3.7
+ args 2.4.2
+ async 2.11.0
+ auto_route 6.4.0 (7.6.0 available)
+ auto_route_generator 6.2.0 (7.1.1 available)
+ auto_size_text 3.0.0
+ awesome_flutter_extensions 1.1.1
+ black_hole_flutter 1.0.3
+ boolean_selector 2.1.1
+ build 2.4.1
+ build_config 1.1.1
+ build_daemon 4.0.0
+ build_resolvers 2.2.0 (2.2.1 available)
+ build_runner 2.4.6
+ build_runner_core 7.2.10
+ built_collection 5.1.1
+ built_value 8.6.1
+ cached_build_runner 0.0.7
+ cached_network_image 3.2.3
+ cached_network_image_platform_interface 2.0.0
+ cached_network_image_web 1.0.2
+ characters 1.3.0
+ checked_yaml 2.0.3
+ ci 0.1.0
+ circle_flags 1.0.4 (3.0.1 available)
+ cli_util 0.4.0
+ clock 1.1.1
+ code_builder 4.5.0
+ collection 1.17.1 (1.17.2 available)
+ connectivity_plus 3.0.6 (4.0.1 available)
+ connectivity_plus_platform_interface 1.2.4
+ contacts_service 0.6.3
+ convert 3.1.1
+ cross_file 0.3.3+4
+ crypto 3.0.3
+ csslib 1.0.0
+ cupertino_icons 1.0.5
+ 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)
+ custom_rounded_rectangle_border 0.2.0-nullsafety.0
+ dart_countries 3.0.3
+ dart_emoji 0.2.0+2
+ dart_style 2.3.1 (2.3.2 available)
+ dbus 0.7.8
+ device_frame 1.1.0
+ device_info_plus 8.2.2 (9.0.2 available)
+ device_info_plus_platform_interface 7.0.0
+ diacritic 0.1.4
+ dio 5.2.1+1
+ dismissible_page 1.0.2
+ dotted_border 2.0.0+3
+ extended_image 8.0.2
+ extended_image_library 3.5.2 (3.5.3 available)
+ fake_async 1.3.1
+ ffi 2.0.2
+ file 6.1.4 (7.0.0 available)
+ file_selector_linux 0.9.2
+ file_selector_macos 0.9.3
+ file_selector_platform_interface 2.6.0
+ file_selector_windows 0.9.3
+ firebase_analytics 10.4.3
+ firebase_analytics_platform_interface 3.6.3
+ firebase_analytics_web 0.5.4+3
+ firebase_core 2.14.0
+ firebase_core_platform_interface 4.8.0
+ firebase_core_web 2.6.0
+ firebase_crashlytics 3.3.3
+ firebase_crashlytics_platform_interface 3.6.3
+ firebase_messaging 14.6.4
+ firebase_messaging_platform_interface 4.5.3
+ firebase_messaging_web 3.5.3
+ fixnum 1.1.0
+ flutter 0.0.0 from sdk flutter
+ flutter_app_badger 1.5.0
+ flutter_blurhash 0.7.0
+ flutter_cache_manager 3.3.1
+ flutter_dotenv 5.1.0
+ flutter_hooks 0.18.6
+ flutter_keyboard_visibility 5.4.1
+ flutter_keyboard_visibility_linux 1.0.0
+ flutter_keyboard_visibility_macos 1.0.0
+ flutter_keyboard_visibility_platform_interface 2.0.0
+ flutter_keyboard_visibility_web 2.0.0
+ flutter_keyboard_visibility_windows 1.0.0
+ flutter_lints 2.0.2
+ flutter_local_notifications 14.1.1 (15.0.0 available)
+ flutter_local_notifications_linux 4.0.0+1
+ flutter_local_notifications_platform_interface 7.0.0+1
+ flutter_localizations 0.0.0 from sdk flutter
+ flutter_mobx 2.0.6+5
+ flutter_native_image 0.0.6+1 (discontinued)
+ flutter_native_splash 2.3.1
+ flutter_plugin_android_lifecycle 2.0.15
+ flutter_riverpod 2.3.6
+ flutter_secure_storage 8.0.0
+ flutter_secure_storage_linux 1.1.3
+ flutter_secure_storage_macos 3.0.0
+ flutter_secure_storage_platform_interface 1.0.1
+ flutter_secure_storage_web 1.1.1
+ flutter_secure_storage_windows 2.0.0
+ flutter_sms 2.3.3
+ flutter_staggered_grid_view 0.6.2
+ flutter_svg 2.0.7
+ flutter_test 0.0.0 from sdk flutter
+ flutter_translate 4.0.4
+ flutter_web_plugins 0.0.0 from sdk flutter
+ freezed 2.3.3 (2.3.5 available)
+ freezed_annotation 2.2.0
+ frontend_server_client 3.2.0
+ geolocator 9.0.2
+ geolocator_android 4.1.9
+ geolocator_apple 2.2.7
+ geolocator_platform_interface 4.0.7
+ geolocator_web 2.1.6
+ geolocator_windows 0.1.1
+ giphy_get 3.4.1
+ glob 2.1.2
+ google_fonts 4.0.4 (5.1.0 available)
+ gql 0.14.0 (1.0.0 available)
+ gql_dedupe_link 2.0.3+1
+ 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)
+ graphql 5.1.3
+ graphql_flutter 5.1.2
+ graphs 2.3.1
+ hive 2.2.3
+ hotreloader 3.0.6
+ html 0.15.4
+ http 0.13.6 (1.1.0 available)
+ http_client_helper 2.0.4 (3.0.0 available)
+ http_multi_server 3.2.1
+ http_parser 4.0.2
+ image 4.0.17
+ 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.9 (1.0.0 available)
+ image_picker_android 0.8.7+3
+ image_picker_for_web 2.2.0
+ image_picker_ios 0.8.8
+ image_picker_linux 0.2.1
+ image_picker_macos 0.2.1
+ image_picker_platform_interface 2.8.0
+ image_picker_windows 0.2.1
+ in_app_review 2.0.6
+ in_app_review_platform_interface 2.0.4
+ intl 0.18.0 (0.18.1 available)
+ io 1.0.4
+ is_first_run 1.0.0
+ js 0.6.7
+ json_annotation 4.8.1
+ json_serializable 6.6.2 (6.7.1 available)
+ lints 2.1.1
+ list_diff 2.0.1
+ logger 1.4.0
+ logging 1.2.0
+ lottie 2.4.0
+ matcher 0.12.15 (0.12.16 available)
+ material_color_utilities 0.2.0 (0.8.0 available)
+ meta 1.9.1
+ mime 1.0.4
+ mobx 2.2.0
+ multiple_random_choice 0.1.3+1
+ nested 1.0.0
+ nm 0.5.0
+ normalize 0.7.2 (0.8.2+1 available)
+ octo_image 1.0.2
+ package_config 2.1.0
+ package_info_plus 3.1.2 (4.0.2 available)
+ package_info_plus_platform_interface 2.0.1
+ path 1.8.3
+ path_drawing 1.0.1
+ path_parsing 1.0.1
+ path_provider 2.0.15
+ path_provider_android 2.0.27
+ path_provider_foundation 2.2.3
+ path_provider_linux 2.1.11
+ path_provider_platform_interface 2.0.6
+ path_provider_windows 2.1.7
+ permission_handler 10.4.1
+ permission_handler_android 10.3.0
+ permission_handler_apple 9.1.2
+ permission_handler_platform_interface 3.11.0+1
+ permission_handler_windows 0.1.3
+ petitparser 5.4.0
+ phone_form_field 7.1.0 from git https://github.com/simplenotezy/phone_form_field.git at e8ac02
+ phone_number_metadata 5.0.5
+ phone_numbers_parser 7.0.2 (8.0.0 available)
+ pin_input_text_field 4.5.1
+ platform 3.1.0
+ plugin_platform_interface 2.1.4
+ pointer_interceptor 0.9.3+4
+ pointycastle 3.7.3
+ pool 1.5.1
+ process 4.2.4
+ provider 6.0.5
+ pub_semver 2.1.4
+ pubspec_parse 1.2.3
+ pull_to_refresh 2.0.0
+ qr 3.0.1
+ qr_flutter 4.1.0
+ quiver 3.2.1
+ recase 4.1.0
+ redis 3.1.0
+ reorderables 0.6.0
+ riverpod 2.3.6
+ riverpod_analyzer_utils 0.3.0 (0.3.1 available)
+ riverpod_annotation 2.1.1
+ riverpod_generator 2.2.2 (2.2.3 available)
+ riverpod_lint 1.3.1 (1.3.2 available)
+ rubber 1.1.0
+ rxdart 0.27.7
+ screenshot_callback 2.0.3 from git https://github.com/mrashidcit/flutter_screenshot_callback.git at 167315
+ scroll_to_index 3.0.1
+ sembast 3.4.9
+ share_plus 6.3.4 (7.0.2 available)
+ share_plus_platform_interface 3.2.1
+ shared_preferences 2.2.0
+ shared_preferences_android 2.2.0
+ shared_preferences_foundation 2.3.0
+ shared_preferences_linux 2.3.0
+ shared_preferences_platform_interface 2.3.0
+ shared_preferences_web 2.2.0
+ shared_preferences_windows 2.3.0
+ shelf 1.4.1
+ shelf_web_socket 1.0.4
+ simple_tooltip 1.2.0
+ skeletons 0.0.3
+ sky_engine 0.0.99 from sdk flutter
+ sliver_tools 0.2.10
+ sms_autofill 2.2.0 from git https://github.com/sohamThence/sms_autofill.git at e800c3
+ snapkit 2.0.0
+ social_share 2.3.1
+ source_gen 1.4.0
+ source_helper 1.3.3 (1.3.4 available)
+ source_span 1.9.1 (1.10.0 available)
+ sqflite 2.2.8+4
+ sqflite_common 2.4.5+1
+ stack_trace 1.11.0
+ state_notifier 0.7.2+1
+ storybook_flutter 0.12.0
+ stream_channel 2.1.1 (2.1.2 available)
+ stream_transform 2.1.0
+ string_scanner 1.2.0
+ swipeable_page_route 0.4.0
+ synchronized 3.1.0
+ term_glyph 1.2.1
+ test_api 0.5.1 (0.6.1 available)
+ timeago 3.5.0
+ timezone 0.9.2
+ timing 1.0.1
+ typed_data 1.3.2
+ uni_links 0.5.1
+ uni_links_platform_interface 1.0.0
+ uni_links_web 0.1.0
+ universal_io 2.2.2
+ url_launcher 6.1.11
+ url_launcher_android 6.0.36
+ url_launcher_ios 6.1.4
+ url_launcher_linux 3.0.5
+ url_launcher_macos 3.0.5
+ url_launcher_platform_interface 2.1.3
+ url_launcher_web 2.0.17
+ url_launcher_windows 3.0.6
+ uuid 3.0.7
+ vector_graphics 1.1.7
+ vector_graphics_codec 1.1.7
+ vector_graphics_compiler 1.1.7
+ vector_math 2.1.4
+ video_player 2.7.0
+ video_player_android 2.4.9
+ video_player_avfoundation 2.4.6
+ video_player_platform_interface 6.1.0
+ video_player_web 2.0.16
+ visibility_detector 0.4.0+2
+ vm_service 11.7.2
+ watcher 1.1.0
! web_socket_channel 2.2.0 (overridden) (2.4.0 available)
+ win32 3.1.4 (5.0.5 available)
+ xdg_directories 1.0.0
+ xml 6.3.0
+ yaml 3.1.2
Changed 297 dependencies!
❯ 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.10.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.10.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.10.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
Downloading dependencies
Installing Amplitude (8.16.1)
Installing AnalyticsConnector (1.0.1)
Installing AppsFlyerFramework (6.10.1)
Installing FMDB (2.7.5)
Installing Firebase (10.10.0)
Installing FirebaseAnalytics (10.10.0)
Installing FirebaseCore (10.10.0)
Installing FirebaseCoreExtension (10.11.0)
Installing FirebaseCoreInternal (10.11.0)
Installing FirebaseCrashlytics (10.10.0)
Installing FirebaseInstallations (10.11.0)
Installing FirebaseMessaging (10.10.0)
Installing FirebaseSessions (10.11.0)
Installing Flutter (1.0.0)
Installing GoogleAppMeasurement (10.10.0)
Installing GoogleDataTransport (9.2.3)
Installing GoogleUtilities (7.11.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.3)
Installing firebase_core (2.14.0)
Installing firebase_crashlytics (3.3.3)
Installing firebase_messaging (14.6.4)
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 nanopb (2.30909.0)
Installing package_info_plus (0.4.5)
Installing path_provider_foundation (0.0.1)
Installing permission_handler_apple (9.1.1)
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 37 dependencies from the Podfile and 59 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.
❯ ..
❯ pub get
zsh: command not found: pub
❯ pub get
zsh: command not found: pub
❯ flutter pub get
Resolving dependencies...
  _fe_analyzer_shared 58.0.0 (62.0.0 available)
  analyzer 5.10.0 (6.0.0 available)
  auto_route 6.4.0 (7.6.0 available)
  auto_route_generator 6.2.0 (7.1.1 available)
  build_resolvers 2.2.0 (2.2.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)
  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)
  extended_image_library 3.5.2 (3.5.3 available)
  file 6.1.4 (7.0.0 available)
  flutter_local_notifications 14.1.1 (15.0.0 available)
  flutter_native_image 0.0.6+1 (discontinued)
  freezed 2.3.3 (2.3.5 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)
  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.9 (1.0.0 available)
  intl 0.18.0 (0.18.1 available)
  json_serializable 6.6.2 (6.7.1 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)
  phone_numbers_parser 7.0.2 (8.0.0 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)
  share_plus 6.3.4 (7.0.2 available)
  source_helper 1.3.3 (1.3.4 available)
  source_span 1.9.1 (1.10.0 available)
  stream_channel 2.1.1 (2.1.2 available)
  test_api 0.5.1 (0.6.1 available)
! web_socket_channel 2.2.0 (overridden) (2.4.0 available)
  win32 3.1.4 (5.0.5 available)
Got dependencies!
❯ cd ios
❯ pod install --repo-update
Updating local specs repositories
Analyzing dependencies
firebase_analytics: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.10.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.10.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 37 dependencies from the Podfile and 59 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 pub add intercom_flutter
Resolving dependencies...
  _fe_analyzer_shared 58.0.0 (62.0.0 available)
  analyzer 5.10.0 (6.0.0 available)
  auto_route 6.4.0 (7.6.0 available)
  auto_route_generator 6.2.0 (7.1.1 available)
  build_resolvers 2.2.0 (2.2.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)
  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)
  extended_image_library 3.5.2 (3.5.3 available)
  file 6.1.4 (7.0.0 available)
  flutter_local_notifications 14.1.1 (15.0.0 available)
  flutter_native_image 0.0.6+1 (discontinued)
  freezed 2.3.3 (2.3.5 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)
  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.9 (1.0.0 available)
+ intercom_flutter 7.8.1
+ intercom_flutter_platform_interface 1.3.0
+ intercom_flutter_web 0.3.1
  intl 0.18.0 (0.18.1 available)
  json_serializable 6.6.2 (6.7.1 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)
  phone_numbers_parser 7.0.2 (8.0.0 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)
  share_plus 6.3.4 (7.0.2 available)
  source_helper 1.3.3 (1.3.4 available)
  source_span 1.9.1 (1.10.0 available)
  stream_channel 2.1.1 (2.1.2 available)
  test_api 0.5.1 (0.6.1 available)
! web_socket_channel 2.2.0 (overridden) (2.4.0 available)
  win32 3.1.4 (5.0.5 available)
Changed 3 dependencies!
❯ flutter pub get
Resolving dependencies...
  _fe_analyzer_shared 58.0.0 (62.0.0 available)
  analyzer 5.10.0 (6.0.0 available)
  auto_route 6.4.0 (7.6.0 available)
  auto_route_generator 6.2.0 (7.1.1 available)
  build_resolvers 2.2.0 (2.2.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)
  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)
  extended_image_library 3.5.2 (3.5.3 available)
  file 6.1.4 (7.0.0 available)
  flutter_local_notifications 14.1.1 (15.0.0 available)
  flutter_native_image 0.0.6+1 (discontinued)
  freezed 2.3.3 (2.3.5 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)
  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.9 (1.0.0 available)
  intl 0.18.0 (0.18.1 available)
  json_serializable 6.6.2 (6.7.1 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)
  phone_numbers_parser 7.0.2 (8.0.0 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)
  share_plus 6.3.4 (7.0.2 available)
  source_helper 1.3.3 (1.3.4 available)
  source_span 1.9.1 (1.10.0 available)
  stream_channel 2.1.1 (2.1.2 available)
  test_api 0.5.1 (0.6.1 available)
! web_socket_channel 2.2.0 (overridden) (2.4.0 available)
  win32 3.1.4 (5.0.5 available)
Got dependencies!
❯ cd ios
❯ pod install --repo-update
Updating local specs repositories
Analyzing dependencies
firebase_analytics: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.10.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.10.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
Downloading dependencies
Installing Amplitude (8.16.1)
Installing AnalyticsConnector (1.0.1)
Installing AppsFlyerFramework (6.10.1)
Installing FMDB (2.7.5)
Installing Firebase (10.10.0)
Installing FirebaseAnalytics (10.10.0)
Installing FirebaseCore (10.10.0)
Installing FirebaseCoreExtension (10.11.0)
Installing FirebaseCoreInternal (10.11.0)
Installing FirebaseCrashlytics (10.10.0)
Installing FirebaseInstallations (10.11.0)
Installing FirebaseMessaging (10.10.0)
Installing FirebaseSessions (10.11.0)
Installing Flutter (1.0.0)
Installing GoogleAppMeasurement (10.10.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.3)
Installing firebase_core (2.14.0)
Installing firebase_crashlytics (3.3.3)
Installing firebase_messaging (14.6.4)
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.1.1)
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,349ms
Running Xcode build...
Xcode build done.                                            5.7s
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.
bry3005 commented 1 year ago

Ok, I tried this, but to no avail. I am still getting below error.

@oguibueno, could you provide step by step instructions?

❯ gs
On branch master
Your branch is up to date with 'remotes/origin/master'.

nothing to commit, working tree clean
❯ flutter clean
Cleaning Xcode workspace...                                         3.1s
Cleaning Xcode workspace...                                      1,887ms
Deleting build...                                                   43ms
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
❯ rm ios/Podfile.lock pubspec.lock
❯ rm -rf ios/Pods
❯ 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:07.7s)
+ _fe_analyzer_shared 58.0.0 (62.0.0 available)
+ _flutterfire_internals 1.3.3
+ after_layout 1.2.0
+ amplitude_flutter 3.15.0
+ analyzer 5.10.0 (6.0.0 available)
+ analyzer_plugin 0.11.2
+ animate_do 3.0.2
+ app_tracking_transparency 2.0.4
+ appsflyer_sdk 6.11.2
+ archive 3.3.7
+ args 2.4.2
+ async 2.11.0
+ auto_route 6.4.0 (7.6.0 available)
+ auto_route_generator 6.2.0 (7.1.1 available)
+ auto_size_text 3.0.0
+ awesome_flutter_extensions 1.1.1
+ black_hole_flutter 1.0.3
+ boolean_selector 2.1.1
+ build 2.4.1
+ build_config 1.1.1
+ build_daemon 4.0.0
+ build_resolvers 2.2.0 (2.2.1 available)
+ build_runner 2.4.6
+ build_runner_core 7.2.10
+ built_collection 5.1.1
+ built_value 8.6.1
+ cached_build_runner 0.0.7
+ cached_network_image 3.2.3
+ cached_network_image_platform_interface 2.0.0
+ cached_network_image_web 1.0.2
+ characters 1.3.0
+ checked_yaml 2.0.3
+ ci 0.1.0
+ circle_flags 1.0.4 (3.0.1 available)
+ cli_util 0.4.0
+ clock 1.1.1
+ code_builder 4.5.0
+ collection 1.17.1 (1.17.2 available)
+ connectivity_plus 3.0.6 (4.0.1 available)
+ connectivity_plus_platform_interface 1.2.4
+ contacts_service 0.6.3
+ convert 3.1.1
+ cross_file 0.3.3+4
+ crypto 3.0.3
+ csslib 1.0.0
+ cupertino_icons 1.0.5
+ 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)
+ custom_rounded_rectangle_border 0.2.0-nullsafety.0
+ dart_countries 3.0.3
+ dart_emoji 0.2.0+2
+ dart_style 2.3.1 (2.3.2 available)
+ dbus 0.7.8
+ device_frame 1.1.0
+ device_info_plus 8.2.2 (9.0.2 available)
+ device_info_plus_platform_interface 7.0.0
+ diacritic 0.1.4
+ dio 5.2.1+1
+ dismissible_page 1.0.2
+ dotted_border 2.0.0+3
+ extended_image 8.0.2
+ extended_image_library 3.5.2 (3.5.3 available)
+ fake_async 1.3.1
+ ffi 2.0.2
+ file 6.1.4 (7.0.0 available)
+ file_selector_linux 0.9.2
+ file_selector_macos 0.9.3
+ file_selector_platform_interface 2.6.0
+ file_selector_windows 0.9.3
+ firebase_analytics 10.4.3
+ firebase_analytics_platform_interface 3.6.3
+ firebase_analytics_web 0.5.4+3
+ firebase_core 2.14.0
+ firebase_core_platform_interface 4.8.0
+ firebase_core_web 2.6.0
+ firebase_crashlytics 3.3.3
+ firebase_crashlytics_platform_interface 3.6.3
+ firebase_messaging 14.6.4
+ firebase_messaging_platform_interface 4.5.3
+ firebase_messaging_web 3.5.3
+ fixnum 1.1.0
+ flutter 0.0.0 from sdk flutter
+ flutter_app_badger 1.5.0
+ flutter_blurhash 0.7.0
+ flutter_cache_manager 3.3.1
+ flutter_dotenv 5.1.0
+ flutter_hooks 0.18.6
+ flutter_keyboard_visibility 5.4.1
+ flutter_keyboard_visibility_linux 1.0.0
+ flutter_keyboard_visibility_macos 1.0.0
+ flutter_keyboard_visibility_platform_interface 2.0.0
+ flutter_keyboard_visibility_web 2.0.0
+ flutter_keyboard_visibility_windows 1.0.0
+ flutter_lints 2.0.2
+ flutter_local_notifications 14.1.1 (15.0.0 available)
+ flutter_local_notifications_linux 4.0.0+1
+ flutter_local_notifications_platform_interface 7.0.0+1
+ flutter_localizations 0.0.0 from sdk flutter
+ flutter_mobx 2.0.6+5
+ flutter_native_image 0.0.6+1 (discontinued)
+ flutter_native_splash 2.3.1
+ flutter_plugin_android_lifecycle 2.0.15
+ flutter_riverpod 2.3.6
+ flutter_secure_storage 8.0.0
+ flutter_secure_storage_linux 1.1.3
+ flutter_secure_storage_macos 3.0.0
+ flutter_secure_storage_platform_interface 1.0.1
+ flutter_secure_storage_web 1.1.1
+ flutter_secure_storage_windows 2.0.0
+ flutter_sms 2.3.3
+ flutter_staggered_grid_view 0.6.2
+ flutter_svg 2.0.7
+ flutter_test 0.0.0 from sdk flutter
+ flutter_translate 4.0.4
+ flutter_web_plugins 0.0.0 from sdk flutter
+ freezed 2.3.3 (2.3.5 available)
+ freezed_annotation 2.2.0
+ frontend_server_client 3.2.0
+ geolocator 9.0.2
+ geolocator_android 4.1.9
+ geolocator_apple 2.2.7
+ geolocator_platform_interface 4.0.7
+ geolocator_web 2.1.6
+ geolocator_windows 0.1.1
+ giphy_get 3.4.1
+ glob 2.1.2
+ google_fonts 4.0.4 (5.1.0 available)
+ gql 0.14.0 (1.0.0 available)
+ gql_dedupe_link 2.0.3+1
+ 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)
+ graphql 5.1.3
+ graphql_flutter 5.1.2
+ graphs 2.3.1
+ hive 2.2.3
+ hotreloader 3.0.6
+ html 0.15.4
+ http 0.13.6 (1.1.0 available)
+ http_client_helper 2.0.4 (3.0.0 available)
+ http_multi_server 3.2.1
+ http_parser 4.0.2
+ image 4.0.17
+ 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.9 (1.0.0 available)
+ image_picker_android 0.8.7+3
+ image_picker_for_web 2.2.0
+ image_picker_ios 0.8.8
+ image_picker_linux 0.2.1
+ image_picker_macos 0.2.1
+ image_picker_platform_interface 2.8.0
+ image_picker_windows 0.2.1
+ in_app_review 2.0.6
+ in_app_review_platform_interface 2.0.4
+ intl 0.18.0 (0.18.1 available)
+ io 1.0.4
+ is_first_run 1.0.0
+ js 0.6.7
+ json_annotation 4.8.1
+ json_serializable 6.6.2 (6.7.1 available)
+ lints 2.1.1
+ list_diff 2.0.1
+ logger 1.4.0
+ logging 1.2.0
+ lottie 2.4.0
+ matcher 0.12.15 (0.12.16 available)
+ material_color_utilities 0.2.0 (0.8.0 available)
+ meta 1.9.1
+ mime 1.0.4
+ mobx 2.2.0
+ multiple_random_choice 0.1.3+1
+ nested 1.0.0
+ nm 0.5.0
+ normalize 0.7.2 (0.8.2+1 available)
+ octo_image 1.0.2
+ package_config 2.1.0
+ package_info_plus 3.1.2 (4.0.2 available)
+ package_info_plus_platform_interface 2.0.1
+ path 1.8.3
+ path_drawing 1.0.1
+ path_parsing 1.0.1
+ path_provider 2.0.15
+ path_provider_android 2.0.27
+ path_provider_foundation 2.2.3
+ path_provider_linux 2.1.11
+ path_provider_platform_interface 2.0.6
+ path_provider_windows 2.1.7
+ permission_handler 10.4.1
+ permission_handler_android 10.3.0
+ permission_handler_apple 9.1.2
+ permission_handler_platform_interface 3.11.0+1
+ permission_handler_windows 0.1.3
+ petitparser 5.4.0
+ phone_form_field 7.1.0 from git https://github.com/simplenotezy/phone_form_field.git at e8ac02
+ phone_number_metadata 5.0.5
+ phone_numbers_parser 7.0.2 (8.0.0 available)
+ pin_input_text_field 4.5.1
+ platform 3.1.0
+ plugin_platform_interface 2.1.4
+ pointer_interceptor 0.9.3+4
+ pointycastle 3.7.3
+ pool 1.5.1
+ process 4.2.4
+ provider 6.0.5
+ pub_semver 2.1.4
+ pubspec_parse 1.2.3
+ pull_to_refresh 2.0.0
+ qr 3.0.1
+ qr_flutter 4.1.0
+ quiver 3.2.1
+ recase 4.1.0
+ redis 3.1.0
+ reorderables 0.6.0
+ riverpod 2.3.6
+ riverpod_analyzer_utils 0.3.0 (0.3.1 available)
+ riverpod_annotation 2.1.1
+ riverpod_generator 2.2.2 (2.2.3 available)
+ riverpod_lint 1.3.1 (1.3.2 available)
+ rubber 1.1.0
+ rxdart 0.27.7
+ screenshot_callback 2.0.3 from git https://github.com/mrashidcit/flutter_screenshot_callback.git at 167315
+ scroll_to_index 3.0.1
+ sembast 3.4.9
+ share_plus 6.3.4 (7.0.2 available)
+ share_plus_platform_interface 3.2.1
+ shared_preferences 2.2.0
+ shared_preferences_android 2.2.0
+ shared_preferences_foundation 2.3.0
+ shared_preferences_linux 2.3.0
+ shared_preferences_platform_interface 2.3.0
+ shared_preferences_web 2.2.0
+ shared_preferences_windows 2.3.0
+ shelf 1.4.1
+ shelf_web_socket 1.0.4
+ simple_tooltip 1.2.0
+ skeletons 0.0.3
+ sky_engine 0.0.99 from sdk flutter
+ sliver_tools 0.2.10
+ sms_autofill 2.2.0 from git https://github.com/sohamThence/sms_autofill.git at e800c3
+ snapkit 2.0.0
+ social_share 2.3.1
+ source_gen 1.4.0
+ source_helper 1.3.3 (1.3.4 available)
+ source_span 1.9.1 (1.10.0 available)
+ sqflite 2.2.8+4
+ sqflite_common 2.4.5+1
+ stack_trace 1.11.0
+ state_notifier 0.7.2+1
+ storybook_flutter 0.12.0
+ stream_channel 2.1.1 (2.1.2 available)
+ stream_transform 2.1.0
+ string_scanner 1.2.0
+ swipeable_page_route 0.4.0
+ synchronized 3.1.0
+ term_glyph 1.2.1
+ test_api 0.5.1 (0.6.1 available)
+ timeago 3.5.0
+ timezone 0.9.2
+ timing 1.0.1
+ typed_data 1.3.2
+ uni_links 0.5.1
+ uni_links_platform_interface 1.0.0
+ uni_links_web 0.1.0
+ universal_io 2.2.2
+ url_launcher 6.1.11
+ url_launcher_android 6.0.36
+ url_launcher_ios 6.1.4
+ url_launcher_linux 3.0.5
+ url_launcher_macos 3.0.5
+ url_launcher_platform_interface 2.1.3
+ url_launcher_web 2.0.17
+ url_launcher_windows 3.0.6
+ uuid 3.0.7
+ vector_graphics 1.1.7
+ vector_graphics_codec 1.1.7
+ vector_graphics_compiler 1.1.7
+ vector_math 2.1.4
+ video_player 2.7.0
+ video_player_android 2.4.9
+ video_player_avfoundation 2.4.6
+ video_player_platform_interface 6.1.0
+ video_player_web 2.0.16
+ visibility_detector 0.4.0+2
+ vm_service 11.7.2
+ watcher 1.1.0
! web_socket_channel 2.2.0 (overridden) (2.4.0 available)
+ win32 3.1.4 (5.0.5 available)
+ xdg_directories 1.0.0
+ xml 6.3.0
+ yaml 3.1.2
Changed 297 dependencies!
❯ 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.10.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.10.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.10.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
Downloading dependencies
Installing Amplitude (8.16.1)
Installing AnalyticsConnector (1.0.1)
Installing AppsFlyerFramework (6.10.1)
Installing FMDB (2.7.5)
Installing Firebase (10.10.0)
Installing FirebaseAnalytics (10.10.0)
Installing FirebaseCore (10.10.0)
Installing FirebaseCoreExtension (10.11.0)
Installing FirebaseCoreInternal (10.11.0)
Installing FirebaseCrashlytics (10.10.0)
Installing FirebaseInstallations (10.11.0)
Installing FirebaseMessaging (10.10.0)
Installing FirebaseSessions (10.11.0)
Installing Flutter (1.0.0)
Installing GoogleAppMeasurement (10.10.0)
Installing GoogleDataTransport (9.2.3)
Installing GoogleUtilities (7.11.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.3)
Installing firebase_core (2.14.0)
Installing firebase_crashlytics (3.3.3)
Installing firebase_messaging (14.6.4)
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 nanopb (2.30909.0)
Installing package_info_plus (0.4.5)
Installing path_provider_foundation (0.0.1)
Installing permission_handler_apple (9.1.1)
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 37 dependencies from the Podfile and 59 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.
❯ ..
❯ pub get
zsh: command not found: pub
❯ pub get
zsh: command not found: pub
❯ flutter pub get
Resolving dependencies...
  _fe_analyzer_shared 58.0.0 (62.0.0 available)
  analyzer 5.10.0 (6.0.0 available)
  auto_route 6.4.0 (7.6.0 available)
  auto_route_generator 6.2.0 (7.1.1 available)
  build_resolvers 2.2.0 (2.2.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)
  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)
  extended_image_library 3.5.2 (3.5.3 available)
  file 6.1.4 (7.0.0 available)
  flutter_local_notifications 14.1.1 (15.0.0 available)
  flutter_native_image 0.0.6+1 (discontinued)
  freezed 2.3.3 (2.3.5 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)
  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.9 (1.0.0 available)
  intl 0.18.0 (0.18.1 available)
  json_serializable 6.6.2 (6.7.1 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)
  phone_numbers_parser 7.0.2 (8.0.0 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)
  share_plus 6.3.4 (7.0.2 available)
  source_helper 1.3.3 (1.3.4 available)
  source_span 1.9.1 (1.10.0 available)
  stream_channel 2.1.1 (2.1.2 available)
  test_api 0.5.1 (0.6.1 available)
! web_socket_channel 2.2.0 (overridden) (2.4.0 available)
  win32 3.1.4 (5.0.5 available)
Got dependencies!
❯ cd ios
❯ pod install --repo-update
Updating local specs repositories
Analyzing dependencies
firebase_analytics: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.10.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.10.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 37 dependencies from the Podfile and 59 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 pub add intercom_flutter
Resolving dependencies...
  _fe_analyzer_shared 58.0.0 (62.0.0 available)
  analyzer 5.10.0 (6.0.0 available)
  auto_route 6.4.0 (7.6.0 available)
  auto_route_generator 6.2.0 (7.1.1 available)
  build_resolvers 2.2.0 (2.2.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)
  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)
  extended_image_library 3.5.2 (3.5.3 available)
  file 6.1.4 (7.0.0 available)
  flutter_local_notifications 14.1.1 (15.0.0 available)
  flutter_native_image 0.0.6+1 (discontinued)
  freezed 2.3.3 (2.3.5 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)
  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.9 (1.0.0 available)
+ intercom_flutter 7.8.1
+ intercom_flutter_platform_interface 1.3.0
+ intercom_flutter_web 0.3.1
  intl 0.18.0 (0.18.1 available)
  json_serializable 6.6.2 (6.7.1 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)
  phone_numbers_parser 7.0.2 (8.0.0 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)
  share_plus 6.3.4 (7.0.2 available)
  source_helper 1.3.3 (1.3.4 available)
  source_span 1.9.1 (1.10.0 available)
  stream_channel 2.1.1 (2.1.2 available)
  test_api 0.5.1 (0.6.1 available)
! web_socket_channel 2.2.0 (overridden) (2.4.0 available)
  win32 3.1.4 (5.0.5 available)
Changed 3 dependencies!
❯ flutter pub get
Resolving dependencies...
  _fe_analyzer_shared 58.0.0 (62.0.0 available)
  analyzer 5.10.0 (6.0.0 available)
  auto_route 6.4.0 (7.6.0 available)
  auto_route_generator 6.2.0 (7.1.1 available)
  build_resolvers 2.2.0 (2.2.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)
  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)
  extended_image_library 3.5.2 (3.5.3 available)
  file 6.1.4 (7.0.0 available)
  flutter_local_notifications 14.1.1 (15.0.0 available)
  flutter_native_image 0.0.6+1 (discontinued)
  freezed 2.3.3 (2.3.5 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)
  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.9 (1.0.0 available)
  intl 0.18.0 (0.18.1 available)
  json_serializable 6.6.2 (6.7.1 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)
  phone_numbers_parser 7.0.2 (8.0.0 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)
  share_plus 6.3.4 (7.0.2 available)
  source_helper 1.3.3 (1.3.4 available)
  source_span 1.9.1 (1.10.0 available)
  stream_channel 2.1.1 (2.1.2 available)
  test_api 0.5.1 (0.6.1 available)
! web_socket_channel 2.2.0 (overridden) (2.4.0 available)
  win32 3.1.4 (5.0.5 available)
Got dependencies!
❯ cd ios
❯ pod install --repo-update
Updating local specs repositories
Analyzing dependencies
firebase_analytics: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.10.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.10.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
Downloading dependencies
Installing Amplitude (8.16.1)
Installing AnalyticsConnector (1.0.1)
Installing AppsFlyerFramework (6.10.1)
Installing FMDB (2.7.5)
Installing Firebase (10.10.0)
Installing FirebaseAnalytics (10.10.0)
Installing FirebaseCore (10.10.0)
Installing FirebaseCoreExtension (10.11.0)
Installing FirebaseCoreInternal (10.11.0)
Installing FirebaseCrashlytics (10.10.0)
Installing FirebaseInstallations (10.11.0)
Installing FirebaseMessaging (10.10.0)
Installing FirebaseSessions (10.11.0)
Installing Flutter (1.0.0)
Installing GoogleAppMeasurement (10.10.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.3)
Installing firebase_core (2.14.0)
Installing firebase_crashlytics (3.3.3)
Installing firebase_messaging (14.6.4)
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.1.1)
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,349ms
Running Xcode build...
Xcode build done.                                            5.7s
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.

Did you tried this ? https://github.com/v3rm0n/intercom_flutter/issues/325#issuecomment-1618670440 For me the command was not working and this made is work

simplenotezy commented 1 year ago

@bry3005 yes, the output you replied to is actually a combination of both methods. also tried yours solely, which didn't work either.

simplenotezy commented 1 year ago

I restarted the previously failing build and now it seems to be building correctly. Still wondering what on my machine is caching so hard, and how to get rid of it. Clearly deleting pods, running flutter clean, running pub cache clean, and similar does not work.

joknjokn commented 1 year ago

We are still having issues with this. It's blocking us from doing any iOS-building.

@idy , since you closed this issue, can you provide a proven solution?

simplenotezy commented 1 year ago

@joknjokn Our builds are working, the ones who failed previously will now run if you simply restart the job. However, as I stated above cocoapods are having some quite heavy caching that is still fetching the only faulty version.

Try this simple command first pod cache clean 'Intercom' --all. If that does not work, I suggest you try this nuke method:

  1. pod cache clean --all
  2. Remove the CocoaPods cache in Xcode:
    • Open Xcode.
    • Go to "Preferences" from the Xcode menu.
    • Select the "Locations" tab.
    • Click on the small arrow next to "Derived Data" to open the folder in Finder.
    • Delete the "DerivedData" folder.
  3. sudo gem uninstall cocoapods
  4. sudo gem install cocoapods
  5. From your project folder, run the following:
    • rm -rf ios/Pods
    • rm ios/Podfile.lock pubspec.lock
    • flutter clean
    • flutter pub get
    • cd ios && pod install

Now you hopefully should be able to build

joknjokn commented 1 year ago

@simplenotezy Thank you - that worked!