Magints / payfort

BSD 2-Clause "Simplified" License
0 stars 5 forks source link

payfort ios #11

Open syrakozz opened 2 years ago

syrakozz commented 2 years ago

we are getting

warning: [CP] Unable to find matching .xcframework slice in 'ios-arm64 ios-x86_64-simulator' for the current build architectures (arm64 x86_64). Command CompileSwiftSources failed with a nonzero exit code /Users/apple/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/ios/Classes/SwiftPayfortPlugin.swift:3:8: error: no such module 'PayFortSDK'

ItachiUchiha0 commented 2 years ago

Hello @syrakozz try the following command from project folder flutter clean && flutter pub get && cd ios && pod install thanks

syrakozz commented 2 years ago

just try it , i still getting , plz help , all my other pods are working perfectly except the payfort pods

ItachiUchiha0 commented 2 years ago

So please try the following Delete pods folder delete podspec.lock Enter flutter folder and delete flutter.podspec then run the previous command.

syrakozz commented 2 years ago

where i can find this plz >> Enter flutter folder and delete flutter.podspec

ItachiUchiha0 commented 2 years ago

In flutter folder inside ios directory .

syrakozz commented 2 years ago

i did it but im getting

1 warning generated. /Users/apple/.pub-cache/hosted/pub.dartlang.org/payfort_plugin-0.3.1/ios/Classes/SwiftPayfortPlugin.swift:3:8: error: no such module 'PayFortSDK' import PayFortSDK ^ Command CompileSwiftSources failed with a nonzero exit code note: Using new build system note: Planning note: Build preparation complete note: Building targets in parallel /Users/apple/Desktop/project/flutter/xx/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.0.99. (in target 'libPhoneNumber-iOS' from project 'Pods') /Users/apple/Desktop/project/flutter/xx/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.0.99. (in target 'Toast' from project 'Pods') /Users/apple/Desktop/project/flutter/xx/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.0.99. (in target 'FMDB' from project 'Pods')

ItachiUchiha0 commented 2 years ago

go to pod file and remove # before platform :ios, and set version to 12 also go to flutter folder from xcode and open AppFrameWork.info and set minimumosversion to 12 and run previous commands

syrakozz commented 2 years ago

done , im getting

CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'payfort_plugin' from project 'Pods') cd /Users/apple/Desktop/project/flutter/myapp/ios/Pods export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk No such module 'PayFortSDK'

Command CompileSwiftSources failed with a nonzero exit code

ItachiUchiha0 commented 2 years ago

So please try the following Delete pods folder delete podspec.lock Enter flutter folder and delete flutter.podspec then run the previous command.

try this again

syrakozz commented 2 years ago

i did im getting same No such module 'PayFortSDK'