概述
我有一个要移植到iphone的android应用。它已经快要准备好了,在进行更改等操作时,在我的测试iPhone上运行了30多个版本。提交给商店之前,我需要运行的最后一个编译失败。
我在许多不同的路径上花了无数的时间。从锁定文件夹中的损坏文件开始,一直到没有证书钥匙串条目为止,现在终于到了一个我什至不知道出什么问题的地方,因此我迫切希望为此提供一些帮助。
这是我的颤抖医生的输出:
dev@Users-Mac my_app % flutter doctor -v
[!] Flutter (Channel stable, v1.7.8+hotfix.4, on Mac OS X 10.15.4 19E224g,
locale en-AU)
• Flutter version 1.7.8+hotfix.4 at /Users/dev/flutter
• Framework revision 20e59316b8 (7 months ago), 2019-07-18
20:04:33 -0700
• Engine revision fee001c93f
• Dart version 2.4.0
✗ Downloaded executables cannot execute on host.
See https://github.com/flutter/flutter/issues/6207 for more information
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK
components.
(or visit https://flutter.dev/setup/#android-setup for detailed
instructions).
If the Android SDK has been installed to a custom location, set
ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.7.5
[✓] iOS tools - develop for iOS devices
• ios-deploy 1.10.0
[!] Android Studio (not installed)
• Android Studio not found; download from
https://developer.android.com/studio/index.html
(or visit https://flutter.dev/setup/#android-setup for detailed
instructions).
[✓] Connected device (1 available)
• iPhone • 39c7fe9b4c604a4bb9340e269626a • ios • iOS
13.3.1
! Doctor found issues in 3 categories.
这就是我现在从flutter run -v得到的结果:
TL; DR部分可能在这里吗?这也是我也尝试从Xcode中启动的错误,但是正如我所说的,我以前能够多次运行此应用程序,但没有添加任何内容:
/Users/dev/.pub-cache/hosted/pub.dartlang.org/firebase_dynamic_links-.4.0+4/ios/Classes/FirebaseDynamicLinksPlugin.m:2:
9: fatal error: 'UserAgent.h' file not found
#import "UserAgent.h"
^~~~~~~~~~~~~
1 error generated.
此处的输出较大,但由于字符限制,我无法全部包含:
/Users/dev/.pub-cache/hosted/pub.dartlang.org/firebase_auth-
0.11.1+7/ios/Classes/FirebaseAuthPlugin.m:6:9: fatal error:
'UserAgent.h' file not found
#import "UserAgent.h"
^~~~~~~~~~~~~
1 error generated.
ProcessInfoPlistFile
/Users/dev/Projects/my_app/build/ios/Debug-iphoneos/fi
rebase_admob/firebase_admob.framework/Info.plist
/Users/dev/Projects/my_app/ios/Pods/Target Support
Files/firebase_admob/firebase_admob-Info.plist (in target
'firebase_admob' from project 'Pods')
cd /Users/dev/Projects/my_app/ios/Pods
builtin-infoPlistUtility
/Users/dev/Projects/my_app/ios/Pods/Target
Support Files/firebase_admob/firebase_admob-Info.plist
-producttype com.apple.product-type.framework
-expandbuildsettings -format binary -platform iphoneos
-requiredArchitecture arm64 -o
/Users/dev/Projects/my_app/build/ios/Debug-iphoneo
s/firebase_admob/firebase_admob.framework/Info.plist
** BUILD FAILED **
The following build commands failed:
CompileC
/Users/dev/Library/Developer/Xcode/DerivedData/Runner-gclpd
pnsdqsmkseciycckchipfzl/Build/Intermediates.noindex/Pods.bu
ild/Debug-iphoneos/firebase_dynamic_links.build/Objects-nor
mal/arm64/FirebaseDynamicLinksPlugin.o
/Users/dev/.pub-cache/hosted/pub.dartlang.org/firebase_dyna
mic_links-0.4.0+4/ios/Classes/FirebaseDynamicLinksPlugin.m
normal arm64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
CompileC
/Users/dev/Library/Developer/Xcode/DerivedData/Runner-gclpd
pnsdqsmkseciycckchipfzl/Build/Intermediates.noindex/Pods.bu
ild/Debug-iphoneos/firebase_core.build/Objects-normal/arm64
/FirebaseCorePlugin.o
/Users/dev/.pub-cache/hosted/pub.dartlang.org/firebase_core
-0.4.0+9/ios/Classes/FirebaseCorePlugin.m normal arm64
objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC
/Users/dev/Library/Developer/Xcode/DerivedData/Runner-gclpd
pnsdqsmkseciycckchipfzl/Build/Intermediates.noindex/Pods.bu
ild/Debug-iphoneos/firebase_auth.build/Objects-normal/arm64
/FirebaseAuthPlugin.o
/Users/dev/.pub-cache/hosted/pub.dartlang.org/firebase_auth
-0.11.1+7/ios/Classes/FirebaseAuthPlugin.m normal arm64
objective-c com.apple.compilers.llvm.clang.1_0.compiler
(3 failures)
[ +74 ms] Running Xcode build... (completed in 6,564ms, longer than
expected)
[ +28 ms] Failed to build iOS app
[ +1 ms] Error output from Xcode build:
↳
[ +2 ms] ** BUILD FAILED **
The following build commands failed:
CompileC
/Users/dev/Library/Developer/Xcode/DerivedData/Runnergclpdpnsdqsmkseciycck
chipfzl/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/
firebase_dyna
mic_links.build/Objects-normal/arm64/FirebaseDynamicLinksPlugin.o
/Users/dev/.pub-cache/hosted/pub.dartlang.org/
firebase_dynamic_links-0.4.0+
4/ios/Classes/FirebaseDynamicLinksPlugin.m normal arm64
objective-c
com.apple.compilers.llvm.clang.1_0.compiler
CompileC
/Users/dev/Library/Developer/Xcode/DerivedData/Runnergclpdpnsdqsmkseciycck
chipfzl/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/
firebase_core
.build/Objects-normal/arm64/FirebaseCorePlugin.o
/Users/dev/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.0+9/
ios/Cla
sses/FirebaseCorePlugin.m normal arm64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
CompileC
/Users/dev/Library/Developer/Xcode/DerivedData/Runnergclpdpnsdqsmkseciycck
chipfzl/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/
firebase_auth
.build/Objects-normal/arm64/FirebaseAuthPlugin.o
/Users/dev/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.11.1+7/
ios/Cl
asses/FirebaseAuthPlugin.m normal arm64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
(3 failures)
最后
以上就是殷勤野狼为你收集整理的flutterapp部分手机无法打开_flutter应用程序将无法运行,无法找出原因的全部内容,希望文章能够帮你解决flutterapp部分手机无法打开_flutter应用程序将无法运行,无法找出原因所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复