Closed aakarsh-sasi closed 3 years ago
Hi @aakarsh-sasi,
Thank you for the very detailed issue report on this.
1) My question is why does Carthage build SmokeTestSPM.xcodeproj since its not a part of any SDK.
This this something I was looking into with @joesus, but we haven't figured it out yet. Also when we try to build it on our end we aren't able to re-produce the error so we are still not sure what is causing this.
2) Also, on changing the branch here from "HEAD" to "main", fixed the build issue. If this change is done it will be really helpful.
That's weird. I'm not sure why that would fix the issue. Since HEAD
and main
should refer to the same commit it shouldn't make a difference, but if that fixes it I think it should be ok to make that change on our end which we can make for the next release (scheduled for early October). cc @joesus.
Quick thoughts.
We've been working towards vending XCFrameworks starting in v12 so there should be no reason to build from source.
I'll work on deleting that job since it won't make much sense to keep once we're on v12.
In the meantime this is valid but also easy to work around by moving to Swift Package Manager or CocoaPods. If you must use Carthage then please try to use it with the option that lets you consume the prebuilt XCFrameworks attached to the release. See Carthage building from source was deprecated in v11.1.0 https://github.com/facebook/facebook-ios-sdk/blob/main/CHANGELOG.md#1110
Thanks!
Checklist before submitting a bug report
Xcode version
12.5.1
Swift version
5.4.2
Installation platform & version
Carthage
Package
Other / I don't know
Goals
Build framework successfully with carthage from source
Expected results
Run ./carthage.sh bootstrap --platform iOS --no-use-binaries and build from source
Actual results
Steps to reproduce
Cartfile github "facebook/facebook-ios-sdk" "v9.1.0"
Cartfile.resolved github "facebook/facebook-ios-sdk" "v9.1.0"
./carthage.sh bootstrap --platform iOS --no-use-binaries
Code samples & details