Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tuist cache failed for Firebase SDK 10.24.0 #6249

Closed
kapitoshka438 opened this issue May 3, 2024 · 3 comments
Closed

tuist cache failed for Firebase SDK 10.24.0 #6249

kapitoshka438 opened this issue May 3, 2024 · 3 comments
Labels
type:bug Something isn't working

Comments

@kapitoshka438
Copy link
Contributor

What happened?

After upgrading Tuist to 4.11.0 caching Firebase SDK stopped working.
It works fine with Tuist 4.9.0.

How do we reproduce it?

Add Firebase SDK 10.24.0 as a dependency in Tuist/Package.swift.
Add these to the Target dependencies:

.external(name: "FirebaseAnalyticsSwift"),
.external(name: "FirebaseCrashlytics"),
.external(name: "FirebaseMessaging"),
.external(name: "FirebaseRemoteConfigSwift"),

Error log

Mac OS 13.6.1, Xcode 15.2, Tuist 4.11.0

Build Succeeded
Creating XCFrameworks
Creating XCFramework for GoogleDataTransport
[x] error: cannot compute path of binary 'Path(str: "/private/var/folders/bn/w8flw_m92r3gty0pdt7kqly40000gq/T/TemporaryDirectory.bE5zeP/artifacts/iOS/device/GoogleDataTransport.framework/GoogleDataTransport")' relative to that of '/var/folders/bn/w8flw_m92r3gty0pdt7kqly40000gq/T/TemporaryDirectory.bE5zeP/artifacts/iOS/device/GoogleDataTransport.framework'
The 'xcodebuild' command exited with error code 70 and message:
error: cannot compute path of binary 'Path(str: "/private/var/folders/bn/w8flw_m92r3gty0pdt7kqly40000gq/T/TemporaryDirectory.bE5zeP/artifacts/iOS/device/GoogleDataTransport.framework/GoogleDataTransport")' relative to that of '/var/folders/bn/w8flw_m92r3gty0pdt7kqly40000gq/T/TemporaryDirectory.bE5zeP/artifacts/iOS/device/GoogleDataTransport.framework'
Consider creating an issue using the following link: https://github.com/tuist/tuist/issues/new/choose

Mac OS 13.6.6, Xcode 15.2, Tuist 4.11.0

Build Succeeded
Creating XCFrameworks
Creating XCFramework for GoogleUtilities-AppDelegateSwizzler
[x] error: cannot compute path of binary 'Path(str: "/private/var/folders/yx/8j8fh09j2nbbyz1gslv1m88m0000gp/T/TemporaryDirectory.FVbQvI/artifacts/iOS/simulator/GoogleUtilities_AppDelegateSwizzler.framework/GoogleUtilities_AppDelegateSwizzler")' relative to that of '/var/folders/yx/8j8fh09j2nbbyz1gslv1m88m0000gp/T/TemporaryDirectory.FVbQvI/artifacts/iOS/simulator/GoogleUtilities_AppDelegateSwizzler.framework'
The 'xcodebuild' command exited with error code 70 and message:
error: cannot compute path of binary 'Path(str: "/private/var/folders/yx/8j8fh09j2nbbyz1gslv1m88m0000gp/T/TemporaryDirectory.FVbQvI/artifacts/iOS/simulator/GoogleUtilities_AppDelegateSwizzler.framework/GoogleUtilities_AppDelegateSwizzler")' relative to that of '/var/folders/yx/8j8fh09j2nbbyz1gslv1m88m0000gp/T/TemporaryDirectory.FVbQvI/artifacts/iOS/simulator/GoogleUtilities_AppDelegateSwizzler.framework'
Consider creating an issue using the following link: https://github.com/tuist/tuist/issues/new/choose

macOS version

13.6.1, 13.6.6

Tuist version

4.11.0

Xcode version

15.2

@kapitoshka438 kapitoshka438 added the type:bug Something isn't working label May 3, 2024
@kapitoshka438
Copy link
Contributor Author

Seems like this is not related to Firebase. Below is the crash log for Tuist 4.11.0 + Xcode 15.2. It's just failing on the first dependency to create an xcframework:

Build Succeeded
Creating XCFrameworks
Creating XCFramework for AppMetricaEncodingUtils
❌ error: cannot compute path of binary 'Path(str: "/private/var/folders/7s/1pbc1g_17pd13t4dpvmjh7wr0000gp/T/TemporaryDirectory.7oIkE9/artifacts/iOS/device/AppMetricaEncodingUtils.framework/AppMetricaEncodingUtils")' relative to that of '/var/folders/7s/1pbc1g_17pd13t4dpvmjh7wr0000gp/T/TemporaryDirectory.7oIkE9/artifacts/iOS/device/AppMetricaEncodingUtils.framework'

Tuist 4.9.0 + Xcode 15.2 works fine, as well as Tuist 4.11.0 + Xcode 15.3

@pepicrft
Copy link
Contributor

pepicrft commented May 8, 2024

It's a bug in Xcode 15.2 when the paths contain symlinks. If you can't update to Xcode 15.3, we'll be rolling out a fix in the next version of Tuist.

@kapitoshka438
Copy link
Contributor Author

Fixed in 4.13.0 thank you @pepicrft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants