skywinder / ActionSheetPicker-3.0

Quickly reproduce the dropdown UIPickerView / ActionSheet functionality on iOS.
http://skywinder.github.io/ActionSheetPicker-3.0
BSD 3-Clause "New" or "Revised" License
3.4k stars 740 forks source link

SPM: Cannot find type 'ActionSheetStringPicker' in scope #512

Closed rextremotabaresDtt closed 3 years ago

rextremotabaresDtt commented 4 years ago

I'm currently trying to migrate from Cocoapods to SPM but got this error Cannot find type 'ActionSheetStringPicker' in scope after adding SPM module. I've tried to import CoreActionSheetPicker but seems empty and apparently it cannot resolve its headers. How can you use SPM with ActionSheetPicker-3.0?

noorulain17 commented 4 years ago

I'll check on this weekend why in SPM all classes are not showing.

unwire-ios-team commented 4 years ago

It is probably because 'Pickers' folder is outside CoreActionSheetPicker folder, which is declared as root source folder for package.

noorulain17 commented 4 years ago

@unwire-ios-team yes you're right. Because the existing structure for CoreActionSheetPicker & Picker folders are not within the same folder. This needs a fix. I'll work on it tonight.

Tommecpe commented 3 years ago

@noorulain17 did you find a way to fix it ? I've got the same error.

noorulain17 commented 3 years ago

Hey @Tommecpe actually I got busy with the BN release, hence didn't get a chance to look into it yet.

noorulain17 commented 3 years ago

@Tommecpe / @rextremotabaresDtt / @unwire-ios-team https://github.com/skywinder/ActionSheetPicker-3.0/pull/517

ghost commented 3 years ago

This issue is observed in version '2.7.1'. Can anyone point out how to fix this?