Comments (13)
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.
I've given this a shot in #13
from flutterlocation.
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.
Hi !
What is the content of your Podfile right now ? Which other plugins are creating problems with location ?
from flutterlocation.
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.
+1 I have the same issue, is there anything I can do to help?
from flutterlocation.
+1 been struggling with this issue for 3 days, any updates on this matter please ...
from flutterlocation.
+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.
Is there any updates on this issue?
from flutterlocation.
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.
the same here
from flutterlocation.
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.
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)
- ios app crash HOT 1
- PERMISSION_DENIED_NEVER_ASK
- Can't get location on android 5 devices
- await location.getLocation() is not retrieving the current location details in Andriod emulator HOT 4
- io.flutter.plugin.common.PluginRegistry$RequestPermissionsResultListener com.lyokone.location.FlutterLocationService.getServiceRequestPermissionsResultListener() HOT 1
- Deprecated HOT 1
- Could not get current location HOT 2
- Apps opened too long because binding location service HOT 5
- Failure in real-time coordinate service
- On dispose method in LocationPlugin.java crashes application
- Location().requestService not working on IOS
- UI Unresponsivness HOT 1
- When listening to location change, calling location.getLocation blocks and does not return any result.
- When listening to location change, calling location.getLocation blocks and does not return any result HOT 3
- one time allow also showing granted as status on reopen. HOT 1
- iOS 15+ variable missing "isproducedbyaccessory"
- Compatibility with Gradle 8 HOT 2
- Incorrect behavior getLocation HOT 2
- Issue between location: ^5.0.3 and Kotlin 1.9.0 HOT 3
- Android version 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutterlocation.