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

Unable to build with Carthage on Xcode 13.2++ #32

Closed
SSenocico opened this issue Feb 2, 2022 · 3 comments · Fixed by #34
Closed

Unable to build with Carthage on Xcode 13.2++ #32

SSenocico opened this issue Feb 2, 2022 · 3 comments · Fixed by #34

Comments

@SSenocico
Copy link

SSenocico commented Feb 2, 2022

Hi,
When run carthage update, receive:

*** Fetching BLECombineKit
*** Checking out BLECombineKit at "v0.1.7"
*** xcodebuild output can be found in /var/folders/70/r33z6h3x10n3bqxr45td4j080000gn/T/carthage-xcodebuild.4P67hs.log
*** Building scheme "BLECombineKit" in BLECombineKit.xcodeproj
Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -project /Users/x/Documents/Programming/ASSIST/NDSports/Carthage/Checkouts/BLECombineKit/BLECombineKit.xcodeproj -scheme BLECombineKit -configuration Release -derivedDataPath /Users/x/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/BLECombineKit/v0.1.7 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive VALIDATE_WORKSPACE=NO -archivePath /var/folders/70/r33z6h3x10n3bqxr45td4j080000gn/T/BLECombineKit SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/x/Documents/Programming/ASSIST/NDSports/Carthage/Checkouts/BLECombineKit)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/70/r33z6h3x10n3bqxr45td4j080000gn/T/carthage-xcodebuild.4P67hs.log

I was thinking that this was related to this Carthage issue:
Carthage/Carthage#3019
But not, is not related. The error is always the same.

Any help?

@Henryforce
Copy link
Owner

Henryforce commented Feb 11, 2022

Thanks for submitting the issue. I have been looking into it and the Carthage logs provide some insights:

The following build commands failed:
	CompileSwift normal armv7 (in target 'CombineExt' from project 'CombineExt')
	CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler (in target 'CombineExt' from project 'CombineExt')
	CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'CombineExt' from project 'CombineExt')

CombineExt is a dependency to this library and seems to be stable but somehow the build is not compiling on Carthage and only in SPM... This is one good point to start the research on why the build fails.
While we try to find a solution, I will be updating the project README to remove temporal Carthage support in order to avoid further confusion.
If you happen to have some extra time to help us investigate, that would be amazing as well.

@Henryforce
Copy link
Owner

@SSenocico Please try again with the latest version of BLECombineKit (0.1.9). The issue was the version of CombineExt 1.3.0, it had known issues with Xcode 13 but it was addressed in their 1.5.0 release. Thus, the fix was simply updating this library to support the updated version of CombineExt. Please see this release for further information on the issue.

@Henryforce Henryforce linked a pull request Feb 12, 2022 that will close this issue
@SSenocico
Copy link
Author

Thank you very much @Henryforce 🥳
It worked flawlessly.

For the user that may encounter Carthage compilation errors:

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.

2 participants