是否可以在iOS 10设备上安装flutter-applications

时间:2018-06-13 19:18:21

标签: ios flutter

我正在尝试弄清楚哪些苹果设备(以及哪些ios版本)有资格运行使用flutter开发的应用程序。

我有一台iPad 4(iOS 10.3.3)。我可以使用flutter run --release -d <device-id>成功运行应用程序,同时“Flutter Gallery”示例应用程序正常运行。但是当我尝试将其上传到appstore并使用Testflight进行测试时,在将其安装到设备上并点击应用程序图标后,它就会退出而不会出现错误。

然后我尝试使用flutter install -v命令安装应用程序,它给了我输出:

[   +2 ms] /usr/local/bin/ideviceinstaller -i build/ios/iphoneos/Runner.app
[+11866 ms] Uploading Runner.app package contents... DONE.
                    Installing '(null)'
                     - CreatingStagingDirectory (5%)
 - ExtractingPackage (15%)
 - InspectingPackage (20%)
 - TakingInstallLock (20%)
 - PreflightingApplication (30%)
 - InstallingEmbeddedProfile (30%)
 - VerifyingApplication (40%)
 - CreatingContainer (50%)
 - InstallingApplication (60%)
 - PostflightingApplication (70%)
 - SandboxingApplication (80%)
 - GeneratingApplicationMap (90%)
[  +20 ms] "flutter install" took 19,699ms.
Install failed

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28)
#1      InstallCommand.runCommand (package:flutter_tools/src/commands/install.dart:44)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:344)
<asynchronous suspension>
#3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:279)
<asynchronous suspension>
#4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142)
<asynchronous suspension>
#5      _rootRun (dart:async/zone.dart:1126)
#6      _CustomZone.run (dart:async/zone.dart:1023)
#7      runZoned (dart:async/zone.dart:1501)
#8      AppContext.run (package:flutter_tools/src/base/context.dart:141)
<asynchronous suspension>
#9      FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270)
#10     CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:309)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142)
<asynchronous suspension>
#13     _rootRun (dart:async/zone.dart:1126)
#14     _CustomZone.run (dart:async/zone.dart:1023)
#15     runZoned (dart:async/zone.dart:1501)
#16     AppContext.run (package:flutter_tools/src/base/context.dart:141)
<asynchronous suspension>
#17     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265)
<asynchronous suspension>
#18     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#19     new Future.sync (dart:async/future.dart:222)
#20     CommandRunner.run (package:args/command_runner.dart:109)
#21     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174)
#22     run.<anonymous closure> (package:flutter_tools/runner.dart:54)
<asynchronous suspension>
#23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142)
<asynchronous suspension>
#24     _rootRun (dart:async/zone.dart:1126)
#25     _CustomZone.run (dart:async/zone.dart:1023)
#26     runZoned (dart:async/zone.dart:1501)
#27     AppContext.run (package:flutter_tools/src/base/context.dart:141)
<asynchronous suspension>
#28     runInContext (package:flutter_tools/src/context_runner.dart:43)
<asynchronous suspension>
#29     run (package:flutter_tools/runner.dart:49)
#30     main (package:flutter_tools/executable.dart:49)
<asynchronous suspension>
#31     main (file:///Users/maxim/LocalProjects/flutter/packages/flutter_tools/bin/flutter_tools.dart:8)
#32     _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#33     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

下面有关我的开发环境的详细信息:

Flutter 0.4.4 • channel beta • https://github.com/flutter/flutter.git
Framework • revision f9bb4289e9 (5 weeks ago) • 2018-05-11 21:44:54 -0700
Engine • revision 06afdfe54e
Tools • Dart 2.0.0-dev.54.0.flutter-46ab040e58

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.4.4, on Mac OS X 10.13.4 17E202, locale en-UA)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.0)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4)
[✓] Android Studio (version 3.1)
[!] VS Code (version 1.24.0)
[✓] Connected devices (1 available)

我的问题是: 1)还有什么办法可以弄清楚这里有什么问题? 2)是否可以在iOS 10设备上安装flutter-applications?这些设备有没有成功?

任何帮助都将不胜感激。

1 个答案:

答案 0 :(得分:2)

iPad 4采用32位架构。现在只在master中支持(6月中旬&#39; 18)。如果您处于Flutter beta切换到掌握并再次尝试上传到TestFlight。

在flutter安装的终端中执行以下命令以切换到master:

> flutter channel master 

然后重建您的应用。