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

Error building from Carthage "xcodebuild: error: Unable to read project 'RxOptional-SPM.xcodeproj' from folder" #91

Closed
landonr opened this issue Jan 20, 2021 · 5 comments · Fixed by #92

Comments

@landonr
Copy link

landonr commented Jan 20, 2021

When building RxOptional 5.0.0 using Carthage with Xcode 12.3 I get this error

A shell task (/usr/bin/xcrun xcodebuild -project /Users/landon/dev/app/Carthage/Checkouts/RxOptional/RxOptional-SPM.xcodeproj CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES -list) failed with exit code 74:
xcodebuild: error: Unable to read project 'RxOptional-SPM.xcodeproj' from folder '/Users/landon/dev/app/Carthage/Checkouts/RxOptional'.
Reason: Project /Users/landon/dev/app/Carthage/Checkouts/RxOptional/RxOptional-SPM.xcodeproj cannot be opened because it is missing its project.pbxproj file.

@freak4pc
Copy link
Member

Carthage doesn't seem to work well on Xcode 12. Did you check their repo? Plenty of issues about this their

@landonr
Copy link
Author

landonr commented Jan 21, 2021

Using this workaround I can build RxSwift 6.0.0 with Xcode 12.3 so I should be able to build RxOptional

If I delete RxOptional-SPM.xcodeproj before Carthage gets a chance to build RxOptional it will succeed. Why is Carthage trying to build RxOptional-SPM.xcodeproj

@freak4pc
Copy link
Member

I don't know, but again that seems like a question for Carhtage, and not this project

@landonr
Copy link
Author

landonr commented Jan 25, 2021

Carthage is going to look through every .xcodeproj in the repo for shared schemes to build. RxOptional-SPM.xcodeproj doesn't contain a project.pbxproj so Carthage fails when it opens that .xcodeproj

@rynecheow is it possible to include a proejct.pbxproj inside the RxOptional-SPM.xcodeproj?

@rynecheow
Copy link
Member

@landonr Let me check and remove shared scheme for that project - it should only be generated on CI only

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

Successfully merging a pull request may close this issue.

3 participants