Problem building to IOS with Flutter in Android Studio - ios

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')

Related

Unable to set up razorpay payment gateway for ios flutter

I have successfully implemented razorpay plugin for android. But I couldn’t find a way to run on iOS simulator throwing the error.
Failed to build iOS app
Error output from Xcode build:
↳
objc[46285]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x212eb7130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10679c2c8). One of the two will be used. Which one is undefined.
objc[46285]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x212eb7180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10679c318). One of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/q1/bn7h2y0j58ngn7rb80fr1yhh0000gn/T/flutter_tools.u4wUAC/flutter_ios_build_temp_dirOLb14O/temporary_xcresult_bundle
Command CompileSwiftSources failed with a nonzero exit code
Command CompileSwiftSources failed with a nonzero exit code
ld: warning: all bitcode will be dropped because '/Users/devytpl/Downloads/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter' was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.
Command CompileSwiftSources failed with a nonzero exit code
ld: warning: all bitcode will be dropped because '/Users/devytpl/Downloads/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter' was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.
/Users/devytpl/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/razorpay_flutter-1.3.2/ios/Classes/RazorpayDelegate.swift:2:8: error: module 'Razorpay' was created for incompatible target arm64-apple-ios10.0: /Users/devytpl/Dev/Applications/ios/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64.swiftmodule
import Razorpay
^
/Users/devytpl/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/razorpay_flutter-1.3.2/ios/Classes/RazorpayDelegate.swift:2:8: error: module 'Razorpay' was created for incompatible target arm64-apple-ios10.0: /Users/devytpl/Dev/Applications/ios/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64.swiftmodule
import Razorpay
^
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/devytpl/Dev/Applications/ios/Pods/Pods.xcodeproj: 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 'Toast' from project 'Pods')
/Users/devytpl/Dev/Applications/ios/Pods/Pods.xcodeproj: 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 'ReachabilitySwift' from project 'Pods')
Result bundle written to path:
/var/folders/q1/bn7h2y0j58ngn7rb80fr1yhh0000gn/T/flutter_tools.u4wUAC/flutter_ios_build_temp_dirOLb14O/temporary_xcresult_bundle
Uncategorized (Xcode): Command CompileSwiftSources failed with a nonzero exit code
Swift Compiler Error (Xcode): Module 'Razorpay' was created for incompatible target arm64-apple-ios10.0: /Users/devytpl/Dev/Applications/ios/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64.swiftmodule
/Users/devytpl/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/razorpay_flutter-1.3.2/ios/Classes/RazorpayDelegate.swift:1:7
Could not build the application for the simulator.
Error launching application on iPhone 13.
Flutter Version: 3.0.5
Target Platform: 10.0

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

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

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.

ld: can't link with a main executable file for architecture i386 error

I want to add unit test target to my Xcode project which consist of lots of sub-projects. I'm adding test target to my main project. After I add it, I can't build it from test target (I can successfully build app target, just can't build test target).
Some settings are not default;
Build Active Architecture Only -> Yes (On my main target)
Test Target iOS Deployment Target -> 10.3
I'm getting below error
ld: can't link with a main executable file '/Users/emreonder/Library/Developer/Xcode/DerivedData/MyAppWorkspace-gdwblguzoliffpbypfnfrxayzvpe/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation
Linker command failed with exit code 1 (use -v to see invocation)
I'm using Xcode 11.

Xcode 8: linker command failed with exit code 1 (use -v to see invocation)

I am developing a hybrid application on Worklight. After upgrade from Xcode 7.3.1. to Xcode 8, I started getting the following error messages when tried to generate the XCarchive or Build and run the App on the Simulator.
MobileFirst Platform 6.3.0
Configurations used:
Architectures: Standard architectures (armv7, arm64) - $(ARCHS_STANDARD)
Valid Architectures: armv7, armv7s, arm64
Error Log from Xcode:
ld: warning: directory not found for option '-L"/Users/hjimenez/Documents/eclipseKepler - Build 3.1.0/ITS/apps/ITS/iphone/native/WorklightSDK"'
ld: warning: directory not found for option '-L"/Users/hjimenez/Documents/eclipseKepler - Build 3.1.0/ITS/apps/ITS/iphone/native/Tealeaf"'
ld: library not found for -lWorklightStaticLibProject
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I fixed the issue adding the following Resources into "Build Phases" tab:
UIKit.Framework
libstdc++.6.tbd
Also is probable that you need to remove the following resources from "Build Phases" tab, (but first try the fix above):
libc++.dylib
libstdc++.dylib

Resources