Launching lib/main.dart on iPhone 13 in debug mode...
Running Xcode build...
Xcode build done. 10.0s
Failed to build iOS app
Error output from Xcode build:
↳
objc[88351]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x20aa5b678) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1083b82c8). One of the two will be used. Which one is undefined.
objc[88351]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x20aa5b6c8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1083b8318). One of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
Invalid depfile: /Users/akshaydeshpande/StudioProjects/My Budget/.dart_tool/flutter_build/21e2694a07dda4dc41836ce71056be61/kernel_snapshot.d
Invalid depfile: /Users/akshaydeshpande/StudioProjects/My Budget/.dart_tool/flutter_build/21e2694a07dda4dc41836ce71056be61/kernel_snapshot.d
Invalid depfile: /Users/akshaydeshpande/StudioProjects/My Budget/.dart_tool/flutter_build/21e2694a07dda4dc41836ce71056be61/kernel_snapshot.d
Invalid depfile: /Users/akshaydeshpande/StudioProjects/My Budget/.dart_tool/flutter_build/21e2694a07dda4dc41836ce71056be61/kernel_snapshot.d
Error: Couldn't resolve the package 'money_tracker' in 'package:money_tracker/HomeWidget.dart'.
Error: Couldn't resolve the package 'money_tracker' in 'package:money_tracker/SplashWidget.dart'.
lib/main.dart:4:8: Error: Not found: 'package:money_tracker/HomeWidget.dart'
import 'package:money_tracker/HomeWidget.dart';
^
lib/main.dart:5:8: Error: Not found: 'package:money_tracker/SplashWidget.dart'
import 'package:money_tracker/SplashWidget.dart';
^
lib/main.dart:22:50: Error: Couldn't find constructor 'HomeWidget'.
'/home': (BuildContext context) => new HomeWidget(parentCtx: context),
^^^^^^^^^^
lib/main.dart:23:52: Error: Couldn't find constructor 'SplashWidget'.
'/splash': (BuildContext context) => new SplashWidget(),
^^^^^^^^^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Amoney_tracker%2FHomeWidget.dart; message=StandardFileSystem only supports file:* and data:* URIs)
#0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
#1 asFileUri (package:vm/kernel_front_end.dart:614:37)
#2 writeDepfile (package:vm/kernel_front_end.dart:754:21)
<asynchronous suspension>
#3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:571:9)
<asynchronous suspension>
#4 starter (package:flutter_frontend_server/server.dart:85:12)
<asynchronous suspension>
#5 main (file:///opt/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:13:24)
<asynchronous suspension>
Failed to package /Users/akshaydeshpande/StudioProjects/My Budget.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Could not build the application for the simulator.
Error launching application on iPhone 13.
I am trying to use Webstorm for my Dart project since it is recommended. I have installed it and point it to the Dart sdk and dartium path. On creating a new Dart project, I only see Dart Web App and Dart Command Line App. No polymer template or any other template. What can I do to see those template.
RELEVANT VERSIONS OF DART OFFERINGS:
Dart 1.11.0 (ref 65704b3) DEV (SDK)
Dart 1.11.0 (ref 65704b3) (STABLE) DARTIUM
EDIT 1 (relates to first comment by Gunter)
I deleted and attempted to reinstall stagehand but I am getting the following errors
C:\Users\dart.user\AppData\Roaming\Pub\Cache\global_packages>pub global ac
tivate stagehand
Resolving dependencies...
+ args 0.13.2
+ collection 1.1.1
+ crypto 0.9.0
+ http 0.11.2
+ http_parser 0.0.2+7
+ path 1.3.5
+ source_span 1.1.2
+ stack_trace 1.3.3
+ stagehand 0.2.1
+ string_scanner 0.1.3+1
+ usage 1.0.0+1
Precompiling executables...
Loading source assets...
Failed to precompile stagehand:stagehand:
Unhandled exception:
Uncaught Error: Failure getting http://localhost:49681/packages/crypto/crypto.da
rt: 404 Not Found
Stack Trace:
#0 _asyncLoadError (dart:_builtin:285)
#1 _httpGet.<anonymous closure>.<anonymous closure> (dart:_builtin:228)
#2 _RootZone.runGuarded (dart:async/zone.dart:1082)
#3 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.
dart:390)
#4 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399)
#5 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:290)
#6 _ForwardingStream._handleDone (dart:async/stream_pipe.dart:112)
#7 _handleDone (dart:async/stream_pipe.dart:180)
#8 _RootZone.runGuarded (dart:async/zone.dart:1082)
#9 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.
dart:390)
#10 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:399)
#11 _DelayedDone.perform (dart:async/stream_impl.dart:614)
#12 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:711)
#13 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart
:671)
#14 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
#15 _asyncRunCallback (dart:async/schedule_microtask.dart:48)
#16 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:84)
#17 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dar
t:131)
#0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:886)
#1 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
#2 _asyncRunCallback (dart:async/schedule_microtask.dart:48)
#3 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:84)
#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dar
t:131)
Several attempts simply result in the same error.
I did a pub cache repair but the result is the same.
Stagehand provides the following templates; polymer isn't one of them.
$ stagehand
Stagehand will generate the given application type into the current directory.
usage: stagehand <generator-name>
--[no-]analytics Opt out of anonymous usage and crash reporting.
-h, --help Help!
--version Display the version for stagehand.
--author The author name to use for file headers.
(defaults to "<your name>")
Available generators:
console-full - A command-line application sample.
package-simple - A starting point for Dart libraries or applications.
server-shelf - A web server built using the shelf package.
web-angular - A web app with material design components.
web-simple - A web app that uses only core Dart libraries.
web-stagexl - A starting point for 2D animation and games.
My application was being developed with 1.6.0-dev.09_07 and starting my application was done with no issue.
I switched to the 1.6.0.release-stable received the following error:
--- 8:03:25 AM Starting pub serve : epimss_design ---
Loading source assets...
Loading polymer/src/build/mirrors_remover, observe and smoke/src/default_transformer transformers...
'Unhandled exception:
Uncaught Error: SocketException: OS Error: The semaphore timeout period has expired.
, errno = 121, address = localhost, port = 58876
#0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:820)
#1 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
#2 _asyncRunCallback (dart:async/schedule_microtask.dart:48)
#3 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:126)'
dart:isolate-patch/isolate_patch.dart 256 Isolate.spawnUri
e:%5Cb%5Cbuild%5Cslave%5Cdart-editor-win-stable%5Cbuild%5Cdart%5Csdk%5Clib%5C_internal%5Cpub%5Clib%5Csrc%5Cdart.dart 179 _isolateBuffer
dart:isolate-patch/isolate_patch.dart 219 _startIsolate.isolateStartHandler
dart:isolate-patch/isolate_patch.dart 122 _RawReceivePortImpl._handleMessage
I tried the 1.7.0.dev_00_01 release with the same error.
What has changed in the current stable release (1.6) and 1.7 dev streams to cause this.
I removed all DartEditor, pub and .dartium folders so not to have any legacy issues, but it still does not work.
I ran pub-upgrade on all apps with no errors - this suggest that my pubspec.lock and pubspec.yaml are OK.
Thanks
My polymer-dart project use to run fine until I loaded Dart Editor version 1.0.3_r30939 (DEV)
Dart SDK version 1.0.3.0_r30939. Now I have this console output and failure to see my UI:
Uncaught Error: Class '_LocalLibraryMirror' has no instance getter 'functions'.
NoSuchMethodError : method not found: 'functions'
Receiver: Instance of '_LocalLibraryMirror#0x4863bc9'
Arguments: []
Stack Trace:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
#1 _loadLibrary (package:polymer/src/loader.dart:172:21)
#2 _loadLibraries (package:polymer/src/loader.dart:89:19)
#3 _initPolymerOptimized (package:polymer/src/loader.dart:54:17)
#4 _rootRun (dart:async/zone.dart:688)
#5 _ZoneDelegate.run (dart:async/zone.dart:417)
#6 _CustomizedZone.run (dart:async/zone.dart:627)
#7 initPolymer (package:polymer/src/loader.dart:37:33)
#8 main (package:polymer/init.dart:23:22)....
Any help will be appreciated. I am using Windows 8 64 bit.
Thansk
Dart worked until I updated Editor and now I get errors for existing and new projects. I tried a complete reinstall of Dart. I get the following message when I run pub install on web-ui for a new project:
--- Jun 11, 2013 10:25:11 PM Running pub install ... ---
Pub install failed, [255] Unhandled exception:
FileIOException: Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version' (OS Error: The system cannot find the file specified.
, errno = 2)
#0 _File.throwIfError (file_impl.dart:444:7)
#1 _File.openSync (file_impl.dart:310:17)
#2 _File.readAsBytesSync (file_impl.dart:363:26)
#3 _File.readAsStringSync (file_impl.dart:381:41)
#4 readTextFile (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:71:68)
#5 _getVersion (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:24:29)
#6 version (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:17:30)
#7 main (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:61:30)
It's right that there is no "version" file in that directory from a clean install. I added that file and got the following message:
--- Jun 11, 2013 10:23:42 PM Running pub install ... ---
Pub install failed, [69] Resolving dependencies...
Failed NSS_Init call.
I get the following when I create a new project:
--- Jun 11, 2013 10:26:17 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/MyApp/build.dart
build.dart returned error code 255
Do not know how to load 'dart:uri''package:analyzer_experimental/src/generated/java_core.dart': Error: line 4 pos 1: library handler failed
import "dart:uri";
^
'package:analyzer_experimental/src/generated/ast.dart': Error: line 7 pos 1: library handler failed
import 'java_core.dart';
^
'package:web_ui/src/compiler.dart': Error: line 10 pos 1: library handler failed
import 'package:analyzer_experimental/src/generated/ast.dart' show Directive, UriBasedDirective;
^
'package:web_ui/dwc.dart': Error: line 12 pos 1: library handler failed
import 'src/compiler.dart';
^
'package:web_ui/component_build.dart': Error: line 25 pos 1: library handler failed
import 'dwc.dart' as dwc;
^
'file:///C:/Users/Phloxicon/Dropbox/dart/MyApp/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:18 PM Running pub install ... ---
Pub install failed, [255] Unhandled exception:
FileIOException: Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version' (OS Error: The system cannot find the file specified.
, errno = 2)
#0 _File.throwIfError (file_impl.dart:444:7)
#1 _File.openSync (file_impl.dart:310:17)
#2 _File.readAsBytesSync (file_impl.dart:363:26)
#3 _File.readAsStringSync (file_impl.dart:381:41)
#4 readTextFile (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:71:68)
#5 _getVersion (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:24:29)
#6 version (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:17:30)
#7 main (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:61:30)
--- Jun 11, 2013 10:26:18 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/Test02/build.dart
build.dart returned error code 255
Unable to open file: C:/Users/Phloxicon/Dropbox/dart/Test02/packages/web_ui/component_build.dart'file:///C:/Users/Phloxicon/Dropbox/dart/Test02/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:18 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/quiz_generator/build.dart
build.dart returned error code 255
Do not know how to load 'dart:uri''package:analyzer_experimental/src/generated/java_core.dart': Error: line 4 pos 1: library handler failed
import "dart:uri";
^
'package:analyzer_experimental/src/generated/ast.dart': Error: line 7 pos 1: library handler failed
import 'java_core.dart';
^
'package:web_ui/src/compiler.dart': Error: line 10 pos 1: library handler failed
import 'package:analyzer_experimental/src/generated/ast.dart' show Directive, UriBasedDirective;
^
'package:web_ui/dwc.dart': Error: line 12 pos 1: library handler failed
import 'src/compiler.dart';
^
'package:web_ui/component_build.dart': Error: line 25 pos 1: library handler failed
import 'dwc.dart' as dwc;
^
'file:///C:/Users/Phloxicon/Dropbox/dart/quiz_generator/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:19 PM Running pub install ... ---
Pub install failed, [255] Unhandled exception:
FileIOException: Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version' (OS Error: The system cannot find the file specified.
, errno = 2)
#0 _File.throwIfError (file_impl.dart:444:7)
#1 _File.openSync (file_impl.dart:310:17)
#2 _File.readAsBytesSync (file_impl.dart:363:26)
#3 _File.readAsStringSync (file_impl.dart:381:41)
#4 readTextFile (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:71:68)
#5 _getVersion (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:24:29)
#6 version (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:17:30)
#7 main (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:61:30)
--- Jun 11, 2013 10:26:19 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/sdgdsfg/build.dart
build.dart returned error code 255
Unable to open file: C:/Users/Phloxicon/Dropbox/dart/sdgdsfg/packages/web_ui/component_build.dart'file:///C:/Users/Phloxicon/Dropbox/dart/sdgdsfg/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:19 PM Running pub install ... ---
Pub install failed, [255] Unhandled exception:
FileIOException: Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version' (OS Error: The system cannot find the file specified.
, errno = 2)
#0 _File.throwIfError (file_impl.dart:444:7)
#1 _File.openSync (file_impl.dart:310:17)
#2 _File.readAsBytesSync (file_impl.dart:363:26)
#3 _File.readAsStringSync (file_impl.dart:381:41)
#4 readTextFile (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:71:68)
#5 _getVersion (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:24:29)
#6 version (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:17:30)
#7 main (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:61:30)
--- Jun 11, 2013 10:26:19 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/srtgdsfg/build.dart
build.dart returned error code 255
Unable to open file: C:/Users/Phloxicon/Dropbox/dart/srtgdsfg/packages/web_ui/component_build.dart'file:///C:/Users/Phloxicon/Dropbox/dart/srtgdsfg/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:19 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/test1/build.dart
build.dart returned error code 255
Do not know how to load 'dart:uri''package:analyzer_experimental/src/generated/java_core.dart': Error: line 4 pos 1: library handler failed
import "dart:uri";
^
'package:analyzer_experimental/src/generated/ast.dart': Error: line 7 pos 1: library handler failed
import 'java_core.dart';
^
'package:web_ui/src/compiler.dart': Error: line 10 pos 1: library handler failed
import 'package:analyzer_experimental/src/generated/ast.dart' show Directive, UriBasedDirective;
^
'package:web_ui/dwc.dart': Error: line 12 pos 1: library handler failed
import 'src/compiler.dart';
^
'package:web_ui/component_build.dart': Error: line 26 pos 1: library handler failed
import 'dwc.dart' as dwc;
^
'file:///C:/Users/Phloxicon/Dropbox/dart/test1/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:20 PM Running pub install ... ---
Pub install failed, [255] Unhandled exception:
FileIOException: Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version' (OS Error: The system cannot find the file specified.
, errno = 2)
#0 _File.throwIfError (file_impl.dart:444:7)
#1 _File.openSync (file_impl.dart:310:17)
#2 _File.readAsBytesSync (file_impl.dart:363:26)
#3 _File.readAsStringSync (file_impl.dart:381:41)
#4 readTextFile (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:71:68)
#5 _getVersion (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:24:29)
#6 version (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:17:30)
#7 main (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:61:30)
--- Jun 11, 2013 10:26:20 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/testest/build.dart
build.dart returned error code 255
Unable to open file: C:/Users/Phloxicon/Dropbox/dart/testest/packages/web_ui/component_build.dart'file:///C:/Users/Phloxicon/Dropbox/dart/testest/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:20 PM Running pub install ... ---
Pub install failed, [255] Unhandled exception:
FileIOException: Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version' (OS Error: The system cannot find the file specified.
, errno = 2)
#0 _File.throwIfError (file_impl.dart:444:7)
#1 _File.openSync (file_impl.dart:310:17)
#2 _File.readAsBytesSync (file_impl.dart:363:26)
#3 _File.readAsStringSync (file_impl.dart:381:41)
#4 readTextFile (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:71:68)
#5 _getVersion (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:24:29)
#6 version (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:17:30)
#7 main (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:61:30)
Any ideas?
Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version'
This looks your Dart installation is broken. That file should definitely be there when you install the Dart SDK, and pub can't work without it.
Are you building the SDK yourself, or just downloading a pre-built one?
Try pub update rather than pub install so that cached packages are updated where possible.
Then use Reanalyze Sources from the same Tools menu. Be sure to clear any logs before running the Reanalyze Sources so you can be sure it did a clean build.
If that doesn't get you completely clean, delete any packages directories you see in the project's tree, and any out directories that might be hanging around, as well as the pubspec.lock file. Then run pub install.
That usually gets me back to clean builds.