I am trying to install Mastercard gateway iOS SDK using Carthage.
Success caseI created a new project using Xcode 14.2 and my command line tool is also set to 14.2 then I install the SDK using terminalcarthage update --use-xcframeworksit works fine by creatingCarthage/Buildfolder. All goodFailureWhen I try the same using Xcode 14.3 or higher (Also setting command line tool to 14.3 or higher) thencarthage update --use-xcframeworksfails and give me path of log file. This log file mentions 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.4.99. (in target 'MPGSDK-iOS' from project 'MPGSDK')
I know how to fix this problem for CocoaPods by setting SDKs targets to higher version either in pod file or Xcode. But I need this solution for Carthage.
Finally I figured it out with following steps:
Download the code from MPGSDK GitHub. Open terminal, 'cd' to inside this project folder. Run following commands to create frameworks on Desktop for Simulator and device and then combine them. (Before running command, open project with Xcode and set minimum target and other settings if needed)
Set this last parameter
BUILD_LIBRARY_FOR_DISTRIBUTION=YESor both in the project settings as well. (Target and project both)