Parse Issue (Xcode): Module 'url_launcher_ios' not found - ios

i'm trying to using package: url_launcher of flutter to make call.
my project working til well and when i install url_launcher i got error like this
Parse Issue (Xcode): Module 'url_launcher_ios' not found
my flutter doctor fine
[✓] Flutter (Channel stable, 3.3.10, on macOS 13.1 22C65 darwin-arm, locale en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] IntelliJ IDEA Community Edition (version 2022.1)
[✓] VS Code (version 1.65.2)
[✓] Connected device (4 available)
[✓] HTTP Host Availability
• No issues found!
some way i also try
flutter clean & flutter pub get
pod update repo && pod install

Try this:
Close Xcode
Check if your minimum deployed version in the pod file is not commented
Check if the package scheme is added in the info.plist file, here.
<key>LSApplicationQueriesSchemes</key> <array> <string>sms</string> <string>tel</string> </array>
Use the lastest version of the package (which is 6.1.7) (as of the date of this answer).
Do and run the following
Delete the pubspec.lock file in the project app directory.
flutter clean
flutter pub get
In the ios directory, run
pod install & pod install --repo-update

Related

Error (Xcode): 'Flutter/Flutter.h' file not found /Users/macbook/Developer/RobyHub/mobile/admin-app/ios/Runner/GeneratedPluginRegistrant.h:9:8

Error (Xcode): 'Flutter/Flutter.h' file not found
/Users/macbook/Developer/RobyHub/mobile/admin-app/ios/Runner/GeneratedPluginRegistrant.h:9:8
Error (Xcode): failed to emit precompiled header
'/Users/macbook/Library/Developer/Xcode/DerivedData/Runner-cnmmmgwjwyedhrfbmwidyiqajgcy/Build/Intermediates.noindex/PrecompiledH
eaders/Runner-Bridging-Header-swift_21KKX35XMXJF3-clang_2DSDA8C9CPQUA.pch' for bridging header
'/Users/macbook/Developer/RobyHub/mobile/admin-app/ios/Runner/Runner-Bridging-Header.h'
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.8, on macOS 13.0 22A380 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.73.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.
I started encoutering these errors, ever since i archived my application and uploaded it on my apple store connect, the reaseon i decided to build again was just to screenshot screen of my applications for review on my app store connect.
I validated and distributed my app without any furtheer issues.
Any solution would be appreeciated, please
I've tried everything from
flutter clean
pod install
i've deleted the pod file and lock file
Done pod update
flutter run
Tried these several times, my issue still persists.
After attempting several fixes, what solved this for me was by restarting my pc
First make sure to close your xcode or visual studio
Upon restart completion, open VScode again, then open terminal in vscode and cd to ios folder on your flutter application code, and run the following:
pod cache clean --all
after which run:
pod install
Once completed go back to your main flutter directory using
cd ../
Then run:
flutter build ios
flutter run

Jenkins unable to find pod for flutter build

I am trying to setup CI/CD for flutter using jenkins, i am successful in building the android part but jenkins is unable to locate pod when building iOS.
when i execute flutter doctor, it returns cocoapods not installed.
Jenkins Output:
+ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.2, on macOS 12.4 21F79 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 13.4)
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] Connected device (1 available)
[✓] HTTP Host Availability
! Doctor found issues in 1 category.
[Pipeline] sh
+ pod install
/Users/mobilesotf/.jenkins/workspace/TPL Surveyor app#tmp/durable-f6e4ebbb/script.sh: line 1: pod: command not found

Flutter iOS project Flutter.h file not found after adding Share Extension

I am stuck with this build issue
ios/Runner/GeneratedPluginRegistrant.h:10:9: error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^
1 error generated.
:0: error: failed to emit precompiled header
It occurs after carefully adding a Share Extension to the Xcode workspace and configuring it according to this article:
https://medium.com/flutter-community/receive-sharing-files-to-flutter-app-from-another-app-7a84c0c0cd88
The "solutions" appear to be limited to deleting the iOS folder, and then recreating it.
I have done that, however as soon as I then add back in the share extension, I am left with the same problem.
I have so far tried the following, as well as many others since forgotten, and in many different combinations:
flutter clean
delete DerivedData folder
rm Podfile.lock and rm -rf Pods, follow by arch -x86_64 pod install --repo-update
Cocoapods updated
I am running on an M1 Macbook Pro
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.0, on macOS 12.2 21D49 darwin-arm, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)
[✓] Chrome - develop for the web
[!] Android Studio
✗ Unable to find bundled Java version.
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.3)
[✓] VS Code (version 1.67.1)
[✓] Connected device (5 available)
[✓] HTTP Host Availability
I have seen the project build and run for the Simulator, but I cannot reliably say what changed or why, and right now it is back to not even building for simulator after I attempted a device build (which failed as above).
Additional notes
My targets (Runner, ShareExtension, Pods) are all set to build for iOS14
ShareExtension has the same bundle id as the Runner project with "Share-Extension" appended.
Bitcode not enabled
Thanks in advance for any help

flutter_facebook_auth error at try generate archive xcode

I'm having an error with the flutter_facebook_auth plugin when trying to generate an Archive in Xcode.
When I run the application in debug mode, the app does not show any errors related to the plugin. However, when trying to generate an Archive to upload to the AppleStore, the xcode reports some errors, as follows:
my flutter doctor:
[✓] Flutter (Channel stable, 2.5.2, on macOS 11.6 20G165 darwin-x64, locale en-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.64.0)
[✓] Connected device (2 available)
I've looked at some related forums in search of a possible solution, but I haven't found it.
NOTE: Some of my attempts were
enter the Podfile and uncomment the line #platform :ios, '9.0' for version '10.0'
i did run the commands pod repo update, pod install and other commands that cause the pod to be restructured from a modification I have made.

could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig' in search paths

$flutter doctor
[✓] Flutter (Channel stable, 1.22.4, on Mac OS X 10.15.6 19G2021 darwin-x64, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.51.1)
[✓] Connected device (1 available)
• No issues found!
When i try to build on Xcode, i have this issue:
Showing Recent Messages /ios/Flutter/Release.xcconfig:1: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig' in search paths
Open the terminal, navigate to the project by typing:
cd your_file_path
After that navigate to the iOS folder by typing:
cd ios
Finally, fix your problem by implementing the missing podfile by typing:
pod init
Then, open the newly created podfile, follow instructions in the file (which tell you to remove a comment on the second line of the file).
Close your Flutter project, and reopen it.
Run your project again.
if it is not working, following this way
navigate ios/Podfile file and uncomment platform :ios, '9.0'(remove #)
Try running flutter build ios and then rerun in Xcode

Resources