Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Build failed in Xcode 13 / iOS 15 Beta #51

Closed
skegget opened this issue Aug 30, 2021 · 6 comments
Closed

Build failed in Xcode 13 / iOS 15 Beta #51

skegget opened this issue Aug 30, 2021 · 6 comments

Comments

@skegget
Copy link

skegget commented Aug 30, 2021

I'm using Xcode 13 (Beta 5) and iOS 15 Beta and have just started using this package. However, as soon as I include the package in my project I'm getting "Build Failed" and a couple of warnings.

In total I get 10 swift compiler errors related to CollectionViewPagingLayout and two warnings, see attached print screen.

Any ideas?

Thanks!

Build Error

@amirdew
Copy link
Owner

amirdew commented Sep 5, 2021

I just tried it with Xcode Version 13.0 beta 5 (13A5212g)
Works fine! I tried it with SPM
SampleProject.zip

@CristianMoisei
Copy link

CristianMoisei commented Sep 23, 2021

This used to work in the betas but it doesn't work with the RC or the version from the App Store. I'm getting the same errors. One important thing to clarify is that this happens when archiving, but not when building.

I have another project that is using v0.4.1 and that one archives fine. The one that is giving the errors is using v1.0.2
I haven't tested to check what the latest working version is but this could be an interim solution for anyone who needs it.

Screenshot 2021-09-23 at 10 21 11

@Sookie7
Copy link

Sookie7 commented Sep 23, 2021

This used to work in the betas but it doesn't work with the RC or the version from the App Store. I'm getting the same errors. One important thing to clarify is that this happens when archiving, but not when building.

I have another project that is using v0.4.1 and that one archives fine. The one that is giving the errors is using v1.0.2
I haven't tested to check what the latest working version is but this could be an interim solution for anyone who needs it.

Screenshot 2021-09-23 at 10 21 11

same issue, but I can't install v0.4.1

@CristianMoisei
Copy link

CristianMoisei commented Sep 23, 2021

@Sookie7 have you tried setting it to exact version 0.4.1? Then you can File > Packages > Resolve Package Versions

Also to clarify, 0.4.1 is the latest version that works since the next version (1.0.0) is the one that introduces support for SwiftUI. Something that was changed there seems to be causing this issue.

Screenshot 2021-09-23 at 23 52 19

@LeeTwelve
Copy link

@CristianMoisei this is a true way but not for me. I use invalidateLayoutInBatchUpdate() and 0.4.1 doesn't have this method.

@amirdew
Copy link
Owner

amirdew commented Sep 27, 2021

Explained here #54
Use xcode13-no-swiftui branch as a workaround

@amirdew amirdew closed this as completed Sep 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants