Code Monkey home page Code Monkey logo

Comments (13)

Lyokone avatar Lyokone commented on May 28, 2024 4

I'm might rewrite it in objective c if it can help the time being, but I hope Flutter will resolve this problem !..

from flutterlocation.

fluff avatar fluff commented on May 28, 2024 4

I've given this a shot in #13

from flutterlocation.

renekyllingstad avatar renekyllingstad commented on May 28, 2024 2

This is basically a duplicate of flutter/flutter#10968 which is still open.

Looking at the size of the swift code it might not be too crazy to rewrite it in ObjC, or add an ObjC implementation.

from flutterlocation.

Lyokone avatar Lyokone commented on May 28, 2024

Hi !
What is the content of your Podfile right now ? Which other plugins are creating problems with location ?

from flutterlocation.

rsproule avatar rsproule commented on May 28, 2024

Podfile:

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

# This line must be commented out for
# google sign in and firebase plugins to work
# but must be uncommented for locations to work 
# use_frameworks!

if ENV['FLUTTER_FRAMEWORK_DIR'] == nil
  abort('Please set FLUTTER_FRAMEWORK_DIR to the directory containing Flutter.framework')
end

target 'Runner' do
  # Pods for Runner

  # Flutter Pods
  pod 'Flutter', :path => ENV['FLUTTER_FRAMEWORK_DIR']

  if File.exists? '../.flutter-plugins'
    flutter_root = File.expand_path('..')
    File.foreach('../.flutter-plugins') { |line|
      plugin = line.split(pattern='=')
      if plugin.length == 2
        name = plugin[0].strip()
        path = plugin[1].strip()
        resolved_path = File.expand_path("#{path}/ios", flutter_root)
        pod name, :path => resolved_path
      else
        puts "Invalid plugin specification: #{line}"
      end
    }
  end
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end

And my plugins

dependencies:
  flutter:
    sdk: flutter
  image_picker: 0.1.0       
  google_sign_in: 0.3.1      # does not work with use_frameworks!                              
  firebase_analytics: 0.1.0     # does not work with use_frameworks!                                    
  firebase_auth: 0.1.1       # does not work with use_frameworks!                                      
  firebase_database: 0.0.12          # does not work with use_frameworks!                              
  firebase_storage: 0.0.5  # does not work with use_frameworks! 
  shared_preferences: 0.2.4
  image: 1.1.27

Whenever I run with the use_frameworks! the main error from 'flutter run -v' is:

The 'Pods-Runner' target has transitive dependencies that include static binaries: (/Users/ryansproule/Documents/FlutterApps/app/ios/Pods/FirebaseUI/FirebaseUIFrameworks/FirebaseAuthUI/Frameworks/FirebaseAuthUI.framework, /Users/ryansproule/Documents/FlutterApps/app/ios/Pods/FirebaseUI/FirebaseUIFrameworks/FirebaseGoogleAuthUI/Frameworks/FirebaseGoogleAuthUI.framework, /Users/ryansproule/Documents/FlutterApps/app/ios/Pods/Google/Frameworks/GGLCore.framework, /Users/ryansproule/Documents/FlutterApps/app/ios/Pods/Google/Frameworks/GGLSignIn.framework, and /Users/ryansproule/Documents/FlutterApps/app/ios/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework)

from flutterlocation.

netdur avatar netdur commented on May 28, 2024

+1 I have the same issue, is there anything I can do to help?

from flutterlocation.

jiya1 avatar jiya1 commented on May 28, 2024

+1 been struggling with this issue for 3 days, any updates on this matter please ...

from flutterlocation.

knutvalen avatar knutvalen commented on May 28, 2024

+1 same issue here. It works on Android, but not on iOS.

Podfile:

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
use_frameworks!

if ENV['FLUTTER_FRAMEWORK_DIR'] == nil
  abort('Please set FLUTTER_FRAMEWORK_DIR to the directory containing Flutter.framework')
end

target 'Runner' do
  # Pods for Runner

  # Flutter Pods
  pod 'Flutter', :path => ENV['FLUTTER_FRAMEWORK_DIR']

  if File.exists? '../.flutter-plugins'
    flutter_root = File.expand_path('..')
    File.foreach('../.flutter-plugins') { |line|
      plugin = line.split(pattern='=')
      if plugin.length == 2
        name = plugin[0].strip()
        path = plugin[1].strip()
        resolved_path = File.expand_path("#{path}/ios", flutter_root)
        pod name, :path => resolved_path
      else
        puts "Invalid plugin specification: #{line}"
      end
    }
  end
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end

pubspec.yaml:

name: untitled
description: A new Flutter project.

dependencies:
  flutter:
    sdk: flutter

dev_dependencies:
  flutter_test:
    sdk: flutter
  location: "^1.1.3"
  google_sign_in: 0.3.1

flutter:
  uses-material-design: true

Console:

[!] The 'Pods-Runner' target has transitive dependencies that include static binaries: (/Users/knutvalen/repositories/untitled/ios/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework)
    
    /usr/local/Cellar/cocoapods/1.3.1/libexec/gems/cocoapods-1.3.1/lib/cocoapods/installer/xcode/target_validator.rb:81:in `block (2 levels) in verify_no_static_framework_transitive_dependencies'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/gems/cocoapods-1.3.1/lib/cocoapods/installer/xcode/target_validator.rb:73:in `each'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/gems/cocoapods-1.3.1/lib/cocoapods/installer/xcode/target_validator.rb:73:in `block in verify_no_static_framework_transitive_dependencies'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/gems/cocoapods-1.3.1/lib/cocoapods/installer/xcode/target_validator.rb:70:in `each'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/gems/cocoapods-1.3.1/lib/cocoapods/installer/xcode/target_validator.rb:70:in `verify_no_static_framework_transitive_dependencies'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/gems/cocoapods-1.3.1/lib/cocoapods/installer/xcode/target_validator.rb:36:in `validate!'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/gems/cocoapods-1.3.1/lib/cocoapods/installer.rb:405:in `validate_targets'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/gems/cocoapods-1.3.1/lib/cocoapods/installer.rb:118:in `install!'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/gems/cocoapods-1.3.1/lib/cocoapods/command/install.rb:41:in `run'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/gems/cocoapods-1.3.1/lib/cocoapods/command.rb:52:in `run'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/gems/cocoapods-1.3.1/bin/pod:55:in `<top (required)>'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/bin/pod:23:in `load'
    /usr/local/Cellar/cocoapods/1.3.1/libexec/bin/pod:23:in `<main>'

from flutterlocation.

knutvalen avatar knutvalen commented on May 28, 2024

Is there any updates on this issue?

from flutterlocation.

cavaterza89 avatar cavaterza89 commented on May 28, 2024

HI, I have the same problem, here the console output

[!] The Pods-Runner target has transitive dependencies that include static binaries: (/Users/giovannicavallaro/mensapp-flutter/ios/Pods/FirebaseUI/FirebaseUIFrameworks/FirebaseAuthUI/Frameworks/FirebaseAuthUI.framework, /Users/giovannicavallaro/mensapp-flutter/ios/Pods/FirebaseUI/FirebaseUIFrameworks/FirebaseGoogleAuthUI/Frameworks/FirebaseGoogleAuthUI.framework, /Users/giovannicavallaro/mensapp-flutter/ios/Pods/Google/Frameworks/GGLCore.framework, /Users/giovannicavallaro/mensapp-flutter/ios/Pods/Google/Frameworks/GGLSignIn.framework, and /Users/giovannicavallaro/mensapp-flutter/ios/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework)
           
           /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/installer/xcode/target_validator.rb:81:in `block (2 levels) in verify_no_static_framework_transitive_dependencies'
           /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/installer/xcode/target_validator.rb:73:in `each'
           /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/installer/xcode/target_validator.rb:73:in `block in verify_no_static_framework_transitive_dependencies'
           /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/installer/xcode/target_validator.rb:70:in `each'
           /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/installer/xcode/target_validator.rb:70:in `verify_no_static_framework_transitive_dependencies'
           /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/installer/xcode/target_validator.rb:36:in `validate!'
           /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/installer.rb:405:in `validate_targets'
           /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/installer.rb:118:in `install!'
           /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/command/install.rb:41:in `run'
           /Library/Ruby/Gems/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
           /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/command.rb:52:in `run'
           /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/bin/pod:55:in `<top (required)>'
           /usr/local/bin/pod:23:in `load'
           /usr/local/bin/pod:23:in `<main>'
           
[   +1 ms] Error output from CocoaPods:
           ↳
[        ] 

from flutterlocation.

pocady avatar pocady commented on May 28, 2024

the same here

from flutterlocation.

bjornbjorn avatar bjornbjorn commented on May 28, 2024

I'm might rewrite it in objective c if it can help the time being, but I hope Flutter will resolve this problem !..

Just wondering if you have any updates on this @Lyokone ? Totally understand if you haven't had time to look at it yet of course 👍

from flutterlocation.

bjornbjorn avatar bjornbjorn commented on May 28, 2024

I'm up and running with this and the previously conflicting google_signin package so it looks good to me at least :-)

from flutterlocation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.