-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
xcodebuild timed out while trying to read SmoketestSPM.xcodeproj 😭 when update with Carthage #1251
Comments
Hi. Could you please provide the carthage command you ran along with the full output of the command? Thanks! |
carthage update --no-use-binaries --platform iOS |
Not able to reproduce. If you delete the Carthage checkout directory and the .resolved file and rerun the command are you able to reproduce? |
I'm facing the same issue. Delete Carthage repository does not solve the problem and Removes Cartfile.resolved isn't an option. |
@yoni89 what directory are you running the command from? Also, out of curiosity are you running any other tools that modify the directory structure or mess with xcode targets? Also why is removing Cartfile.resolved or at least the lines of Cartfile.resolved that reference the SDK not an option? |
Additionally, Building only facebook-ios-sdk from checkouts folder results in: carthage build --no-skip-current --platform iOS |
Removing facebook-ios-sdk from Carfile.resolved and run carthage update, result at same response. |
@joesus |
@yoni89 will investigate this more. Glad we were able to provide another channel! |
I have same issue. My temporarily resolution: Remove "facebook-ios-sdk" form Cartfile, and update completed. Then add back "facebook-ios-sdk" to Cartfile, Update it separately, finally done. |
As I was unable to reproduce I would advise trying @bennettyuan18's approach. If that does not work you may try using a different distribution channel such as SPM or Cocoapods. Also, based on the number of responses to this issue it seems like this is a local configuration issue. If you are able to reproduce this in a small sample app, attach that and we can look into reopening. Thanks! |
My resolution:
|
Thank your answer. It helps for me |
Thank you. It worked for me |
Does anyone know the root cause of this issue? It's really annoying to have to do this every time. |
Root cause is that Carthage build will greedy-search the repo for any Xcode project files / targets, this means it will pick up sample projects because they have project files with valid targets. You can avoid this by using Carthage's no-build flag which will pull prebuilt binaries from the latest release, or by avoiding Carthage entirely, using the XCFrameworks uploaded to the latest release, or Swift Package Manager, or CocoaPods. |
after a bit of research, this article from circle CI: the same applies to local repository, so I was able to work around this by running the following as part of my third party setup code:
|
It seems like this is sufficiently answered. Closing conversation. If there is a new or more specific issue around this please open a new issue with supporting details. Thanks! |
Hi,
Im using Carthage to update the library of facebook-ios-sdk, but it keeps showing me the same problem all the time.
In Cartfile add this:
github "facebook/facebook-ios-sdk"
problem:
"xcodebuild timed out while trying to read SmoketestSPM.xcodeproj 😭"
The text was updated successfully, but these errors were encountered: