flutter build ios hava some problems library not found for -lBSGridCollectionViewLayout - ios

Build ios have some error
T.T
Xcode's output:
↳
url_launcher-fgttqlawlkztnfglsqslrmrivxkq
Building AOT snapshot in release mode (ios-release)...
Building App.framework for arm64...
Building App.framework for armv7...
Building AOT snapshot in release mode (ios-release)... 38.2s
Built to build/aot/.
warning: parsing line table prologue at offset 0x6f697463 found unsupported
version 0x00
warning: line table parameters mismatch. Cannot emit.
note: while processing
/Users/a./Desktop/business-b/business-b/build/aot/armv7/snapshot_assembly.o
Project /Users/a./Desktop/business-b/business-b/ios/.. built and packaged
successfully.
ld: library not found for -lBSGridCollectionViewLayout
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
url_launcher-fgttqlawlkztnfglsqslrmrivxkq
note: Using new build systemnote: Planning buildnote: Constructing build
description

In this link Flutter ios release build failed with exit code 1 I found a reference to reinstall Flutter SDK, but it didn't work for me.

Related

Cann't run the app from android studio but it run by Xcode normally

after I did integrate google maps flutter I couldn't run the by android studio but it runs successfully by the Xcode
Error output from Xcode build:
objc[16091]: Class AMSupportURLConnectionDelegate is implemented in both /usr/Lib/Libamsupport.dylib
(0x1ee18f130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice
„framework/Versions/A/MobiLeDevice (ex1067bc2c8). One of the two will be used. Which one is undefined.
objc(16091]: Class AMSupportURLSession is implemented in both /us/Lib/Libamsupport.dylib (Oxlee18f180) and
/Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice(0x1067bc318)
One of the two will be used. Which one is undefined.
** BUILD FAILED **
Flutter Performance
Flutter Outine
Flutter Inspector
E TODO
Xcode's output:
Ld: building for 10S Simulator, but Linking in object file built for 10S, file
"/Users/hamada/StudioProjects/3XTravel/ios/Pods/GoogLeMaps/Maps/Frameworks/GoogLeMaps.framework/GoogleMaps'
for architecture arm64
clang: error: Linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: PLanning
note: Build preparation complete
note: Building targets in dependency order
/Users/hamada/StudioProjects/3X Travel/ios/Pods/Pods.xcodeproi: warning: The iOS Simulator deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported depLoyment target versions
is
9.0 to 15.2.99. (in target
"FMDB" from project
Pods")
/Users/hamada/StudioProjects/3X Travel/ios/Pods/Pods.xcodeproj: warning: The 10S Simulator depLoyment

I am running flutter app and getting this error

Running "flutter pub get" in my_app... 362ms
Launching lib/main.dart on iPhone 11 in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 1,375ms
Xcode build done. 6.7s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
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
Try this
Delete the flutter folder at the FLUTTER PATH, and recopy the same path in the flutter folder.

clang: error: linker command failed with exit code 1:Undefined symbols for architecture x86_64

I have added a custom plugin to Cordova app. And the custom plugin uses a third party framework.
When i build it through cordova command line the build fails with the error
clang: error: linker command failed with exit code 1:Undefined symbols for architecture x86_64
But if i open xcode project now and build the app its working fine and that framework is alos added in the embedded bianries in Xcode. But i want to buil the app from cordova command line as it needs to be automated as a part of build process.
Error is “clang: error: linker command failed with exit code 1“
You can add the deployment-target preference to your project's config.xml. For example, this would set the deployment target to iOS 10.0.
<preference name="deployment-target" value="11.0" />

Problem building to IOS with Flutter in Android Studio

friends...
For reasons I don't know why... When I am building to iOS Emulator, I have this error:
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/user./.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.1.1/ios/Classes/FLTGoogleSignInPlugin.m:139:19: warning: unused variable 'sourceApplication' [-Wunused-variable]
NSString *sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey];
^
1 warning generated.
ld: framework not found App
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning build
note: Constructing build description
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'image_picker' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'image_picker' from project 'Pods')

Xcode archive failed with error exit code 1

when I'm trying to publish my React native application, I first try to build an app and it builds successfully. Then when product » archive I get the following error:
ld: 513 duplicate symbols for architecture arm64 clang:
error: linker command failed with exit code 1
(use -v to see invocation)
note: I'm using the .xcworkspace file
You probably have React Native included in your project file, and also installed a CocoaPod which includes React Native as a dependency, so you have 2 copies of React Native. Delete one.

Resources