Repository navigation
ld: framework not found App #50638
Description
Steps to Reproduce
Hello there, i have this problem an can't resolve.
Building com.xxxx.xxxxxxx for device (ios-release)...
Running Xcode build...
Xcode build done. 33,0s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Pods-Runner-elzgnnmeitvvfoeqadswogpwucgx
In file included from /Users/decxus/Desktop/development/AccCRM/Sources/cliente-mobile/supermercado_nova/ios/Runner/GeneratedPluginRegistrant.m:8:
/Users/decxus/Desktop/development/AccCRM/Sources/cliente-mobile/supermercado_nova/ios/Pods/Headers/Public/barcode_scan/BarcodeScanPlugin.h:12:1: warning: retain'ed block property does not copy the
block - use copy attribute instead [-Wobjc-noncopy-retain-block-property]
@Property(nonatomic, retain) FlutterResult result;
^
1 warning generated.
Pods-Runner-elzgnnmeitvvfoeqadswogpwucgx
error: the following command failed with exit code 0 but produced no further output
CompileC
/Users/decxus/Library/Developer/Xcode/DerivedData/Runner-atolvwuyuclhssazyqbjuhljrgqg/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/GeneratedPluginRegistr
ant.o /Users/decxus/Desktop/development/AccCRM/Sources/cliente-mobile/supermercado_nova/ios/Runner/GeneratedPluginRegistrant.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
Pods-Runner-elzgnnmeitvvfoeqadswogpwucgx
ld: framework not found App
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: framework not found App
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Pods-Runner-elzgnnmeitvvfoeqadswogpwucgx
note: Using new build system
note: Planning build
note: Constructing build description
Encountered error while building for device.
Logs
[ +60 ms] Error output from CocoaPods:
↳
[ +3 ms]
[!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See
`https://guides.cocoapods.org/syntax/podfile.html#platform`.
[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set
the base
configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in
your build
configuration (`Flutter/Release.xcconfig`).
info • Don't explicitly initialize variables to null • lib/global.dart:38:8 • avoid_init_to_null
info • Don't explicitly initialize variables to null • lib/global.dart:110:8 • avoid_init_to_null
info • This function has a return type of 'Future<void>', but doesn't end with a return statement • lib/global.dart:189:14 • missing_return
info • Name non-constant identifiers using lowerCamelCase • lib/global.dart:526:14 • non_constant_identifier_names
info • Avoid using braces in interpolation when not needed • lib/global.dart:621:50 • unnecessary_brace_in_string_interps
info • This function has a return type of 'Future<bool>', but doesn't end with a return statement • lib/global.dart:695:14 • missing_return
info • Avoid using braces in interpolation when not needed • lib/main.dart:49:27 • unnecessary_brace_in_string_interps
info • Avoid using braces in interpolation when not needed • lib/main.dart:52:26 • unnecessary_brace_in_string_interps
info • Unused import: 'package:supermercado_nova/routes/slide_up.dart' • lib/models/interest_model.dart:6:8 • unused_import
info • Duplicate import • lib/models/interest_model.dart:7:8 • duplicate_import
info • The value of the field '_carregando' isn't used • lib/models/interest_model.dart:38:8 • unused_field
info • Name non-constant identifiers using lowerCamelCase • lib/models/interest_model.dart:42:3 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/models/interest_model.dart:176:41 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/models/interest_model.dart:184:41 • non_constant_identifier_names
info • Unused import: 'package:flutter/material.dart' • lib/models/responses/menu_response.dart:1:8 • unused_import
info • The value of the local variable 'facebookLink' isn't used • lib/pages/contact_page.dart:42:12 • unused_local_variable
info • Name non-constant identifiers using lowerCamelCase • lib/pages/cupom_page.dart:101:31 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/pages/email_page.dart:33:41 • non_constant_identifier_names
info • This function has a return type of 'Future<void>', but doesn't end with a return statement • lib/pages/email_page.dart:41:16 • missing_return
info • Name non-constant identifiers using lowerCamelCase • lib/pages/email_page.dart:153:47 • non_constant_identifier_names
info • Unused import: 'package:supermercado_nova/pages/point_page.dart' • lib/pages/home_page.dart:17:8 • unused_import
info • The value of the local variable 'id1' isn't used • lib/pages/home_page.dart:83:11 • unused_local_variable
info • Avoid using unnecessary statements • lib/pages/home_page.dart:85:5 • unnecessary_statements
info • 'await' applied to 'void', which is not a 'Future' • lib/pages/home_page.dart:99:5 • await_only_futures
info • The value of the field '_enabled' isn't used • lib/pages/login_page.dart:36:8 • unused_field
info • Name non-constant identifiers using lowerCamelCase • lib/pages/login_page.dart:74:16 • non_constant_identifier_names
info • 'await' applied to 'void', which is not a 'Future' • lib/pages/login_page.dart:141:7 • await_only_futures
info • 'await' applied to 'void', which is not a 'Future' • lib/pages/login_page.dart:142:7 • await_only_futures
info • 'await' applied to 'bool', which is not a 'Future' • lib/pages/login_page.dart:145:18 • await_only_futures
info • Name non-constant identifiers using lowerCamelCase • lib/pages/login_page.dart:149:41 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/pages/login_page.dart:153:41 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/pages/login_page.dart:162:16 • non_constant_identifier_names
info • 'await' applied to 'void', which is not a 'Future' • lib/pages/login_page.dart:284:9 • await_only_futures
info • Name non-constant identifiers using lowerCamelCase • lib/pages/login_page.dart:293:43 • non_constant_identifier_names
info • 'data' is deprecated and shouldn't be used • lib/pages/meu_codigo_page.dart:21:11 • deprecated_member_use
info • 'codeType' is deprecated and shouldn't be used • lib/pages/meu_codigo_page.dart:24:11 • deprecated_member_use
info • 'lineWidth' is deprecated and shouldn't be used • lib/pages/meu_codigo_page.dart:25:11 • deprecated_member_use
info • 'hasText' is deprecated and shouldn't be used • lib/pages/meu_codigo_page.dart:26:11 • deprecated_member_use
info • Unused import: 'package:supermercado_nova/pages/scanner_page.dart' • lib/pages/more_page.dart:5:8 • unused_import
info • Unused import: 'package:material_design_icons_flutter/material_design_icons_flutter.dart' • lib/pages/more_page.dart:6:8 • unused_import
info • Unused import: 'package:supermercado_nova/pages/profile_page.dart' • lib/pages/new_password.dart:5:8 • unused_import
info • 'await' applied to 'void', which is not a 'Future' • lib/pages/notification_page.dart:48:5 • await_only_futures
info • This function has a return type of 'Future<void>', but doesn't end with a return statement • lib/pages/promotion_item_page.dart:26:16 • missing_return
info • Name non-constant identifiers using lowerCamelCase • lib/pages/promotion_item_page.dart:65:35 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/pages/promotion_item_page.dart:87:11 • non_constant_identifier_names
info • This function has a return type of 'Future<void>', but doesn't end with a return statement • lib/pages/promotion_page.dart:23:16 • missing_return
info • Name non-constant identifiers using lowerCamelCase • lib/pages/promotion_page.dart:134:43 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/pages/promotion_page.dart:165:11 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/pages/promotion_page.dart:225:11 • non_constant_identifier_names
info • Unused import: 'package:flutter/services.dart' • lib/pages/splash_screen.dart:3:8 • unused_import
info • Set literals weren't supported until version 2.2, but this code is required to be able to run on earlier versions • lib/ui.dart:265:28 • sdk_version_set_literal
info • Set literals weren't supported until version 2.2, but this code is required to be able to run on earlier versions • lib/ui.dart:308:28 • sdk_version_set_literal
info • Name non-constant identifiers using lowerCamelCase • lib/ui/cep_input.dart:4:8 • non_constant_identifier_names
info • The declaration '_KSuccessLight' isn't referenced • lib/ui/custom_stepper.dart:32:13 • unused_element
info • The declaration '_kDisabledLight' isn't referenced • lib/ui/custom_stepper.dart:37:13 • unused_element
info • The declaration '_kDisabledDark' isn't referenced • lib/ui/custom_stepper.dart:38:13 • unused_element
info • 'ancestorWidgetOfExactType' is deprecated and shouldn't be used. Use findAncestorWidgetOfExactType instead. This feature was deprecated after v1.12.1. • lib/ui/custom_stepper.dart:529:19 •
deprecated_member_use
info • 'ancestorRenderObjectOfType' is deprecated and shouldn't be used. Use findAncestorRenderObjectOfType instead. This feature was deprecated after v1.12.1. • lib/ui/gradient_app_bar.dart:450:20 •
deprecated_member_use
info • 'TypeMatcher' is deprecated and shouldn't be used. TypeMatcher has been deprecated because it is no longer used in framework(only in deprecated methods). This feature was deprecated after
v1.12.1. • lib/ui/gradient_app_bar.dart:451:15 • deprecated_member_use
info • This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: HomeDrawer.itensDrawer • lib/ui/home_drawer.dart:15:7 •
must_be_immutable
info • Avoid using braces in interpolation when not needed • lib/ui/item_card.dart:99:38 • unnecessary_brace_in_string_interps
info • Avoid using braces in interpolation when not needed • lib/ui/item_card.dart:106:36 • unnecessary_brace_in_string_interps
info • Avoid using braces in interpolation when not needed • lib/ui/item_card.dart:181:35 • unnecessary_brace_in_string_interps
info • Name non-constant identifiers using lowerCamelCase • lib/ui/normal_input.dart:12:9 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/ui/normal_input.dart:54:8 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/ui/password_input.dart:5:8 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/ui/sex_selection.dart:5:8 • non_constant_identifier_names
67 issues found. (ran in 9.0s)
[✓] Flutter (Channel stable, v1.12.13+hotfix.7, on Mac OS X 10.15.3 19D76, locale pt-BR)
• Flutter version 1.12.13+hotfix.7 at /Users/decxus/development/flutter
• Framework revision 9f5ff2306b (2 weeks ago), 2020-01-26 22:38:26 -0800
• Engine revision a67792536c
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/decxus/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /Users/decxus/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)
• All Android licenses accepted.
[✓] 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.9.0.beta.3
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.42.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.8.1
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
Activity
TahaTesser commentedon Feb 12, 2020
Could be related #32454
jmagman commentedon Feb 12, 2020
Can we get the output of
flutter run -d <device> --release -v? The compiled dart framework is missing but I'm not sure what went wrong.jmagman commentedon Mar 6, 2020
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
flutter-painter commentedon Jun 22, 2020
Sorry to reopen this issue, but new Flutter version (master) 1.20.0-1.0.pre yielded same while trying tu build desktop version, with below output.
When reverted to 1.19 and macos/windows apps were built successfully.
jmagman commentedon Jun 22, 2020
@926 Please file a new issue, this one wasn't targeting macOS and the codepath is different. Include the output of
flutter runwith the-vverbose flag.flutter-painter commentedon Jun 22, 2020
Point taken.
Culprit found, it is a package / android plugin issue. No need for new issue.
Thanks
BirjuVachhani commentedon Jul 18, 2020
I am getting the same error on latest Flutter master branch v
1.21.0-2.0.pre.66. Does anyone know how can I resolve this?jmagman commentedon Jul 20, 2020
@BirjuVachhani Looks like 1. you are building a mac app. 2. you renamed Runner.xcodeproj, which isn't supported.
luccasmaso commentedon Sep 8, 2020
Same error here with building target macos
Flutter 1.22.0-10.0.pre.89 • channel master • https://github.com/flutter/flutter.git
luccasmaso commentedon Sep 8, 2020
Well, in my case I think the macos/ folder generated by
flutter create .was outdated. Deleting the /macos directory and runningflutter create .again solved.github-actions commentedon Aug 7, 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.