Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The 'Pods-Runner' target has transitive dependencies #3

Open
RaduGrama opened this issue Aug 16, 2018 · 6 comments
Open

The 'Pods-Runner' target has transitive dependencies #3

RaduGrama opened this issue Aug 16, 2018 · 6 comments

Comments

@RaduGrama
Copy link

This is just a reference to the issue at flutter/flutter#14161 opened by you already:

  1. Is there any clarification on "We do seem to need s.static_framework = true in podspecs when Swift is involved in the app and using CocoaPods 1.5.0 or later."?
  2. If the answer to 1. above is "yes, we do need...", is that change planned?
  3. If the answer to 1. above is "no, we do not need..." or "we have no clue", is the only workaround using ObjC instead of Swift?
@RaduGrama
Copy link
Author

Per response flutter/flutter#14161 (comment) and article at https://blog.cocoapods.org/CocoaPods-1.4.0/#static-frameworks, it looks like s.static_framework = true must be added in podspecs.

@peanut-flutter
Copy link

Hi,

I'm having this exact problem when I try to use this and flutter_inappbrowser.

@RaduGrama I can't figure out where to add the s.static_framework = true. In the podspec for flutter_inappbrowser or the podspec for flutter_plugin_appcenter?

All of the things I've tried:

  1. Nothing. Adding both packages to a Flutter project created with flutter create -i swift my_app leads to the following output:
      - Running pre install hooks
    [!] The 'Pods-Runner' target has transitive dependencies that include static
    binaries:
    (/Users/me/my_app/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCent
    erAnalytics.framework,
    /Users/me/my_app/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCente
    r.framework, and
    /Users/me/my_app/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCente
    rCrashes.framework)
  1. Commenting use_frameworks! in ios/Podfile. Uncommented of course I get the same build output as above. Commented I get the following build output:
    ** BUILD FAILED **


Xcode's output:
↳
    === BUILD TARGET appcenter OF PROJECT Pods WITH CONFIGURATION Release ===
    /Users/user910206/development/flutter/.pub-cache/hosted/pub.dartlang.org/flu
    tter_inappbrowser-1.1.1/ios/Classes/FlutterWebViewController.swift:34:17:
    warning: result of call to 'parse(options:)' is unused
            options.parse(options: initialOptions)
                    ^    ~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/user910206/development/flutter/.pub-cache/hosted/pub.dartlang.org/flu
    tter_inappbrowser-1.1.1/ios/Classes/FlutterWebViewController.swift:50:46:
    warning: conditional downcast from 'String?' to 'String' does nothing
                let data = (initialData!["data"] as? String)!
                            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~

(etc.)

  1. Adding s.static_framework = true to various .podspecs. I've tried this with and without the change described in fix Dart2 cast and gradle upgrade #2, and with appcenter local to my project like the example. I can't find a combination that works.

Radu, what worked for you my friend? @aloisdeniel, any insights please? Would be amazing to have this fixed.

Thanks
p-f

@luismarquesfreire
Copy link

Hi, I'm having the same problem, I need to use this plugin in order to have automated builds on appcenter.ms. Any clue?

@EinatK
Copy link

EinatK commented Jun 3, 2020

Any news on this ?

@eladcandroid
Copy link

Any solution?

@eladcandroid
Copy link

This forked repository worked for me:
https://github.com/nate-eisner/flutter_plugin_app_center

pubspec.yaml:

  app_center:
    git:
      url: https://github.com/nate-eisner/flutter_plugin_app_center.git
      path: src/app_center
  app_center_crashes:
    git:
      url: https://github.com/nate-eisner/flutter_plugin_app_center.git
      path: src/app_center_crashes
  app_center_analytics:
    git:
      url: https://github.com/nate-eisner/flutter_plugin_app_center.git
      path: src/app_center_analytics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants