Closed
Description
The problem:
github.com/cloudwebrtc/flutter-webrtc-demo && flutter run -d all
Launching lib/main.dart on iPhone SE in debug mode...
Running Xcode build...
Xcode build done. 2.2s
Failed to build iOS app
Error output from Xcode build:
↳
2019-09-13 04:45:39.339 XCBBuildService[46127:2038156] Failed to remove:
/Users/apple/Library/Developer/Xcode/DerivedData/Runner-cetgpfixclxuyldlteelhuhhrgej/Build/Intermediates.noindex/XCBuildData/97174e538c278bce242a0f927e548a1a-desc.xcbuild:
unlink(/Users/apple/Library/Developer/Xcode/DerivedData/Runner-cetgpfixclxuyldlteelhuhhrgej/Build/Intermediates.noindex/XCBuildData/97174e538c278bce242a0f927e548a1a-desc.xcbuil
d): No such file or directory (2)
** BUILD FAILED **
Xcode's output:
↳
error: Multiple commands produce
'/Users/apple/workspace/go/src/github.com/cloudwebrtc/flutter-webrtc-demo/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework':
1) Target 'Runner' has copy command from '/Users/apple/workspace/go/src/github.com/cloudwebrtc/flutter-webrtc-demo/ios/Flutter/Flutter.framework' to
'/Users/apple/workspace/go/src/github.com/cloudwebrtc/flutter-webrtc-demo/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework'
2) That command depends on command in Target 'Runner': script phase “[CP] Embed Pods Frameworks”
warning: ignoring duplicated output file:
'/Users/apple/workspace/go/src/github.com/cloudwebrtc/flutter-webrtc-demo/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework' in shell script build phase
'[CP] Embed Pods Frameworks'. This warning represents an extremely serious project misconfiguration and will likely cause some shell scripts in your project to be skipped
entirely, leading to other build failures or missing files in the build directory. This will be a hard error in the future. (in target 'Runner')
note: Using new build systemnote: Planning buildnote: Constructing build description
Context:
I am running on flutter master channel, so i get the latest desktop and web stuff.
I do NOT get this problem if i do a Flutter Create.
x-MacBook-Pro:~ apple$ flutter doctor -v
[✓] Flutter (Channel master, v1.10.2-pre.69, on Mac OS X 10.14.6 18G95, locale en-DE)
• Flutter version 1.10.2-pre.69 at /Users/apple/fvm/master
• Framework revision 7ca249126b (2 hours ago), 2019-09-12 18:03:32 -0700
• Engine revision 7ea9884ab0
• Dart version 2.5.0 (build 2.5.0-dev.4.0 be66176534)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/apple/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Users/apple/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_202-release-1483-b49-5587405)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[✓] 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
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.38.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.4.1
[✓] Connected device (1 available)
• iPhone SE • 18D80E89-328E-4BA6-954D-50CD74F3C3C3 • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-4 (simulator)
This is the problem and the fix.
Metadata
Metadata
Assignees
Labels
No labels