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

RxSwift 6.5.0 XCFramework breaks console po command #2397

Closed
5 of 17 tasks
pmanuelli opened this issue Feb 7, 2022 · 8 comments
Closed
5 of 17 tasks

RxSwift 6.5.0 XCFramework breaks console po command #2397

pmanuelli opened this issue Feb 7, 2022 · 8 comments

Comments

@pmanuelli
Copy link

pmanuelli commented Feb 7, 2022

Short description of the issue:

With RxSwift and RxCocoa 6.5.0 integrated using the precompiled XCFrameworks, the object debug command (po) on the Xcode console stops working.

When trying to print an object with the po command I get an error. This happens with any object that I try to debug on the console.

This happens with the XCFrameworks integrated manually on the project or using CocoaPods.

Expected outcome:

The object is printed on the console normally.

What actually happens:

An error is printed on the console:

po myObject

error: virtual filesystem overlay file '/Users/shaimishali/Library/Developer/Xcode/DerivedData/Rx-dxolnknlpjuxspdqvtqlinrlckhg/Build/Intermediates.noindex/ArchiveIntermediates/RxCocoa/IntermediateBuildFilesPath/Rx.build/Release-iphonesimulator/RxCocoa.build/all-product-headers.yaml' not found
error: virtual filesystem overlay file '/Users/shaimishali/Library/Developer/Xcode/DerivedData/Rx-dxolnknlpjuxspdqvtqlinrlckhg/Build/Intermediates.noindex/ArchiveIntermediates/RxCocoa/IntermediateBuildFilesPath/Rx.build/Release-iphonesimulator/RxCocoa.build/all-product-headers.yaml' not found

error: couldn't IRGen expression. Please check the above error messages for possible root causes.

The error complains about RxCocoa. But if I remove it and leave only RxSwift it now complains about RxSwift:

po myObject

error: virtual filesystem overlay file '/Users/shaimishali/Library/Developer/Xcode/DerivedData/Rx-dxolnknlpjuxspdqvtqlinrlckhg/Build/Intermediates.noindex/ArchiveIntermediates/RxSwift/IntermediateBuildFilesPath/Rx.build/Release-iphonesimulator/RxSwift.build/all-product-headers.yaml' not found
error: virtual filesystem overlay file '/Users/shaimishali/Library/Developer/Xcode/DerivedData/Rx-dxolnknlpjuxspdqvtqlinrlckhg/Build/Intermediates.noindex/ArchiveIntermediates/RxSwift/IntermediateBuildFilesPath/Rx.build/Release-iphonesimulator/RxSwift.build/all-product-headers.yaml' not found

error: couldn't IRGen expression. Please check the above error messages for possible root causes.

I see that the file's path contains what seems to be a local path /Users/shaimishali/Library/Developer/Xcode/DerivedData/

Self contained code example that reproduces the issue:

Demo project in:

https://github.com/pmanuelli/RxSwiftXCFrameworkCocoapodsExample

The repo contains two projects integrating RxSwift XCFrameworks using cocoapods. One of them has the xcframeworks locally. I recommend using that one.

RxSwift/RxCocoa/RxBlocking/RxTest version/commit

6.5.0 (with XCFramework)

Platform/Environment

  • iOS
  • macOS
  • tvOS
  • watchOS
  • playgrounds

How easy is to reproduce? (chances of successful reproduce after running the self contained code)

  • easy, 100% repro
  • sometimes, 10%-100%
  • hard, 2% - 10%
  • extremely hard, %0 - 2%

Xcode version:

13.2.1

Installation method:

  • CocoaPods
  • Carthage
  • Git submodules

It's integrated using custom podspecs files but I tried also integrating the frameworks manually.

I have multiple versions of Xcode installed:
(so we can know if this is a potential cause of your issue)

  • yes (which ones)
  • no

Level of RxSwift knowledge:
(this is so we can understand your level of knowledge
and formulate the response in an appropriate manner)

  • just starting
  • I have a small code base
  • I have a significant code base
@urbanusjam
Copy link

urbanusjam commented Feb 7, 2022

I ran into the same issue. Please submit a fix!

@ifiszer
Copy link

ifiszer commented Feb 7, 2022

I'm also facing this issue.

@rfigini
Copy link

rfigini commented Feb 7, 2022

I have this same issue.

@cravacuore
Copy link

Same issue here.

@freak4pc
Copy link
Member

freak4pc commented Feb 7, 2022

@pmanuelli
Copy link
Author

pmanuelli commented Feb 7, 2022

Thank you for the answer Shai.

Sadly, I get the same error.

error: virtual filesystem overlay file '/Users/shaimi/Library/Developer/Xcode/DerivedData/Rx-fnydthwmdxbkewbwclvzkrlxeqab/Build/Intermediates.noindex/ArchiveIntermediates/RxSwift/IntermediateBuildFilesPath/Rx.build/Release-iphonesimulator/RxSwift.build/all-product-headers.yaml' not found
error: virtual filesystem overlay file '/Users/shaimi/Library/Developer/Xcode/DerivedData/Rx-fnydthwmdxbkewbwclvzkrlxeqab/Build/Intermediates.noindex/ArchiveIntermediates/RxSwift/IntermediateBuildFilesPath/Rx.build/Release-iphonesimulator/RxSwift.build/all-product-headers.yaml' not found

error: couldn't IRGen expression. Please check the above error messages for possible root causes.

The derived data path is different. So I think that I'm indeed using the provided binaries.

@freak4pc
Copy link
Member

I'm not entirely sure there's much I can do. Seems like an issue with the compiler.
Care to open a bug with bugs.swift.org ?

@freak4pc
Copy link
Member

Closing this for the time being as there doesn't seem like there's anything I can do with it. If you think otherwise or find new information, feel free to comment here again. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants