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

compiling for flutter dart 2 fails #120

Closed
ghost opened this issue Feb 13, 2018 · 7 comments
Closed

compiling for flutter dart 2 fails #120

ghost opened this issue Feb 13, 2018 · 7 comments

Comments

@ghost
Copy link

ghost commented Feb 13, 2018

on master branch of Flutter...
but had to change version in pubspec to dev.22.0
env:

x-MacBook-Pro:rxdart apple$ flutter doctor -v
[✓] Flutter (on Mac OS X 10.13.3 17D47, locale en-DE, channel master)
    • Flutter version 0.1.1-pre.34 at /Users/apple/flutter
    • Framework revision d745684393 (4 hours ago), 2018-02-13 14:16:26 +0100
    • Engine revision f5a4a93787
    • Tools Dart version 2.0.0-dev.22.0
    • Engine Dart version 2.0.0-edge.32396138ff733cbe8d9ac32178e6cffccdf80644

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/apple/Library/Android/sdk
    • Android NDK at /Users/apple/Library/Android/sdk/ndk-bundle
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /Users/apple/Library/Android/sdk
    • 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-915-b08)

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

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] VS Code (version 1.20.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.8.1

[✓] Connected devices
    • iPhone 8 Plus • 10FA54AF-3CDB-414B-92B9-9F0D15DA861D • ios • iOS 11.2 (simulator)

make file commands:

cd rxdart/example/flutter/github_search && flutter packages get
cd rxdart/example/flutter/github_search && flutter run

output:

cd rxdart/example/flutter/github_search && flutter packages get
Running "flutter packages get" in github_search...    2.1s
cd rxdart/example/flutter/github_search && flutter run
Launching lib/main.dart on iPhone 8 Plus in debug mode...
Upgrading project.pbxproj of Runner.app' to include the 'flutter_assets' directory
Automatic upgrade of project.pbxproj failed.
 To manually upgrade, open ios/Runner.xcodeproj/project.pbxproj:
 Add the following line in the "PBXBuildFile" section
                2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
 Add the following line in the "PBXFileReference" section
                2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
 Add the following line in the "children" list of the "Flutter" group in the "PBXGroup" section
                                2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
 Add the following line in the "files" list of "Resources" in the "PBXResourcesBuildPhase" section
                                2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */,
Could not build the application for the simulator.
Error launching application on iPhone 8 Plus.
make: *** [run-flu] Error 2
@brianegan
Copy link
Collaborator

Thanks! We're working on some Dart2 fixes. We'll update soon!

@brianegan
Copy link
Collaborator

brianegan commented Feb 22, 2018

Hey, we published RxDart 0.16.0 today with support for Dart2. Please let us know if this solves your problem!

@ghost
Copy link
Author

ghost commented Feb 22, 2018

thanks. Just pulled and everything works again.
thank you !!

@ghost ghost closed this as completed Feb 22, 2018
@diegoveloper
Copy link

diegoveloper commented Jun 16, 2018

same issue here, I can't run the example on iOS simulator.
Using rxdart-0.16.7 tag

Automatic upgrade of project.pbxproj failed. To manually upgrade, open /Users/diegoveloper/Development/workspaces/flutter/rxdart-0.16.7/example/flutter/github_search/ios/Runner.xcodeproj/project.pbxproj: Add the following line in the "PBXBuildFile" section 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; }; Add the following line in the "PBXFileReference" section 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; }; Add the following line in the "children" list of the "Flutter" group in the "PBXGroup" section

flutter doctor -v
[✓] Flutter (Channel beta, v0.4.4, on Mac OS X 10.13.5 17F77, locale en-PE)
• Flutter version 0.4.4 at /Users/diegoveloper/Development/SDKS/flutter
• Framework revision f9bb4289e9 (5 weeks ago), 2018-05-11 21:44:54 -0700
• Engine revision 06afdfe54e
• Dart version 2.0.0-dev.54.0.flutter-46ab040e58

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/diegoveloper/Development/SDKS/Android/android-sdk/
• Android NDK at /Users/diegoveloper/Development/SDKS/Android/android-sdk/ndk-bundle
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /Users/diegoveloper/Development/SDKS/Android/android-sdk/
• 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 9.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4, Build version 9F1027a
• ios-deploy 1.9.2
• CocoaPods version 1.5.2

[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.24.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.13.2

[✓] Connected devices (1 available)
• iPhone 7 • 3BF41A9D-337E-40B2-9159-5D7638F2C37B • ios • iOS 11.4 (simulator)

• No issues found!

@pj0579
Copy link

pj0579 commented Jun 26, 2018

same issue here,Using rxdart-0.16.7 tag

@frankpepermans
Copy link
Member

Not using Flutter currently, but have you folks tried upgrading to the latest 'n' greatest rxdart version? 0.18 should handle the latest Dart 2 dev build

@zoechi
Copy link

zoechi commented Jun 26, 2018

0.18.0 works fine for me (beta, dev, and master channel)

This issue was closed.
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