AhmedNasserSh / SmoothPicker

MIT License
45 stars 8 forks source link

Compiling for iOS 9.0, but module 'SnapKit' has a minimum deployment target of iOS 10.0 #2

Closed SubZane closed 5 years ago

SubZane commented 5 years ago

I'm unable to build, and I cannot find where this error is really as my project settings are "Deployment target 12.0"

/.../Pods/SmoothPicker/SmoothPicker/Classes/SmoothPickerCollectionViewCell.swift:11:8:` Compiling for iOS 9.0, but module 'SnapKit' has a minimum deployment target of iOS 10.0: /.../Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Modules/SnapKit.swiftmodule/x86_64.swiftmodule

AhmedNasserSh commented 5 years ago

Try to change your deployment target to 10.0

SubZane commented 5 years ago

My deployment target is 12 and I have tried to change it to anything between 10-12. No difference 😕

sön 5 maj 2019 kl. 16:01 skrev Ahmed Nasser notifications@github.com:

Try to change your deployment target to 10

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AvaVaas/SmoothPicker/issues/2#issuecomment-489429321, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAWEDCUQNIX6FFLLTLG4MDPT3SERANCNFSM4HKR7S5A .

-- Med vänlig hälsning, Andreas Lee-Norman

AhmedNasserSh commented 5 years ago

ok I've updated the pod run pod update and clean&build the project

SubZane commented 5 years ago

awesome thanks! I'll try again this weekend :)

Andranjo97 commented 3 years ago

Just to people who may end up in the same case as me. The reason of this error was that I was using the beta channel. After switching to the stable channel, I ran

cd ios/
pod deintegrate
pod cache clean --all
cd ..
flutter clean

And, I removed the Podfile and the Podfile.lock. Then, I built the project again and it worked!