SwiftPackageIndex / SwiftPackageIndex-Server

The Swift Package Index is the place to find Swift packages!
https://swiftpackageindex.com
Apache License 2.0
559 stars 47 forks source link

iOS build failing on package index but not local #1813

Closed kylebrowning closed 2 years ago

kylebrowning commented 2 years ago

Please describe the bug

On my package, APNSwift builds are failing for iOS. However I can locally successfully, build my project.

Explain the steps needed to reproduce the bug

  1. Build and run APNSwift Locally inside an iOS Project
  2. See build works.

What was the expected behaviour? Build is built correctly on Package Index Server

Additional context here's an example project - Fern.zip

finestructure commented 2 years ago

Hi Kyle, thanks for reporting this!

We're guessing the wrong scheme, which unfortunately can happen with iOS builds. I've opened a PR which should fix the issue, giving our build system the hint it needs.

kylebrowning commented 2 years ago

Thanks @finestructure I see your commit but no PR!

I'll update spi later today if I don't see a pr from ya. Thanks a bunch!

finestructure commented 2 years ago

Ah whoops, here you go! https://github.com/swift-server-community/APNSwift/pull/139

kylebrowning commented 2 years ago

@finestructure this doesn't seem to be resolved, or am I mistaken?

finestructure commented 2 years ago

I've given the build system a nudge and that fixed it. I think our recent change from Xcode 13.3 → 13.4.1 did the trick.

finestructure commented 2 years ago

Looks like this is now resolved!