Repository navigation
[iOS] framework not found Flutter after upgrade Flutter stable version 1.17.0 #56642
Copy link
Copy link
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleplatform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Steps to Reproduce
- flutter upgrade (stable channel from 1.12.13+hotfix.9 to 1.17.0)
- flutter pub get
- flutter run --flavor development -t lib/main_development.dart
Platform: iOS
Logs
Running pod install... 6.2s
Running Xcode build...
Xcode build done. 19.0s
Failed to build iOS app
Error output from Xcode build:
↳
2020-05-08 14:11:56.691 xcodebuild[34825:277471] DTDeviceKit: deviceType from 00008020-00166D842198003A was NULL
2020-05-08 14:11:56.702 xcodebuild[34825:277471] DTDeviceKit: deviceType from 00008006-00162B0E3647002E was NULL
2020-05-08 14:12:07.919 XCBBuildService[34834:277678] Failed to remove:
/Users/mac/Library/Developer/Xcode/DerivedData/Runner-cbjfnxiwnppywiclnxpxnaledqlr/Build/Intermediates.noindex/XCBuildData/e8302ca234024578636961d2dea6a107-manifest.xcbuild:
unlink(/Users/mac/Library/Developer/Xcode/DerivedData/Runner-cbjfnxiwnppywiclnxpxnaledqlr/Build/Intermediates.noindex/XCBuildData/e8302ca234024578636961d2dea6a107-manifest.xcbuild): No such file or directory (2)
2020-05-08 14:12:08.534 XCBBuildService[34834:277678] Failed to remove:
/Users/mac/Library/Developer/Xcode/DerivedData/Runner-cbjfnxiwnppywiclnxpxnaledqlr/Build/Intermediates.noindex/XCBuildData/e8302ca234024578636961d2dea6a107-desc.xcbuild:
unlink(/Users/mac/Library/Developer/Xcode/DerivedData/Runner-cbjfnxiwnppywiclnxpxnaledqlr/Build/Intermediates.noindex/XCBuildData/e8302ca234024578636961d2dea6a107-desc.xcbuild): No such file or directory (2)
** BUILD FAILED **
Xcode's output:
↳
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
ld: framework not found Flutter
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'FLAnimatedImage' from project 'Pods')
warning: AssetsLibrary is deprecated. Consider migrating to Photos instead. (in target 'DKPhotoGallery' from project 'Pods')
warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'DKPhotoGallery' from project 'Pods')
flutter doctor -v
[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.3 19D76, locale en-VN)
• Flutter version 1.17.0 at /Users/mac/flutter/flutter
• Framework revision e6b34c2b5c (6 days ago), 2020-05-02 11:39:18 -0700
• Engine revision 540786dd51
• Dart version 2.8.1
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/mac/Library/Android/sdk
• Platform android-29, build-tools 28.0.3
• ANDROID_HOME = /Users/mac/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_152-release-1248-b01)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.4.1, Build version 11E503a
• CocoaPods version 1.9.1
[✓] Android Studio (version 3.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 33.3.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[✓] VS Code (version 1.45.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.10.1
[✓] Connected device (1 available)
• Dao Anh Le • 00008020-00166D842198003A • ios • iOS 13.4.1
More Infomation
- Targets: Runner, OneSignalNotificationServiceExtension
flutter create && flutter pub get && flutter runit work
Tried to fix:
flutter cleanrm -rf ios/Pods Podfile.lockpod installpod repo update && pod setuprm -rf ~/Library/Developer/Xcode/DerivedData/*- XCode Clean Build Folder
- re-install flutter SDK
- reset my Macbook
- iOS migration XCode 11.4: https://flutter.dev/docs/development/ios-project-migration
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleplatform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Activity
Martin-Alvarado-Void commentedon May 8, 2020
shadedcreature commentedon May 8, 2020
iapicca commentedon May 8, 2020
xster commentedon May 8, 2020
Possibly related to #56507. #54571 and #56479 aren't related.
xster commentedon May 8, 2020
Sorry, #56507 isn't related either.
@dao-wkm is this a flavor specific issue? i.e. does it work if you don't use the
--flavorflag?jmagman commentedon May 8, 2020
That looks like it's the bowels of Xcode's build system. Does a
flutter clean(to clean the Xcode workspace) fix it? If not, try closing Xcode, deleting DerivedData (likely at ~/Library/Developer/Xcode/DerivedData), and then running again.jmagman commentedon May 8, 2020
Oh you said you tried that, sorry I missed it.
Can you try deleting DerivedData though?
jmagman commentedon May 8, 2020
Okay sorry I see you tried that too.
jmagman commentedon May 8, 2020
Martin-Alvarado-A commentedon May 8, 2020
Thanks i subscribed to it, hope there's a fix soon or steps to fix it.
dao-wkm commentedon May 10, 2020
flutter runalso does not work.But it works with
flutter create && flutter pub get && flutter runjmagman commentedon May 20, 2020
Can we get the full
flutter runoutput with the--verboseflag? Can you also attach yourios/Runner.xcodeproj/project.pbxproj?See #56507 (comment) for something similar that may be going on.
TahaTesser commentedon Jul 1, 2020
Accidentally removed waiting label, i thought wait label was older than 21 days.
dao-wkm commentedon Jul 14, 2020
I must admit that the problem is related to Configurations and Flavors because I configured it the wrong way.
If you face this problem, please create a new flutter project and compare it with your project
github-actions commentedon Aug 19, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.