Flutter IOS error: error: no such module 'flutter_config' - ios

I'm having issue when trying to build my flutter project on code magic CI. I'm using Flutter 2.2.3(same issue also happens on 2.8) and Xcode version 12.4(same issue on 13.2)
/Users/builder/clone/ios/Runner/AppDelegate.swift:5:8: error: no such module 'flutter_config'
import flutter_config
^
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
/Users/builder/clone/ios/Runner/AppDelegate.swift:5:8: error: no such module 'flutter_config'
import flutter_config
^
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/builder/clone/ios/Pods/Pods.xcodeproj: warning: The iOS 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')
Encountered error while building for the device.
When launching the app locally I'm having another error:
ld: warning: Could not find or use auto-linked library 'swift_Concurrency'
ld: warning: Could not find or use auto-linked library 'swiftFileProvider'
ld: warning: Could not find or use auto-linked library 'swiftDataDetection'
ld: warning: Could not find or use auto-linked framework 'AVFAudio'
ld: warning: Could not find or use auto-linked framework 'DataDetection'
Undefined symbols for architecture arm64:
"__swift_FORCE_LOAD_$_swiftDataDetection", referenced from:
__swift_FORCE_LOAD_$_swiftDataDetection_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
(maybe you meant: __swift_FORCE_LOAD_$_swiftDataDetection_$_FBAudienceNetwork)
"_OBJC_CLASS_$_SKAdImpression", referenced from:
objc-class-ref in FBAudienceNetwork(FBAdSKAdNetworkManager.m.o)
"__swift_FORCE_LOAD_$_swiftFileProvider", referenced from:
__swift_FORCE_LOAD_$_swiftFileProvider_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
(maybe you meant: __swift_FORCE_LOAD_$_swiftFileProvider_$_FBAudienceNetwork)
ld: symbol(s) not found for architecture arm64
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: no rule to process file '/../flutter2/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0/ios/Classes/BuildDotenvConfig.rb' of type 'text.script.ruby' for architecture 'arm64' (in target 'flutter_config' from project 'Pods')
warning: no rule to process file '/../flutter2/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0/ios/Classes/BuildXCConfig.rb' of type 'text.script.ruby' for architecture 'arm64' (in target 'flutter_config' from project 'Pods')
warning: no rule to process file '/../flutter2/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0/ios/Classes/ReadDotEnv.rb' of type 'text.script.ruby' for architecture 'arm64' (in target 'flutter_config' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FMDB' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flutter' from project 'Pods')

In your ios/Podfile file, uncomment the platform line and give it a value of 11
# Uncomment this line to define a global platform for your project
platform :ios, '11.0'
Make sure to make the change in your Xcode as well
Then in your ios directory, run the following commands
rm -rf Pods/
rm -rf Podfile.lock
pod install

Related

Flutter does not build the project on real iOS device: PhaseScriptExecution

When I want to run my flutter application on the real iOS device, I get this error. I know, 2 weeks ago it worked nicely, but in this 2 weeks I developed lots of feature, and lastly permission handler future, and now I can not run the project on my real device. It's working on iOS simulator excellent.
So, let me tell you what I tried:
flutter pub cache repair
flutter clean
flutter run
pod install
pod install --repo-update
arch -x86_64 pod install
Also, in the Xcode, I tried to build the app. What I get from there?
error build: Command PhaseScriptExecution failed with a nonzero exit code
Launching lib/main.dart on Alper Efe iPhone’u in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: ***
Running pod install... 15.9s
Running Xcode build...
Xcode build done. 128.9s
Failed to build iOS app
Error output from Xcode build:
↳
2022-12-14 22:35:10.858 xcodebuild[27821:520269] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-21157/DTDeviceKitBase/DTDKRemoteDeviceData.m:382
Details: (null) deviceType from 00008030-001629E10185402E was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x149f17050>
Method: -platform
Thread: <NSThread: 0x139f05830>{number = 3, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/fp/t7xmc4k101g4g1p4nnr63skh0000gn/T/flutter_tools.suJrEq/flutter_ios_build_temp_dirIzfHDH/temporary_xcresult_bundle
1 warning generated.
1 warning generated.
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1461:38: warning: variable 'sum_left' may be uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~~
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1426:3: note: variable 'sum_left' is declared here
uint16x8_t sum_left;
^
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1461:48: warning: variable 'sum_top' may be uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1425:3: note: variable 'sum_top' is declared here
uint16x8_t sum_top;
^
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1550:38: warning: variable 'sum_left' may be uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~~
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1509:3: note: variable 'sum_left' is declared here
uint16x8_t sum_left;
^
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1550:48: warning: variable 'sum_top' may be uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1508:3: note: variable 'sum_top' is declared here
uint16x8_t sum_top;
^
4 warnings generated.
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/enc/backward_references_enc.c:725:12: warning: variable 'best_offset' may be uninitialized when used here [-Wconditional-uninitialized]
(best_offset << MAX_LENGTH_BITS) | (uint32_t)best_length;
^~~~~~~~~~~
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/enc/backward_references_enc.c:657:20: note: initialize the variable 'best_offset' to silence this warning
int best_offset;
^
= 0
1 warning generated.
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:39:52: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
internal protocol DKPhotoGalleryContentDataSource: class {
^~~~~
AnyObject
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:55:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
internal protocol DKPhotoGalleryContentDelegate: class {
^~~~~
AnyObject
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:39:52: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
internal protocol DKPhotoGalleryContentDataSource: class {
^~~~~
AnyObject
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:55:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
internal protocol DKPhotoGalleryContentDelegate: class {
^~~~~
AnyObject
/Users/sahinefe/.pub-cache/hosted/pub.dartlang.org/file_picker-4.6.1/ios/Classes/FilePickerPlugin.m:357:1: warning: implementing deprecated method [-Wdeprecated-implementations]
- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url{
^
In module 'UIKit' imported from /Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Target Support Files/file_picker/file_picker-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerViewController.h:27:1: note: method 'documentPicker:didPickDocumentAtURL:' declared here
- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url API_DEPRECATED_WITH_REPLACEMENT("documentPicker:didPickDocumentsAtURLs:", ios(8.0, 11.0));
^
1 warning generated.
/Users/sahinefe/.pub-cache/hosted/pub.dartlang.org/firebase_auth-4.2.0/ios/Classes/FLTFirebaseAuthPlugin.m:103:72: warning: sending 'FLTFirebaseAuthPlugin *__strong' to parameter of incompatible type 'id<FLTFirebasePlugin> _Nonnull'
[[FLTFirebasePluginRegistry sharedInstance] registerFirebasePlugin:self];
^~~~
In module 'firebase_core' imported from /Users/sahinefe/.pub-cache/hosted/pub.dartlang.org/firebase_auth-4.2.0/ios/Classes/FLTFirebaseAuthPlugin.m:7:
/Users/sahinefe/.pub-cache/hosted/pub.dartlang.org/firebase_core-2.4.0/ios/Classes/FLTFirebasePluginRegistry.h:23:64: note: passing argument to parameter 'firebasePlugin' here
- (void)registerFirebasePlugin:(id<FLTFirebasePlugin> _Nonnull)firebasePlugin;
^
1 warning generated.
1 warning generated.
Failed to package /Users/sahinefe/Documents/Github/flutter_production_app.
Command PhaseScriptExecution failed with a nonzero exit code
note: Building targets in dependency order
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'nanopb' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'libwebp' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'libPhoneNumber-iOS' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'leveldb-library' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'gRPC-Core' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'gRPC-Core' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'gRPC-C++' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'gRPC-C++' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'abseil' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'abseil' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'SwiftyGif' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'SDWebImage' from project 'Pods')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'ReachabilitySwift' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'PromisesObjC' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'Libuv-gRPC' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Libuv-gRPC' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'GoogleUtilities' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'GTMSessionFetcher' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'FirebaseCoreInternal' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'FirebaseCoreExtension' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'FirebaseCore' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'FirebaseAppCheckInterop' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'FMDB' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'DKPhotoGallery-DKPhotoGallery' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'DKPhotoGallery' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'DKImagePickerController-DKImagePickerController' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'DKImagePickerController' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'BoringSSL-GRPC' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'BoringSSL-GRPC' from project 'Pods')
Result bundle written to path:
/var/folders/fp/t7xmc4k101g4g1p4nnr63skh0000gn/T/flutter_tools.suJrEq/flutter_ios_build_temp_dirIzfHDH/temporary_xcresult_bundle
Could not build the precompiled application for the device.
It appears that your application still contains the default signing identifier.
Try replacing 'com.example' with your signing id in Xcode:
open ios/Runner.xcworkspace
Error launching application on Alper Efe iPhone’u.
First things first, to see more details of the problem I run the following code line:
flutter run -v
then I realize that I have problem that related to "codesign".
Next, I did lots of research about the problem, and I saw almost everywhere the "certificate" problem.
Especially this link helped me a lot: "Warning: unable to build chain to self-signed root for signer" warning in Xcode 9.2
Apart from that, I remove my certificates from the system and login sections, but when I remove from the login, it recreated again IDK why. Then, I disable auto sign in section in the Xcode, and again re-enable it. After I click the build button in Xcode it built the app successfully. Then I opened the vscode and it's also built as well.
By the way, lastly, I also did 9.3 to 11.0 compatibilityVersion property.

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

React Native: iOS archive build failed in Appcircle CI

iOS archive build generation is succeed when I generate from xcode but it fails in Appcircle.io with the following error. If I disable "use_flipper" from the PodFile, "pre_install" & "post_install" scripts are not running and build is failed in my xcode itself
** ARCHIVE FAILED **
The following build commands failed:
CompileC .../_appcircle_temp/appcircle_export_archive/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/MyProject/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Flipper-Folly.build/Objects-normal/armv7/VirtualEventBase.o .../_appcircle_temp/Repository/ios/Pods/Flipper-Folly/folly/io/async/VirtualEventBase.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target 'Flipper-Folly' from project 'Pods')
warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'armv7' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'armv7' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'armv7' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
##[error] 3/22/2021 3:24:36 AM EXCEPTION
##[error] ##[error] Process exit with error code: 1
##[error] 42gez13d.r50 Error at step: Xcodebuild for Devices
##[error] EXCEPTION: ##[error] Process exit with error code: 1

React-Native run-ios error w/Visual Studio Code

I am currently getting unwell because of the below error i get each time i try to run react-native created project. Sorry to paste all this here. I thought it would aid in diagnosing the problem easily. I will appreciate if am aided.
Error:
Ransfords-MacBook-Pro:NewsMedia ransford$ react-native run-ios
info Found Xcode workspace "NewsMedia.xcworkspace"
info Building (using "xcodebuild -workspace NewsMedia.xcworkspace -configuration Debug -scheme NewsMedia -destination id=F451841C-C075-4289-B03A-EDBE15B25EC3")
...............................................................................................................................................................
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening NewsMedia.xcworkspace. Run CLI with --verbose flag for more details.
Command line invocation:
/Users/ransford/Downloads/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild -workspace NewsMedia.xcworkspace -configuration Debug -scheme NewsMedia -destination id=F451841C-C075-4289-B03A-EDBE15B25EC3
...
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'OpenSSL-Universal' from project 'Pods')
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 14.0.99. (in target 'YogaKit' from project 'Pods')
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 14.0.99. (in target 'boost-for-react-native' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.4, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'Flipper-PeerTalk' from project 'Pods')
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 14.0.99. (in target 'CocoaLibEvent' from project 'Pods')
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 14.0.99. (in target 'Flipper' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 5.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'CocoaAsyncSocket' from project 'Pods')
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 14.0.99. (in target 'Flipper-DoubleConversion' from project 'Pods')
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 14.0.99. (in target 'Flipper-Glog' from project 'Pods')
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 14.0.99. (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Users/ransford/Documents/React Native Projects/NewsMedia/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Users/ransford/Documents/React Native Projects/NewsMedia/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Users/ransford/Documents/React Native Projects/NewsMedia/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
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 14.0.99. (in target 'Flipper-Folly' from project 'Pods')
** BUILD FAILED **
The following build commands failed:
CompileC /Users/ransford/Library/Developer/Xcode/DerivedData/NewsMedia-eoyvzektsxpbcbacskvnwykryelg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/vlog_is_on.o /Users/ransford/Documents/React\ Native\ Projects/NewsMedia/ios/Pods/glog/src/vlog_is_on.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/ransford/Library/Developer/Xcode/DerivedData/NewsMedia-eoyvzektsxpbcbacskvnwykryelg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/utilities.o /Users/ransford/Documents/React\ Native\ Projects/NewsMedia/ios/Pods/glog/src/utilities.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/ransford/Library/Developer/Xcode/DerivedData/NewsMedia-eoyvzektsxpbcbacskvnwykryelg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/symbolize.o /Users/ransford/Documents/React\ Native\ Projects/NewsMedia/ios/Pods/glog/src/symbolize.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/ransford/Library/Developer/Xcode/DerivedData/NewsMedia-eoyvzektsxpbcbacskvnwykryelg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/signalhandler.o /Users/ransford/Documents/React\ Native\ Projects/NewsMedia/ios/Pods/glog/src/signalhandler.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(4 failures)
Have you tried using this in your pod file?
post_install do |installer|
flipper_post_install(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end

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

Resources