promises icon indicating copy to clipboard operation
promises copied to clipboard

Version 2.4.0 not compiling

Open Nonouf opened this issue 11 months ago • 15 comments

The latest update 2.4.0 isn't compiling... There are plenty of errors Type 'DispatchQueue' has no member 'promises'.

It's very problematic as the Firebase SDK is dependant on Promises 2.1.0 to 2.9.9.

Nonouf avatar Feb 26 '24 09:02 Nonouf

+1, started failing for us when dependency resolution took version 2.4.0, without any code changes since prior release.

shreyash-sharechat avatar Feb 26 '24 15:02 shreyash-sharechat

+1, We tried to explicitly include the 2.3.1 version but due to other framework dependencies, it will also pick latest one and it leads to duplicate files.

KN-Pradeep avatar Feb 26 '24 15:02 KN-Pradeep

Are you able to share a repro project? I'm trying to reproduce the problem but haven't been able to yet.

chuckhays avatar Feb 26 '24 16:02 chuckhays

Since it is a private repo, I can give the scenario in which it is failing, This issue we are facing w.r.t 2 repositories.

  1. We added Firebase as SPM and wanted to update version to use Firestore.
  2. In other repo our CI ran successfully on same branch earlier and it is failing with below reasons `❌ /Users/builder/clone/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/promises/Sources/Promises/Promise+All.swift:26:30: type 'DispatchQueue' has no member 'promises'

on queue: DispatchQueue = .promises, ^

❌ /Users/builder/clone/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/promises/Sources/Promises/Promise+All.swift:41:30: type 'DispatchQueue' has no member 'promises'

on queue: DispatchQueue = .promises,`

KN-Pradeep avatar Feb 26 '24 18:02 KN-Pradeep

+1. Facing the same issue. 2.4.0 isn't compiling...

HarshitParakh avatar Feb 28 '24 06:02 HarshitParakh

What Swift version is being used? swift -v

ncooke3 avatar Feb 28 '24 15:02 ncooke3

What Swift version is being used? swift -v

XCode 15.2

Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0

shreyash-sharechat avatar Feb 28 '24 15:02 shreyash-sharechat

Also i'm facing a problem on the CI because it's downloading the latest version 2.4.0 it's failing with this error Error: Signing for "Promises_Promises" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'Promises_Promises' from project 'Promises')

building for iOS 16.2 and xcode 14.2

Eventhough a development team is selected and pipeline was working ok before signing and building the application and uploading it to appstore connect

elkhoudiry avatar Feb 29 '24 07:02 elkhoudiry

I just uploaded an example project here https://github.com/Nonouf/TestTuistFirebase You can simply open the workspace and compile to get the errors.

Nonouf avatar Feb 29 '24 08:02 Nonouf

+1. Facing the same issue. 2.4.0 isn't compiling...

Any update here ?

HarshitParakh avatar Mar 04 '24 05:03 HarshitParakh

Hey thanks for the reports. Is anyone experiencing this who isn't using Tuist? Or is this isolated to Tuist users?

ykjchen avatar Mar 05 '24 21:03 ykjchen

I am also having this issue, but I also use Tuist, too. @Nonouf Which version of tuist are you using? I am still on 3.41.0

JohnnyTseng avatar Mar 06 '24 09:03 JohnnyTseng

Hey thanks for the reports. Is anyone experiencing this who isn't using Tuist? Or is this isolated to Tuist users?

I am experiencing the same issue as @elkhoudiry on Bitrise CI with XCode 15.0.1 building for iOS 15, not using Tuist.

FWJulien avatar Mar 06 '24 09:03 FWJulien

Hey thanks for the reports. Is anyone experiencing this who isn't using Tuist? Or is this isolated to Tuist users?

It's happening with me on GitHub Actions CI

elkhoudiry avatar Mar 06 '24 09:03 elkhoudiry

Folks having issue with Tuist should try upgrade to Tuist 4 according to this: https://github.com/tuist/tuist/issues/6036#issuecomment-1980849357

JohnnyTseng avatar Mar 06 '24 16:03 JohnnyTseng