Unable to build flutter IOS - ios

Swift Compiler Error (Xcode): Unknown type name 'CGSize'; did you mean 'Size'?
/Users/apple/Documents/development/octoflutter/build/ios/Release-iphoneos/XCFrameworkIntermediates/PayUIndia-AssetLibrary/PayUAssetLibraryKit.framework/Headers/PayUAssetLib
raryKit-Swift.h:267:22
Swift Compiler Error (Xcode): Could not build Objective-C module 'PayUAssetLibraryKit'
/Users/apple/Documents/development/octoflutter/build/ios/Release-iphoneos/XCFrameworkIntermediates/PayUIndia-AssetLibrary/PayUAssetLibraryKit.framework/Modules/PayUAssetLib
raryKit.swiftmodule/arm64-apple-ios.private.swiftinterface:6:18
Swift Compiler Error (Xcode): Failed to build module 'PayUAssetLibraryKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.2
(swiftlang-5.7.2.135.5 clang-1400.0.29.51)', while this compiler is 'Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)'). Please select a toolchain which
matches the SDK.
/Users/apple/Documents/development/octoflutter/build/ios/Release-iphoneos/XCFrameworkIntermediates/PayUIndia-CheckoutPro/PayUCheckoutProKit.framework/Modules/PayUCheckoutPr
oKit.swiftmodule/arm64-apple-ios.private.swiftinterface:6:7
Swift Compiler Error (Xcode): No such module '_StringProcessing'
/Users/apple/Documents/development/octoflutter/build/ios/Release-iphoneos/XCFrameworkIntermediates/PayUIndia-PayUParams/PayUParamsKit.framework/Modules/PayUParamsKit.swiftm
odule/arm64-apple-ios.private.swiftinterface:9:7
Swift Compiler Error (Xcode): Failed to build module 'PayUParamsKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.2
(swiftlang-5.7.2.135.5 clang-1400.0.29.51)', while this compiler is 'Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)'). Please select a toolchain which
matches the SDK.
/Users/apple/Documents/development/octoflutter/build/ios/Release-iphoneos/XCFrameworkIntermediates/PayUIndia-CheckoutProBase/PayUCheckoutProBaseKit.framework/Modules/PayUCh
eckoutProBaseKit.swiftmodule/arm64-apple-ios.private.swiftinterface:5:7
Swift Compiler Error (Xcode): Failed to build module 'PayUParamsKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.2
(swiftlang-5.7.2.135.5 clang-1400.0.29.51)', while this compiler is 'Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)'). Please select a toolchain which
matches the SDK.
/Users/apple/Documents/development/octoflutter/build/ios/Release-iphoneos/XCFrameworkIntermediates/PayUIndia-NativeOtpAssist/PayUNativeOtpAssist.framework/Modules/PayUNativ
eOtpAssist.swiftmodule/arm64-apple-ios.private.swiftinterface:10:7
Swift Compiler Error (Xcode): Failed to build module 'PayUParamsKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.2
(swiftlang-5.7.2.135.5 clang-1400.0.29.51)', while this compiler is 'Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)'). Please select a toolchain which
matches the SDK.
/Users/apple/Documents/development/octoflutter/build/ios/Release-iphoneos/XCFrameworkIntermediates/PayUIndia-UPICore/PayUUPICoreKit.framework/Modules/PayUUPICoreKit.swiftmo
dule/arm64-apple-ios.private.swiftinterface:10:7
Swift Compiler Error (Xcode): Failed to build module 'PayUCheckoutProKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.1
(swiftlang-5.7.1.135.3 clang-1400.0.29.51)', while this compiler is 'Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)'). Please select a toolchain which
matches the SDK.
/Users/apple/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/payumoney_pro_unofficial-0.0.9/ios/Classes/SwiftPayumoneyProUnofficialPlugin.swift:2:7
Encountered error while building for device.
Getting this issue while flutter build ios and also from xcode.

Related

How to get ride of ld: warning: object file was built for newer iOS version (12.0) than being linked (11.0)

Under delphi Alexandria, when I try to compile my ios app I receive this warning message from the linker :
ld: warning: object file
(.\Libraries\ios\facebook\FBSDKLoginKit.xcframework\ios-arm64/FBSDKLoginKit.framework/FBSDKLoginKit(AppEvents+Internal.o))
was built for newer iOS version (12.0) than being linked
(11.0)
How to get ride of this error message or how to say to the linker the we target iOS 12 instead of iOS 11 ?
I found, just add the -w to the linker option flag :)

Getting error on flutter project on creating build in Xcode ( iOS ) - error: unable to load standard library for target 'arm64-apple-ios10.0'

Hi I am getting this error on build iOS Xcode.
error: unable to load standard library for target 'arm64-apple-ios10.0'
Module compiled with Swift 5.5.2 cannot be imported by the Swift 5.6 compiler: /Users/macmini/StudioProjects/customer-app-flutter-2.10.2/ios/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64.swiftmodule

Trying to compile iOS device 64-bit in Delphi

I'm using Delphi 10.2 Update 3, with an iOS target of 11.3 and an iPad running iOS 10.3.3.
When I try to compile my project for a iOS device, this error occurs:
[DCC Error] E2597 ld: warning: directory not found for option '-FC:\Users\gustavo.reinert\Documents\Embarcadero\Studio\SDKs\iPhoneOS11.3.sdk\System\Library\PrivateFrameworks'
ld: warning: directory not found for option '-LC:\Users\Marcio.Amorim\Documents\Embarcadero\Studio\SDKs\MacOSX10.13.sdk\usr\lib\system'
ld: file not found: /usr/lib/system/libcache.dylib for architecture arm64
What can I do to fix this?
This is a Delphi bug when compiling against iOS 11.3 SDK.
RSP-20303: XCode 9.3 and iOS 11.3 linker error
You can use iOS 11.2 SDK instead.

Build iOS native code without -gmodules flag

I intentionally downgraded the clang version I'm compiling with in xcode to a special 3.6 version.
Now I've an error on a flag that was added on a later version of clang
clang-3.6: error: unknown argument: '-gmodules'
Which switch I should disable on Xcode to not add this flag on build ?

ld: library not found for -lPods lang: error: linker command failed with exit code 1

Getting the error While upgraded the code to xcode 8 and iOS sierra 10.12.1 and set deployment target to 8.0. Earlier it was working with xcode 7 and deployent target was 6.0. Can anybody face the same problem while upgrading to xcode 8

Resources