在iPhone模拟器中摇动尝试启动应用程序(错误:生成多个输出文件时无法指定-o)

时间:2019-08-06 14:47:53

标签: ios xcode flutter clang

我创建了一个新的flutter应用程序(新的和空白的,刚刚创建,在带有flutter插件的android studio中),并尝试在iOS模拟器中进行构建。 当我在android中运行时,所有功能都可以正常运行...

错误消息:

Launching lib/main.dart on iPhone X in debug mode...
[{"event":"app.progress","params":{"appId":"45fc58e1-7450-4695-af9a-7328b3af720f","id":"0","progressId":null,"message":"Running Xcode build..."}}]Running Xcode build...

Xcode build done.                                            7,3s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    clang-4.0: error: cannot specify -o when generating multiple output files
    clang-4.0: error: cannot specify -o when generating multiple output files
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    error: the following command failed with exit code 1 but produced no further output
    CompileC /Users/diego/Library/Developer/Xcode/DerivedData/Runner-dspyslowkeabawcnoidsykolidvm/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner_vers.o /Users/diego/Library/Developer/Xcode/DerivedData/Runner-dspyslowkeabawcnoidsykolidvm/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/DerivedSources/Runner_vers.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler

Could not build the application for the simulator.
Error launching application on iPhone X.

我的扑打医生-v

[✓] Flutter (Channel stable, v1.7.8+hotfix.4, on Mac OS X 10.14.6 18G84, locale pt-BR)
    • Flutter version 1.7.8+hotfix.4 at /Users/diego/flutter
    • Framework revision 20e59316b8 (3 weeks ago), 2019-07-18 20:04:33 -0700
    • Engine revision fee001c93f
    • Dart version 2.4.0


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at /Users/diego/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • Java binary at: /Users/diego/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.5692245/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.3, Build version 10G8
    • CocoaPods version 1.7.5

[✓] iOS tools - develop for iOS devices
    • ios-deploy 1.9.4

[✓] Android Studio (version 3.4)
    • Android Studio at /Users/diego/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.5692245/Android Studio.app/Contents
    • Flutter plugin version 37.1.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.36.1)
    • VS Code at /Users/diego/Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.2.0

[✓] Connected device (1 available)
    • iPhone X • 6B119C54-1AB2-4F43-92D6-6AAAB3B5CFC0 • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-4 (simulator)

• No issues found!

我尝试在任何设备上运行,但是无法启动...

0 个答案:

没有答案