Coder Social home page Coder Social logo

Comments (23)

Jeremywhiteley avatar Jeremywhiteley commented on August 11, 2024

I am getting the same error. Also I get these warnings when I look at the code in the simple_auth_generator.

The 'strong-mode: true' setting is deprecated. (strong_mode_setting_deprecated at [simple_auth_generator] analysis_options.yaml:2)

info: 'strongMode' is deprecated and shouldn't be used. (deprecated_member_use at [simple_auth_generator] test/simple_auth_generator_test.dart:52)

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

Flutter keep changing dependencies :( . I will push a new package now. I think that should fix it.

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

Packages are updated. Please close the issue if it fixes it!

from simple_auth.

matthewkooshad avatar matthewkooshad commented on August 11, 2024

newb question here; do i run the following to achieve updating?
flutter packages pub get

Resolving dependencies...
The current Dart SDK version is 2.1.0-dev.0.0.flutter-be6309690f.

Because app1 depends on build_runner >=0.1.1 <=0.9.1 which requires SDK version >=1.9.1 <2.0.0-∞,
version solving failed.
pub finished with exit code 1

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

Easiest will be to edit the pubsepc. Manually update the build runner to ^0.10.1

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

For reference, here is the commit where I bump versions

from simple_auth.

matthewkooshad avatar matthewkooshad commented on August 11, 2024

thanks! so, updating pubspec.yaml with that, triggered a flutter packages get.
i don't see any errors, but the app never loads. i haven't introduced any changes.

from simple_auth.

matthewkooshad avatar matthewkooshad commented on August 11, 2024

i tried with publishing to my android device as well as using the avd on my machine -- both gave the same result.

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

Try deleting the app from the device/simulator. Also you can run flutter clean then build. That should fix it.

from simple_auth.

matthewkooshad avatar matthewkooshad commented on August 11, 2024

thanks; i tried an uninstall and flutter clean before republishing the app to the simulator.
now, the app just closes after showing the white screen for some moment.

Launching lib\main.dart on Android SDK built for x86 in debug mode...
Built build\app\outputs\apk\debug\app-debug.apk.
E/flutter ( 9033): [ERROR:flutter/third_party/txt/src/minikin/FontFamily.cpp(184)] Could not get cmap table size!
E/flutter ( 9033):
F/flutter ( 9033): [FATAL:flutter/third_party/txt/src/minikin/FontCollection.cpp(94)] nTypefaces == 0
F/libc ( 9033): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 9053 (1.ui), pid 9033 (om.example.app1)


Build fingerprint: 'google/sdk_gphone_x86/generic_x86:9/PPP4.180612.007/4860066:user/release-keys'
Revision: '0'
ABI: 'x86'
pid: 9033, tid: 9053, name: 1.ui >>> com.example.app1 <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/third_party/txt/src/minikin/FontCollection.cpp(94)] nTypefaces == 0
'
eax 00000000 ebx 00002349 ecx 0000235d edx 00000006
edi 00002349 esi 00000060
ebp 00000053 esp d0303b18 eip f0a10b59
backtrace:
#00 pc 00000b59 [vdso:f0a10000] (__kernel_vsyscall+9)
#1 pc 0001fdf8 /system/lib/libc.so (syscall+40)
#2 pc 00022ed3 /system/lib/libc.so (abort+115)
#3 pc 000985e7 /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#4 pc 004c3ae9 /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#5 pc 004c3d47 /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#6 pc 004d03e0 /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#7 pc 004d472e /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#8 pc 004d4235 /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#9 pc 004d51e8 /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#10 pc 000c1a77 /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#11 pc 000bf78a /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#12 pc 000bfaba /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#13 pc 000bf3f1 /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#14 pc 0068e08d /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#15 pc 0068def3 /data/app/com.example.app1-ri1RPVU6xFrQi7IUCwpu5g==/lib/x86/libflutter.so
#16 pc 000007d6 anonymous:cee80000
Lost connection to device.
Exited (sigterm)

i'll try it on the device as well now.

from simple_auth.

matthewkooshad avatar matthewkooshad commented on August 11, 2024

the app is also not working on the device.
@Jeremywhiteley did you get a working result from updating?
@Clancey if you think of something i may be missing, please let me know. thanks!

from simple_auth.

Jeremywhiteley avatar Jeremywhiteley commented on August 11, 2024

Nope, I can't get it to work on the iPhone simulator. So I went back to the included example app to rule out my code. but I get this error when running the sample app on two different computers for IOS. The android version works just fine. Also other flutter apps build correctly on both machines with IOS.

I see the same error codes on both the latest flutter beta that was released this week and dev master channel latest release.

Error output from Xcode build:
↳
    ** BUILD FAILED **
    
Xcode's output:
↳
    error: Multiple commands produce '/Users/jeremywhiteley/Downloads/simple_auth-master/simple_auth_flutter_example/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework':
    1) Target 'Runner' has copy command from '/Users/jeremywhiteley/Downloads/simple_auth-master/simple_auth_flutter_example/ios/Flutter/Flutter.framework' to '/Users/jeremywhiteley/Downloads/simple_auth-master/simple_auth_flutter_example/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework'
    2) That command depends on command in Target 'Runner': script phase “[CP] Embed Pods Frameworks”
    warning: Capabilities for Runner may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the build settings editor. (in target 'Runner')
    warning: ignoring duplicated output file: '/Users/jeremywhiteley/Downloads/simple_auth-master/simple_auth_flutter_example/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework' (in target 'Runner')
    note: Using new build systemnote: Planning buildnote: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone X.

This is the error I get from my code.

Xcode's output:
↳
    error: Multiple commands produce '/Users/jeremywhiteley/Dropbox/MedDev/MedApp/medtexter_app/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework':
    1) Target 'Runner' has copy command from '/Users/jeremywhiteley/Dropbox/MedDev/MedApp/medtexter_app/ios/Flutter/Flutter.framework' to '/Users/jeremywhiteley/Dropbox/MedDev/MedApp/medtexter_app/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework'
    2) That command depends on command in Target 'Runner': script phase “[CP] Embed Pods Frameworks”
    warning: The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target. (in target 'Runner')
    warning: ignoring duplicated output file: '/Users/jeremywhiteley/Dropbox/MedDev/MedApp/medtexter_app/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework' (in target 'Runner')
    note: Using new build systemnote: Planning buildnote: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone X.

from simple_auth.

Jeremywhiteley avatar Jeremywhiteley commented on August 11, 2024

@Clancey you can download my source code at https://github.com/Jeremywhiteley/MedEasyAuth
and run it.

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

@matthewkooshad that error is nothing to do with my plugin E/flutter ( 9033): [ERROR:flutter/third_party/txt/src/minikin/FontFamily.cpp(184)] Could not get cmap table size! I would check out your font stuff!

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

@Jeremywhiteley I am able to run your sample just fine. want to try git clean -xdf in your repo? That will delete any cached artifacts. Close to a fresh clone.

from simple_auth.

Jeremywhiteley avatar Jeremywhiteley commented on August 11, 2024

@Clancey try running it a second time. I am using Xcode 10. All this worked fine last week. And it's doing it on 2 different computers.

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

I am still on Xcode 9.4.1. Flutter updated some stuff and broke everything for me. The latest install is even messing up the Flutter framework headers :( Broke my setup and took me forever to figure out what was wrong. But once I fixed my flutter issues, your project works great.

You project still works for me using VSCode:
screenshot 2018-08-30 13 18 50

This is my current flutter doctor -v

[✓] Flutter (Channel dev, v0.7.3, on Mac OS X 10.13.6 17G2208, locale en-US)
• Flutter version 0.7.3 at /users/clancey/Projects/flutter
• Framework revision 3b309bda07 (2 days ago), 2018-08-28 12:39:24 -0700
• Engine revision af42b6dc95
• Dart version 2.1.0-dev.1.0.flutter-ccb16f7282

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/clancey/Library/Developer/Xamarin/android-sdk-macosx
• Android NDK at /Users/clancey/Library/Developer/Xamarin/android-sdk-macosx/ndk-bundle
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /Users/clancey/Library/Developer/Xamarin/android-sdk-macosx
• Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java
• Java version Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3

from simple_auth.

Jeremywhiteley avatar Jeremywhiteley commented on August 11, 2024

@Clancey

Something is going on. I get the errors using your example and my code as well. Here is my configuration. Last week this all worked great. Also other apps work just fine. I think there is something going on with a dependency in your code in the simple auth.

Jeremys-iMac:~ jeremywhiteley$ flutter doctor -v
[✓] Flutter (Channel master, v0.7.5-pre.6, on Mac OS X 10.14 18A377a, locale en-US)
• Flutter version 0.7.5-pre.6 at /Users/jeremywhiteley/flutter
• Framework revision eab5cd9853 (72 minutes ago), 2018-08-30 14:47:04 -0700
• Engine revision dc7b5eb89d
• Dart version 2.1.0-dev.3.0.flutter-760a9690c2

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Users/jeremywhiteley/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.0, Build version 10L232m
• ios-deploy 1.9.2
• CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 27.1.3
• Dart plugin version 182.4129.13

[✓] VS Code (version 1.26.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.17.1

[✓] Connected devices (1 available)
• iPhone X • FA152BE4-13BE-4A13-ACAD-562201194A68 • ios • iOS 11.4 (simulator)

• No issues found!

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

@Jeremywhiteley I am guessing the dev branch is not compatible with Xcode 10. I just upgraded and got the same error. Use xcode-select to switch back to XCode 9

from simple_auth.

Jeremywhiteley avatar Jeremywhiteley commented on August 11, 2024

@Clancey very odd. This all worked last week and it works with the other sample apps. I removed these dependancies and it still does it.

 dev_dependencies:
    simple_auth_generator: 
    build_runner: ^0.8.0

Also the dependancies that are being used are all the latest.

I tried live coding it from a new project and this is where I got the error. IOS 12 comes out next month.

flutter: ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
flutter: The following MissingPluginException was thrown while activating platform stream on channel
flutter: simple_auth_flutter/urlChanged:
flutter: MissingPluginException(No implementation found for method listen on channel
flutter: simple_auth_flutter/urlChanged)
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:278:7)
flutter: <asynchronous suspension>
flutter: #1      EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:424:29)
flutter: <asynchronous suspension>
flutter: #9      SimpleAuthFlutter.init (package:simple_auth_flutter/simple_auth_flutter.dart:55:18)
flutter: #10     _MyAppState.initState (file:///Users/jeremywhiteley/Dropbox/MedDev/MedApp/medtest/lib/main.dart:17:23)
flutter: #11     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3763:58)
flutter: #12     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #13     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #14     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #15     RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:881:16)
flutter: #16     RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:852:5)
flutter: #17     RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (package:flutter/src/widgets/binding.dart:798:17)
flutter: #18     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2235:19)
flutter: #19     RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:797:13)
flutter: #20     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:689:7)
flutter: #21     runApp (package:flutter/src/widgets/binding.dart:728:7)
flutter: #22     main (file:///Users/jeremywhiteley/Dropbox/MedDev/MedApp/medtest/lib/main.dart:6:16)
flutter: #23     _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:289:19)
flutter: #24     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
flutter: (elided 7 frames from package dart:async)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

I think this is a flutter issue with Xcode 10/ iOS 12. That is implemented in the library.

from simple_auth.

Jeremywhiteley avatar Jeremywhiteley commented on August 11, 2024

@Clancey I agree. Thank you!

from simple_auth.

Jeremywhiteley avatar Jeremywhiteley commented on August 11, 2024

@Clancey I submitted this issue to the Flutter Dev team. flutter/flutter#21278. Feel free to add anything to it. Thank you again for your help yesterday!

from simple_auth.

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.