laomengflutter / flutter-do Goto Github PK
View Code? Open in Web Editor NEW包含350多个组件用法、组件继承关系图、40多个 loading 组件,App升级、验证码、弹幕、音乐字幕 4个插件,一个小而全完整的App项目。
Home Page: http://laomengit.com/
License: Apache License 2.0
包含350多个组件用法、组件继承关系图、40多个 loading 组件,App升级、验证码、弹幕、音乐字幕 4个插件,一个小而全完整的App项目。
Home Page: http://laomengit.com/
License: Apache License 2.0
我认为对于iOS APP的更新不应该局限于App Store更新,也需要增加通过ipa下载链接下载安装iOS APP
Android 强制升级, 点击物理返回键可以让 Dialog 消失, 怎么能不让他消失呢
最后的日志如下:
I/flutter (12392): status:DownloadStatus.start,error:null
W/1.ui (12392): type=1400 audit(0.0:262482): avc: granted { create } for name="temp.apk" scontext=u:r:untrusted_app:s0:c2,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c2,c257,c512,c768 tclass=file
下载链接在浏览器可以下载apk文件。是否有什么格式要求?
比如content的高度是写死的200
转了一圈,还是发现flutter_app_upgrade的效果不错。果断下手。
引入项目后,FlutterAppUpgradePlugin.kt开始报错。新开了一个项目进行了测试。一切正常。
应该是我的项目环境的问题,根据错误提示。调整了几个地方。目前可以用,还请孟老师多多指教。
下面把修改的地方做了一下记录。
打开FlutterAppUpgradePlugin.kt这个文件。
一、
第62行 result.success(mContext.getExternalFilesDir("")!!.absolutePath) //加入!!
第127行 goToMarket.setClassName(marketPackageName.toString(), marketClassName.toString()) //添加.toString()
二、
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.xxxx.xxxxx.fileprovider" //直接下载文件时,格式须为包名+.fileprovider
android:exported="false"
android:grantUriPermissions="true">
插件再 pad这种屏幕设备中使用,更新提示弹框适配不是很好,看起来很奇怪,提示框太宽
borderWidth: _controller.text.length == index?widget.borderWidth+1:widget.borderWidth,
flutter_app_upgrade 什么时候适配flutter 2.0 ?
插件内部dio的插件版本过低,导致项目跑不起来
日志
e: ~/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.0.2/android/src/main/kotlin/com/flutter/flutter_app_upgrade/FlutterAppUpgradePlugin.kt: (62, 54): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type File? e: ~/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.0.2/android/src/main/kotlin/com/flutter/flutter_app_upgrade/FlutterAppUpgradePlugin.kt: (127, 20): None of the following functions can be called with the arguments supplied: @NonNull public open fun setClassName(@NonNull p0: Context, @NonNull p1: String): Intent defined in android.content.Intent @NonNull public open fun setClassName(@NonNull p0: String, @NonNull p1: String): Intent defined in android.content.Intent
flutterSDK: 1.19.0-4.3.pre
`FAILURE: Build failed with an exception.
org.xml.sax.SAXParseException; systemId: file:/D:/workspace/code/flutter_app/flutter_eoms_app/eoms_app/android/app/src/main/AndroidManifest.xml; lineNumber: 107; columnNumber: 54; ��Ԫ������ "meta-data" ����������� "tools:replace" ��ǰ "tools" δ��
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 8s
Exception: Gradle task assembleDebug failed with exit code 1
`
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.flutter.laomeng.flutter_upgrade_example"> <application android:name="io.flutter.app.FlutterApplication" android:icon="@mipmap/ic_launcher" android:label="flutter_upgrade_example"> ... <provider android:name="androidx.core.content.FileProvider" android:authorities="com.flutter.laomeng.flutter_upgrade_example.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" tools:replace="android:resource" android:resource="@xml/file_paths" /> </provider> </application> </manifest>
添加provider后,替换authorities为包名,name和resource仍然报错,请问该怎么设置?
麻烦帮忙看下,在安卓5.0以下的设备中出现该问题
W/ContextImpl( 5120): Unable to create external files directory
E/MethodChannel#flutter_app_upgrade( 5120): Failed to handle method call
E/MethodChannel#flutter_app_upgrade( 5120): java.lang.IllegalStateException: mContext.getExternalFilesDir("") must not be null
E/MethodChannel#flutter_app_upgrade( 5120): at com.flutter.flutter_app_upgrade.FlutterAppUpgradePlugin.onMethodCall(FlutterAppUpgradePlugin.kt:62)
E/MethodChannel#flutter_app_upgrade( 5120): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#flutter_app_upgrade( 5120): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#flutter_app_upgrade( 5120): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
E/MethodChannel#flutter_app_upgrade( 5120): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#flutter_app_upgrade( 5120): at android.os.MessageQueue.next(MessageQueue.java:132)
E/MethodChannel#flutter_app_upgrade( 5120): at android.os.Looper.loop(Looper.java:124)
E/MethodChannel#flutter_app_upgrade( 5120): at android.app.ActivityThread.main(ActivityThread.java:5136)
E/MethodChannel#flutter_app_upgrade( 5120): at java.lang.reflect.Method.invokeNative(Native Method)
E/MethodChannel#flutter_app_upgrade( 5120): at java.lang.reflect.Method.invoke(Method.java:525)
E/MethodChannel#flutter_app_upgrade( 5120): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
E/MethodChannel#flutter_app_upgrade( 5120): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/MethodChannel#flutter_app_upgrade( 5120): at dalvik.system.NativeStart.main(Native Method)
1.下载完成 应该主动 关闭dialog, 而不是一直存在
2.下载完成,失败,建议暴露回调,以方便更多的逻辑操作
3.如果直接apk跳转到安装界面,这个时候取消安装返回。dialog一直存在,除非杀掉APP
`<application
android:name="io.flutter.app.FlutterApplication"
android:label="浙农小贷"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.znjf33.znjf_app"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
tools:replace="android:resource"
android:resource="@xml/file_paths" />
</provider>
</application>`
Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attribute provider#androidx.core.content.FileProvider@authorities value=(com.znjf33.znjf_app) from AndroidManifest.xml:38:13-54
is also present at [:flutter_webview_plugin] AndroidManifest.xml:11:13-64 value=(com.znjf33.znjf_app.fileprovider).
Suggestion: add 'tools:replace="android:authorities"' to element at AndroidManifest.xml to override.
__MACOSX/flutter_verification_box/._README.md: Truncated tar archive
tar: Error exit delayed from previous errors.
Failed to extract .tar.gz stream to /Users/xxf/Documents/Flutter/flutter/.pub-cache/_temp/dirU4jaBw (exit code 1).
package:pub/src/io.dart 898:5 extractTarGz
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 398:11 BoundHostedSource._download
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 264:13 BoundHostedSource.downloadToSystemCache
package:pub/src/entrypoint.dart 407:48 Entrypoint._get.
dart:async runZoned
package:pub/src/http.dart 279:10 withDependencyType
package:pub/src/entrypoint.dart 403:12 Entrypoint._get
dart:async Future.wait
package:pub/src/entrypoint.dart 252:18 Entrypoint.acquireDependencies
dart:async _completeOnAsyncReturn
package:pub/src/solver/version_solver.dart VersionSolver.solve
dart:async _completeOnAsyncReturn
package:pub/src/source/hosted.dart BoundHostedSource.withPrefetching
dart:async _completeOnAsyncReturn
package:pub/src/rate_limited_scheduler.dart RateLimitedScheduler.withPrescheduling
dart:async _completeOnAsyncReturn
package:pub/src/source/hosted.dart BoundHostedSource.withPrefetching.
dart:async _completeOnAsyncReturn
package:pub/src/solver/version_solver.dart VersionSolver.solve.
dart:async _completeOnAsyncReturn
package:pub/src/solver/version_solver.dart VersionSolver._result
This is an unexpected error. Please run
pub --trace '--verbosity=warning' get --no-precompile
and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
pub get failed (1; and include the logs in an issue on https://github.com/dart-lang/pub/issues/new)
取消引入该包后pub get一切正常.
flutter_verification_box 1.0.3 不能 pub
Running "flutter pub get" in acgn_pioneer...
Could not un-tar (exit code 1). Error:
__MACOSX/flutter_verification_box/._README.md: Truncated tar archive
tar: Error exit delayed from previous errors., path = ''
pub get failed (66; tar: Error exit delayed from previous errors., path = '')
exit code 66
flutter doctor -v
[✓] Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.5 19F101, locale zh-Hans-CN)
• Flutter version 1.22.2 at /Users/yangchaoguo/Documents/flutter
• Framework revision 84f3d28555 (7 days ago), 2020-10-15 16:26:19 -0700
• Engine revision b8752bbfff
• Dart version 2.10.2
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/yangchaoguo/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = /Users/yangchaoguo/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_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.0, Build version 12A7209
• CocoaPods version 1.9.3
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 46.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.50.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.15.1
[✓] Connected device (1 available)
• iPhone SE (2nd generation) (mobile) • E864B09F-B728-480A-BD6B-4879845F210F • ios •
com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
Errors found:
/Library/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.1.0/android/src/main/kotlin/com/flutter/flutter_app_upgrade/FlutterAppUpgradePlugin.kt:159: Error: Must be one or more of: PackageManager.GET_META_DATA, PackageManager.GET_RESOLVED_FILTER, PackageManager.GET_SHARED_LIBRARY_FILES, PackageManager.MATCH_ALL, PackageManager.MATCH_DISABLED_COMPONENTS, PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS, PackageManager.MATCH_DEFAULT_ONLY, android.content.pm.PackageManager.MATCH_DIRECT_BOOT_AUTO, PackageManager.MATCH_DIRECT_BOOT_AWARE, PackageManager.MATCH_DIRECT_BOOT_UNAWARE, PackageManager.MATCH_SYSTEM_ONLY, PackageManager.MATCH_UNINSTALLED_PACKAGES, PackageManager.GET_DISABLED_COMPONENTS, PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS, PackageManager.GET_UNINSTALLED_PACKAGES [WrongConstant]
PackageManager.GET_INTENT_FILTERS)
pubSpec.yaml中设置version:1.0.0+1
var appInfo = await FlutterUpgrade.appInfo; 获取当前版本信息
debug版本获取到是1,而release版本是1001
android\src\main\kotlin\com\flutter\flutter_app_upgrade\FlutterAppUpgradePlugin.kt: (24, 14): Redeclaration: FlutterAppUpgradePlugin
1.0.0是好的
self.flutterVC = [[FlutterViewController alloc] initWithProject:nil initialRoute:@"livePage" nibName:nil bundle:nil]; dart 1.22.1 直接报错,无法创建对象,老版本的不会报错,只有最新的报错
只有输入完成的回调,用户删除输入或者输入不完整的数字都没有回调
E/MethodChannel#flutter_app_upgrade(19928): Failed to handle method call
E/MethodChannel#flutter_app_upgrade(19928): java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
E/MethodChannel#flutter_app_upgrade(19928): at androidx.core.content.FileProvider.parsePathStrategy(FileProvider.java:605)
E/MethodChannel#flutter_app_upgrade(19928): at androidx.core.content.FileProvider.getPathStrategy(FileProvider.java:579)
E/MethodChannel#flutter_app_upgrade(19928): at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:417)
E/MethodChannel#flutter_app_upgrade(19928): at com.flutter.flutter_app_upgrade.FlutterAppUpgradePlugin.startInstall(FlutterAppUpgradePlugin.kt:180)
E/MethodChannel#flutter_app_upgrade(19928): at com.flutter.flutter_app_upgrade.FlutterAppUpgradePlugin.onMethodCall(FlutterAppUpgradePlugin.kt:67)
E/MethodChannel#flutter_app_upgrade(19928): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:226)
E/MethodChannel#flutter_app_upgrade(19928): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#flutter_app_upgrade(19928): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:631)
E/MethodChannel#flutter_app_upgrade(19928): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#flutter_app_upgrade(19928): at android.os.MessageQueue.next(MessageQueue.java:326)
E/MethodChannel#flutter_app_upgrade(19928): at android.os.Looper.loop(Looper.java:189)
E/MethodChannel#flutter_app_upgrade(19928): at android.app.ActivityThread.main(ActivityThread.java:7201)
E/MethodChannel#flutter_app_upgrade(19928): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter_app_upgrade(19928): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499)
E/MethodChannel#flutter_app_upgrade(19928): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:956)
E/flutter (19928): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference, null)
E/flutter (19928): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7)
E/flutter (19928): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:18)
E/flutter (19928):
E/flutter (19928): #2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:329:12)
E/flutter (19928): #3 FlutterUpgrade.installAppForAndroid (package:flutter_app_upgrade/src/flutter_upgrade.dart:32:27)
E/flutter (19928): #4 _SimpleAppUpgradeWidget._downloadApk. (package:flutter_app_upgrade/src/simple_app_upgrade.dart:348:26)
E/flutter (19928): #5 DioForNative.download.. (package:dio/src/entry/dio_for_native.dart:164:30)
E/flutter (19928): #6 _rootRunUnary (dart:async/zone.dart:1192:38)
E/flutter (19928): #7 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
E/flutter (19928): #8 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
E/flutter (19928): #9 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
E/flutter (19928): #10 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
E/flutter (19928): #11 Future._completeWithValue (dart:async/future_impl.dart:526:5)
E/flutter (19928): #12 Future._asyncComplete. (dart:async/future_impl.dart:556:7)
E/flutter (19928): #13 _rootRun (dart:async/zone.dart:1184:13)
E/flutter (19928): #14 _CustomZone.run (dart:async/zone.dart:1077:19)
E/flutter (19928): #15 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
E/flutter (19928): #16 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1019:23)
E/flutter (19928): #17 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
E/flutter (19928): #18 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
Container(
height: 45,
margin: EdgeInsets.only(top: 180, left: 16, right: 16),
child: VerificationBox(
showCursor: true,
cursorColor: Colors.red,
focusBorderColor: Colors.blue,
),
),
Running "flutter pub get" in customers...
Could not un-tar (exit code 1). Error:
__MACOSX/flutter_verification_box/._README.md: Truncated tar archive
tar: Error exit delayed from previous errors., path = ''
pub get failed (66; tar: Error exit delayed from previous errors., path = '')
exit code 66
ios的versionCode返回是0,难道只能拿versionName去比对版本,进行强制更新的限制吗?
在线下载apk的时候报错
==========日志===============
E/flutter (22658): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method getApkDownloadPath on channel flutter_app_upgrade)
E/flutter (22658): #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7)
E/flutter (22658):
E/flutter (22658): #1 FlutterUpgrade.apkDownloadPath (package:flutter_app_upgrade/src/flutter_upgrade.dart:24:27)
E/flutter (22658): #2 _SimpleAppUpgradeWidget._clickOk (package:flutter_app_upgrade/src/simple_app_upgrade.dart:303:40)
E/flutter (22658): #3 _SimpleAppUpgradeWidget._buildOkActionButton. (package:flutter_app_upgrade/src/simple_app_upgrade.dart:269:11)
E/flutter (22658): #4 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:706:14)
E/flutter (22658): #5 _InkResponseState.build. (package:flutter/src/material/ink_well.dart:789:36)
E/flutter (22658): #6 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
E/flutter (22658): #7 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:486:11)
E/flutter (22658): #8 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:264:5)
E/flutter (22658): #9 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:199:7)
E/flutter (22658): #10 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:467:9)
E/flutter (22658): #11 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:76:12)
E/flutter (22658): #12 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:117:9)
E/flutter (22658): #13 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
E/flutter (22658): #14 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:115:18)
E/flutter (22658): #15 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:7)
E/flutter (22658): #16 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218:19)
E/flutter (22658): #17 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
E/flutter (22658): #18 GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
E/flutter (22658): #19 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
E/flutter (22658): #20 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
E/flutter (22658): #21 _rootRunUnary (dart:async/zone.dart:1138:13)
E/flutter (22658): #22 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
E/flutter (22658): #23 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933:7)
E/flutter (22658): #24 _invoke1 (dart:ui/hooks.dart:273:10)
E/flutter (22658): #25 _dispatchPointerDataPacket (dart:ui/hooks.dart:182:5)
E/flutter (22658):
W/System (22658): Ignoring header moid because its value was null.
W/System (22658): Ignoring header moid because its value was null.
Execution failed for task ':flutter_app_upgrade:compileDebugKotlin'.
FlutterAppUpgradePlugin.kt: (62, 54): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type File?
如题
我使用一加7t 安卓10系统 感觉不流畅,特别是在webview里面,更是卡得不行,好像只有30帧,你知道原因么?
W/System.err(18662): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.coolapk.market/com.coolapk.market.activity.AppViewActivity}; have you declared this activity in your AndroidManifest.xml?
W/System.err(18662): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2065)
W/System.err(18662): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1727)
W/System.err(18662): at android.app.Activity.startActivityForResult(Activity.java:5320)
W/System.err(18662): at android.app.Activity.startActivityForResult(Activity.java:5278)
W/System.err(18662): at android.app.Activity.startActivity(Activity.java:5664)
W/System.err(18662): at android.app.Activity.startActivity(Activity.java:5617)
W/System.err(18662): at com.flutter.flutter_app_upgrade.FlutterAppUpgradePlugin.toMarket(FlutterAppUpgradePlugin.kt:129)
W/System.err(18662): at com.flutter.flutter_app_upgrade.FlutterAppUpgradePlugin.onMethodCall(FlutterAppUpgradePlugin.kt:75)
W/System.err(18662): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
W/System.err(18662): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
W/System.err(18662): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
W/System.err(18662): at android.os.MessageQueue.nativePollOnce(Native Method)
W/System.err(18662): at android.os.MessageQueue.next(MessageQueue.java:335)
W/System.err(18662): at android.os.Looper.loop(Looper.java:183)
W/System.err(18662): at android.app.ActivityThread.main(ActivityThread.java:7656)
W/System.err(18662): at java.lang.reflect.Method.invoke(Native Method)
W/System.err(18662): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
W/System.err(18662): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
需要按照Flutter 1.20的插件调整插件方案
↳
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:13:14: warning: non-breaking space (U+00A0) used instead of regular space
let infoDictionary = Bundle.main.infoDictionary!
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:13:32: warning: non-breaking space (U+00A0) used instead of regular space
let infoDictionary = Bundle.main.infoDictionary!
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:14:14: warning: non-breaking space (U+00A0) used instead of regular space
let majorVersion = infoDictionary["CFBundleShortVersionString"]//主程序版本号
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:49: warning: treating a forced downcast to 'String' as optional will never produce 'nil'
map["packageName"] = bundleIdentifier as! String
^
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:51: note: use 'as?' to perform a conditional downcast to 'String'
map["packageName"] = bundleIdentifier as! String
^
?
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:32: note: add parentheses around the cast to silence this warning
map["packageName"] = bundleIdentifier as! String
^
( )
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:45: warning: treating a forced downcast to 'String' as optional will never produce 'nil'
map["versionName"] = majorVersion as! String
^
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:47: note: use 'as?' to perform a conditional downcast to 'String'
map["versionName"] = majorVersion as! String
^
?
/Users/tongyangsheng/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_app_upgrade-1.1.0/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:32: note: add parentheses around the cast to silence this warning
map["versionName"] = majorVersion as! String
^
( )
e: /Users/angus/Develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.1.0/android/src/main/kotlin/com/flutter/flutter_app_upgrade/FlutterAppUpgradePlugin.kt: (127, 52): Type mismatch: inferred type is String? but String was expected
flutter_app_upgrade如果我设置强制更新的话弹出对话框按下返回键还是会关闭对话框,怎么让他按下返回键直接退出app?
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 15.5s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/mac/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.0.2/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:13:14: warning: non-breaking space (U+00A0) used instead of regular space
let infoDictionary = Bundle.main.infoDictionary!
/Users/mac/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.0.2/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:13:32: warning: non-breaking space (U+00A0) used instead of regular space
let infoDictionary = Bundle.main.infoDictionary!
/Users/mac/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.0.2/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:14:14: warning: non-breaking space (U+00A0) used instead of regular space
let majorVersion = infoDictionary["CFBundleShortVersionString"]//主程序版本号
/Users/mac/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.0.2/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:49: warning: treating a forced downcast to 'String' as optional will never produce 'nil'
map["packageName"] = bundleIdentifier as! String
^
/Users/mac/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.0.2/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:51: note: use 'as?' to perform a conditional downcast to 'String'
map["packageName"] = bundleIdentifier as! String
^
?
/Users/mac/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.0.2/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:17:32: note: add parentheses around the cast to silence this warning
map["packageName"] = bundleIdentifier as! String
^
( )
/Users/mac/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.0.2/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:45: warning: treating a forced downcast to 'String' as optional will never produce 'nil'
map["versionName"] = majorVersion as! String
^
/Users/mac/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.0.2/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:47: note: use 'as?' to perform a conditional downcast to 'String'
map["versionName"] = majorVersion as! String
^
?
/Users/mac/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_app_upgrade-1.0.2/ios/Classes/SwiftFlutterAppUpgradePlugin.swift:18:32: note: add parentheses around the cast to silence this warning
map["versionName"] = majorVersion as! String
^
( )
Pods-Runner-eildaiovnuitqoaoprmuyblcyyyf
ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftUIKit'
ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftMetal'
ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCompatibility50'
ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
ld: warning: Could not find or use auto-linked library 'swiftCompatibilityDynamicReplacements'
ld: warning: Could not find or use auto-linked library 'swiftDispatch'
ld: warning: Could not find or use auto-linked library 'swiftCoreMedia'
ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
ld: warning: Could not find or use auto-linked library 'swiftCore'
ld: warning: Could not find or use auto-linked library 'swiftCoreAudio'
ld: warning: Could not find or use auto-linked library 'swiftSwiftOnoneSupport'
Undefined symbols for architecture x86_64:
"base conformance descriptor for Swift.Hashable: Swift.Equatable", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift.Hashable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"protocol descriptor for Swift._ObjectiveCBridgeable", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"method descriptor for static Swift._ObjectiveCBridgeable.conditionallyBridgeFromObjectiveC(: A._ObjectiveCType, result: inout A?) -> Swift.Bool", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"method descriptor for static Swift._ObjectiveCBridgeable._unconditionallyBridgeFromObjectiveC(A._ObjectiveCType?) -> A", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"protocol descriptor for Swift.Equatable", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift.Equatable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"base conformance descriptor for Swift._SwiftNewtypeWrapper: Swift.RawRepresentable", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift._SwiftNewtypeWrapper in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"protocol descriptor for Swift.RawRepresentable", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift.RawRepresentable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"associated type descriptor for Swift.RawRepresentable.RawValue", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift.RawRepresentable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"protocol descriptor for Swift._SwiftNewtypeWrapper", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift._SwiftNewtypeWrapper in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"method descriptor for Swift.RawRepresentable.init(rawValue: A.RawValue) -> A?", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift.RawRepresentable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"method descriptor for Swift._ObjectiveCBridgeable._bridgeToObjectiveC() -> A._ObjectiveCType", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"method descriptor for Swift.RawRepresentable.rawValue.getter : A.RawValue", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift.RawRepresentable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"protocol descriptor for Swift._HasCustomAnyHashableRepresentation", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift._HasCustomAnyHashableRepresentation in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"method descriptor for Swift._HasCustomAnyHashableRepresentation._toCustomAnyHashable() -> Swift.AnyHashable?", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift._HasCustomAnyHashableRepresentation in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"protocol conformance descriptor for Swift.String : Swift._ObjectiveCBridgeable in Foundation", referenced from:
lazy protocol witness table accessor for type Swift.String and conformance Swift.String : Swift._ObjectiveCBridgeable in Foundation in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"(extension in Swift):Swift._SwiftNewtypeWrapper< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>._toCustomAnyHashable() -> Swift.AnyHashable?", referenced from:
protocol witness for Swift._HasCustomAnyHashableRepresentation._toCustomAnyHashable() -> Swift.AnyHashable? in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift._HasCustomAnyHashableRepresentation in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"protocol witness table for Swift.String : Swift.Equatable in Swift", referenced from:
protocol witness for static Swift.Equatable.== infix(A, A) -> Swift.Bool in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.Equatable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"(extension in Swift):Swift._SwiftNewtypeWrapper< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>._rawHashValue(seed: Swift.Int) -> Swift.Int", referenced from:
protocol witness for Swift.Hashable._rawHashValue(seed: Swift.Int) -> Swift.Int in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.Hashable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"method descriptor for Swift.Hashable.hash(into: inout Swift.Hasher) -> ()", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift.Hashable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"(extension in Swift):Swift._SwiftNewtypeWrapper< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>.hash(into: inout Swift.Hasher) -> ()", referenced from:
protocol witness for Swift.Hashable.hash(into: inout Swift.Hasher) -> () in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.Hashable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Foundation.URL.bridgeToObjectiveC() -> __C.NSURL", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"static (extension in Swift):Swift._SwiftNewtypeWrapper< where A.RawValue: Swift._ObjectiveCBridgeable>._unconditionallyBridgeFromObjectiveC(A.RawValue._ObjectiveCType?) -> A", referenced from:
protocol witness for static Swift._ObjectiveCBridgeable._unconditionallyBridgeFromObjectiveC(A._ObjectiveCType?) -> A in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"static (extension in Swift):Swift._SwiftNewtypeWrapper< where A.RawValue: Swift._ObjectiveCBridgeable>.conditionallyBridgeFromObjectiveC(: A.RawValue._ObjectiveCType, result: inout A?) -> Swift.Bool", referenced from:
protocol witness for static Swift._ObjectiveCBridgeable.conditionallyBridgeFromObjectiveC(: A._ObjectiveCType, result: inout A?) -> Swift.Bool in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"static (extension in Swift):Swift._SwiftNewtypeWrapper< where A.RawValue: Swift._ObjectiveCBridgeable>.forceBridgeFromObjectiveC(: A.RawValue._ObjectiveCType, result: inout A?) -> ()", referenced from:
protocol witness for static Swift._ObjectiveCBridgeable.forceBridgeFromObjectiveC(: A._ObjectiveCType, result: inout A?) -> () in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.ObjectiveCBridgeable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Swift.allocateUninitializedArray(Builtin.Word) -> ([A], Builtin.RawPointer)", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Foundation.URL.init(string: __shared Swift.String) -> Foundation.URL?", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Swift.== infix<A where A: Swift.RawRepresentable, A.RawValue: Swift.Equatable>(A, A) -> Swift.Bool", referenced from:
protocol witness for static Swift.Equatable.== infix(A, A) -> Swift.Bool in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.Equatable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"_swift_deallocObject", referenced from:
l_objectdestroy in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"swift_allocObject", referenced from:
@objc flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"(extension in Foundation):Swift.Dictionary.bridgeToObjectiveC() -> __C.NSDictionary", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"_swift_getWitnessTable", referenced from:
lazy protocol witness table accessor for type __C.UIApplicationOpenExternalURLOptionsKey and conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.Hashable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
lazy protocol witness table accessor for type __C.UIApplicationOpenExternalURLOptionsKey and conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.RawRepresentable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
lazy protocol witness table accessor for type __C.UIApplicationOpenExternalURLOptionsKey and conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift._HasCustomAnyHashableRepresentation in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
lazy protocol witness table accessor for type __C.UIApplicationOpenExternalURLOptionsKey and conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.Equatable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
lazy protocol witness table accessor for type __C.UIApplicationOpenExternalURLOptionsKey and conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift._SwiftNewtypeWrapper in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
lazy protocol witness table accessor for type Swift.String and conformance Swift.String : Swift._ObjectiveCBridgeable in Foundation in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"_swift_getForeignTypeMetadata", referenced from:
type metadata accessor for __C.UIApplicationOpenExternalURLOptionsKey in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"method descriptor for static Swift.Equatable.== infix(A, A) -> Swift.Bool", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift.Equatable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"_swift_getTypeByMangledNameInContext", referenced from:
___swift_instantiateConcreteTypeFromMangledName in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"method descriptor for Swift.Hashable._rawHashValue(seed: Swift.Int) -> Swift.Int", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift.Hashable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"static (extension in Foundation):Swift.Dictionary.unconditionallyBridgeFromObjectiveC(__C.NSDictionary?) -> [A : B]", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"method descriptor for static Swift._ObjectiveCBridgeable.forceBridgeFromObjectiveC(: A._ObjectiveCType, result: inout A?) -> ()", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift.ObjectiveCBridgeable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Swift.Dictionary.subscript.setter : (A) -> B?", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"swift_retain", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
reabstraction thunk helper from @escaping @callee_guaranteed (@unowned Swift.Bool) -> () to @escaping @callee_unowned @convention(block) (@unowned Swift.Bool) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
_block_copy_helper in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"_swift_FORCE_LOAD$_swiftCompatibilityDynamicReplacements", referenced from:
_swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_flutter_app_upgrade in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_flutter_app_upgrade)
"_swift_FORCE_LOAD$_swiftCompatibility50", referenced from:
_swift_FORCE_LOAD$swiftCompatibility50$_flutter_app_upgrade in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCompatibility50$_flutter_app_upgrade)
"(extension in Swift):Swift._SwiftNewtypeWrapper< where A.RawValue: Swift._ObjectiveCBridgeable>._bridgeToObjectiveC() -> A.RawValue._ObjectiveCType", referenced from:
protocol witness for Swift._ObjectiveCBridgeable.bridgeToObjectiveC() -> A.ObjectiveCType in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.ObjectiveCBridgeable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"swift_bridgeObjectRetain", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
outlined copy of Swift.String? in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
__C.UIApplicationOpenExternalURLOptionsKey.init(rawValue: Swift.String) -> __C.UIApplicationOpenExternalURLOptionsKey in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"static (extension in Foundation):Swift.String.unconditionallyBridgeFromObjectiveC(__C.NSString?) -> Swift.String", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
__C.UIApplicationOpenExternalURLOptionsKey.rawValue.getter : Swift.String in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"static Swift.String.== infix(Swift.String, Swift.String) -> Swift.Bool", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Swift.assertionFailure(: Swift.StaticString, : Swift.StaticString, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"swift_dynamicCast", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"swift_getObjCClassFromMetadata", referenced from:
@nonobjc __C.FlutterMethodChannel.__allocating_init(name: Swift.String, binaryMessenger: __C.FlutterBinaryMessenger) -> __C.FlutterMethodChannel in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Swift.Dictionary.init() -> [A : B]", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"swift_bridgeObjectRelease", referenced from:
@nonobjc __C.FlutterMethodChannel.__allocating_init(name: Swift.String, binaryMessenger: __C.FlutterBinaryMessenger) -> __C.FlutterMethodChannel in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
outlined destroy of Swift.String in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
outlined consume of Swift.String? in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
outlined destroy of [Swift.String : Swift.String] in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
__C.UIApplicationOpenExternalURLOptionsKey.init(rawValue: Swift.String) -> __C.UIApplicationOpenExternalURLOptionsKey in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"type metadata for Swift.String", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
lazy protocol witness table accessor for type Swift.String and conformance Swift.String : Swift.ObjectiveCBridgeable in Foundation in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"method descriptor for Swift.Hashable.hashValue.getter : Swift.Int", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift.Hashable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"static Swift.String.+ infix(Swift.String, Swift.String) -> Swift.String", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"protocol witness table for Swift.String : Swift.Hashable in Swift", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
protocol witness for Swift.Hashable.hashValue.getter : Swift.Int in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.Hashable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
protocol witness for Swift.Hashable.hash(into: inout Swift.Hasher) -> () in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.Hashable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
protocol witness for Swift.Hashable._rawHashValue(seed: Swift.Int) -> Swift.Int in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.Hashable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
protocol witness for Swift._HasCustomAnyHashableRepresentation._toCustomAnyHashable() -> Swift.AnyHashable? in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.HasCustomAnyHashableRepresentation in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Swift.bridgeAnyObjectToAny(Swift.AnyObject?) -> Any", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"type metadata accessor for Foundation.URL", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
outlined destroy of Foundation.URL? in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"value witness table for Builtin.UnknownObject", referenced from:
full type metadata for __C.UIApplicationOpenExternalURLOptionsKey in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
full type metadata for flutter_app_upgrade.SwiftFlutterAppUpgradePlugin in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"swift_unknownObjectRelease", referenced from:
static flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.register(with: __C.FlutterPluginRegistrar) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
@nonobjc __C.FlutterMethodChannel.__allocating_init(name: Swift.String, binaryMessenger: __C.FlutterBinaryMessenger) -> __C.FlutterMethodChannel in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
@objc static flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.register(with: __C.FlutterPluginRegistrar) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> () to @escaping @callee_guaranteed (@in_guaranteed Any?) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"swift_release", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
reabstraction thunk helper from @escaping @callee_guaranteed (@unowned Swift.Bool) -> () to @escaping @callee_unowned @convention(block) (@unowned Swift.Bool) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
_block_destroy_helper in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
__swift_destroy_boxed_opaque_existential_0 in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
@objc flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Swift.stdlib_isOSVersionAtLeast(Builtin.Word, Builtin.Word, Builtin.Word) -> Builtin.Int1", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"_swift_unknownObjectRetain", referenced from:
@objc static flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.register(with: __C.FlutterPluginRegistrar) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"associated type descriptor for Swift._ObjectiveCBridgeable._ObjectiveCType", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"swift_getObjCClassMetadata", referenced from:
type metadata accessor for __C.FlutterMethodChannel in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
@objc static flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.register(with: __C.FlutterPluginRegistrar) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"protocol descriptor for Swift.Hashable", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift.Hashable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"(extension in Foundation):Swift.String.bridgeToObjectiveC() -> __C.NSString", referenced from:
@nonobjc __C.FlutterMethodChannel.__allocating_init(name: Swift.String, binaryMessenger: __C.FlutterBinaryMessenger) -> __C.FlutterMethodChannel in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
__C.UIApplicationOpenExternalURLOptionsKey.init(rawValue: Swift.String) -> __C.UIApplicationOpenExternalURLOptionsKey in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"type metadata accessor for Swift.Optional", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"(extension in Swift):Swift.SwiftNewtypeWrapper< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>.hashValue.getter : Swift.Int", referenced from:
protocol witness for Swift.Hashable.hashValue.getter : Swift.Int in conformance __C.UIApplicationOpenExternalURLOptionsKey : Swift.Hashable in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Swift.Dictionary.subscript.getter : (A) -> B?", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Swift.Dictionary.init(dictionaryLiteral: (A, B)...) -> [A : B]", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"base conformance descriptor for Swift._SwiftNewtypeWrapper: Swift._HasCustomAnyHashableRepresentation", referenced from:
protocol conformance descriptor for __C.UIApplicationOpenExternalURLOptionsKey : Swift._SwiftNewtypeWrapper in __C_Synthesized in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"_swift_getObjectType", referenced from:
static flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.register(with: __C.FlutterPluginRegistrar) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"swift_getInitializedObjCClass", referenced from:
type metadata accessor for __C.FlutterMethodChannel in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
type metadata accessor for flutter_app_upgrade.SwiftFlutterAppUpgradePlugin in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Swift.bridgeAnythingToObjectiveC(A) -> Swift.AnyObject", referenced from:
reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> () to @escaping @callee_guaranteed (@in_guaranteed Any?) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"type metadata for Any", referenced from:
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
"Swift.String.init(builtinStringLiteral: Builtin.RawPointer, utf8CodeUnitCount: Builtin.Word, isASCII: Builtin.Int1) -> Swift.String", referenced from:
static flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.register(with: __C.FlutterPluginRegistrar) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
flutter_app_upgrade.SwiftFlutterAppUpgradePlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libflutter_app_upgrade.a(SwiftFlutterAppUpgradePlugin.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Pods-Runner-eildaiovnuitqoaoprmuyblcyyyf
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
插件都按照要求安装好了,可是运行都时候报错:
No implementation found for method getAppInfo on channel flutter_app_upgrade
E/flutter ( 9305): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference, null) E/flutter ( 9305): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7) E/flutter ( 9305): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:18) E/flutter ( 9305): <asynchronous suspension> E/flutter ( 9305): #2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:329:12) E/flutter ( 9305): #3 FlutterUpgrade.installAppForAndroid (package:flutter_upgrade/src/flutter_upgrade.dart:33:27) E/flutter ( 9305): #4 _SimpleAppUpgradeWidget._downloadApk.<anonymous closure> (package:flutter_upgrade/src/simple_app_upgrade.dart:323:26) E/flutter ( 9305): #5 DioForNative.download.<anonymous closure>.<anonymous closure> (package:dio/src/entry/dio_for_native.dart:164:30) E/flutter ( 9305): #6 _rootRunUnary (dart:async/zone.dart:1134:38) E/flutter ( 9305): #7 _CustomZone.runUnary (dart:async/zone.dart:1031:19) E/flutter ( 9305): #8 _FutureListener.handleValue (dart:async/future_impl.dart:140:18) E/flutter ( 9305): #9 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45) E/flutter ( 9305): #10 Future._propagateToListeners (dart:async/future_impl.dart:711:32) E/flutter ( 9305): #11 Future._completeWithValue (dart:async/future_impl.dart:526:5) E/flutter ( 9305): #12 Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556:7) E/flutter ( 9305): #13 _rootRun (dart:async/zone.dart:1126:13) E/flutter ( 9305): #14 _CustomZone.run (dart:async/zone.dart:1023:19) E/flutter ( 9305): #15 _CustomZone.runGuarded (dart:async/zone.dart:925:7) E/flutter ( 9305): #16 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965:23) E/flutter ( 9305): #17 _microtaskLoop (dart:async/schedule_microtask.dart:43:21) E/flutter ( 9305): #18 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5) E/flutter ( 9305):
flutter_verification_box 输入框输入几个数字关闭软键盘,再打开的时候就没那么容易了.
而不是现在这种有限的只能改文字样式
比如加背景图片、按钮位置样式的调整等等.
pubspec.yaml添加依赖报错了,测试发现1.0.1没有问题,1.0.2开始出现问题,报错如下:
__MACOSX/flutter_verification_box/._README.md: Truncated tar archive
tar: Error exit delayed from previous errors.
Failed to extract .tar.gz stream to /Users/flutter/.pub-cache/_temp/dir24yhNG (exit code 1).
package:pub/src/io.dart 873:5 extractTarGz
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 323:11 BoundHostedSource._download
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 217:13 BoundHostedSource.downloadToSystemCache
package:pub/src/entrypoint.dart 388:48 Entrypoint._get.
dart:async runZoned
package:pub/src/http.dart 272:10 withDependencyType
package:pub/src/entrypoint.dart 384:12 Entrypoint._get
dart:async Future.wait
package:pub/src/entrypoint.dart 245:18 Entrypoint.acquireDependencies
dart:async _completeOnAsyncReturn
package:pub/src/solver/version_solver.dart VersionSolver.solve
dart:async _completeOnAsyncReturn
下载1.0.2的.tar.gz包发现也解压不了,一开始怀疑电脑的gzip出问题了,但是试过其他第三方库是可以正常解压,brew install gzip重新安装gzip也一样不行,目前只能拿源码clone到本地玩了
也没报错,不知道是什么问题 - -
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.