Issue with url_launcher_ios Plugin and CocoaPods Configuration on iOS Build

Troubleshooting

Description:

Hello FlutterFlow team,

I am encountering issues while trying to build my iOS app in FlutterFlow. The main problem seems to be related to the url_launcher_ios plugin and some CocoaPods configurations. Below is a summary of the errors:

  1. CocoaPods Configuration Warnings: I am seeing warnings about the ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES build setting being overridden in the Pods-Runner configuration. The warnings suggest using the $(inherited) flag or removing the overridden settings in the target configurations for Debug, Release, and Profile modes.

  2. Error with url_launcher_ios: The build fails with the following error:

    bash

    Copy code

    /Users/Altovisual/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.5/ios/Classes/Launcher.swift:22:1: error: type 'UIApplication' does not conform to protocol 'Launcher' extension UIApplication: Launcher {}

    It seems that the url_launcher_ios plugin is causing issues in terms of type conformity with UIApplication.

  3. Deprecated Methods: I am also seeing warnings about deprecated methods, particularly related to keyWindow being deprecated in iOS 13 and setJavaScriptEnabled in iOS 14.

  4. Steps Taken:

    • I have tried downgrading the url_launcher_ios version in pubspec.yaml to resolve the issue, but the errors persist.

    • I have also run flutter clean, pod deintegrate, and reinstalled the pods, but it did not solve the issue.

Could you please advise on how to proceed with this issue?

Thanks in advance for your assistance!

Best regards,
Hugo

What have you tried so far?

I am encountering issues while trying to build my iOS app in FlutterFlow. The main problem seems to be related to the url_launcher_ios plugin and some CocoaPods configurations. Below is a summary of the errors:

Did you check FlutterFlow's Documentation for this topic?
No
2
3 replies