CHIPageControl icon indicating copy to clipboard operation
CHIPageControl copied to clipboard

SPM Support Not Working

Open robin-on-git opened this issue 3 years ago • 6 comments

The package has been updated recently with SPM support (#79 and #78), but I get errors with it.

I am on Xcode 13.0, using the built in Swift Package Manager, and specify the master branch in rules when adding the package.

When I import the module in my code, I receive the error "No such module 'CHIPageControl'"

Additionally, I receive a warning which might be related

found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target /Users/******/Library/Developer/Xcode/DerivedData/*****-aheljstdlofofhcbswicoezhhaqd/SourcePackages/checkouts/CHIPageControl/CHIPageControl/Info.plist

robin-on-git avatar Feb 11 '22 10:02 robin-on-git

I solved my problem by using this PR instead of the official master branch when adding the SPM package https://github.com/ChiliLabs/CHIPageControl/pull/59

robin-on-git avatar Feb 11 '22 12:02 robin-on-git

Hi @Cydie , Could you try now, please? I have published a new release.

chili-ios avatar Feb 11 '22 14:02 chili-ios

Still won't working with v0.2.1 … 😞

BigDada1 avatar Feb 11 '22 20:02 BigDada1

Hi @chili-ios , other libraries fixed the warning by explicitly excluding the resource file. Could You try it, please?

BigDada1 avatar Feb 23 '22 07:02 BigDada1

Could you please try it with this PR https://github.com/ChiliLabs/CHIPageControl/pull/81

Because it's working as expected for me and I'm using Xcode13.1

I've also fixed this warning 👇 that you mentioned.

found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target /Users/******/Library/Developer/Xcode/DerivedData/*****-aheljstdlofofhcbswicoezhhaqd/SourcePackages/checkouts/CHIPageControl/CHIPageControl/Info.plist

Also, this is a warning, not an error. It's resolved now with the PR https://github.com/ChiliLabs/CHIPageControl/pull/81 @Cydie @BigDada1

SerhanAksut avatar Jun 24 '22 16:06 SerhanAksut

PR #81 is merged. Guys, please check if everything is working properly now.

chili-ios avatar Jun 28 '22 08:06 chili-ios

Works like a charme 🙌🏻 … sry for the late response

BigDada1 avatar Nov 07 '22 09:11 BigDada1