-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Xcode 11 project with swift package dependency can not be built #15454
Comments
@regetskcob Yep, Always get error when using xcode 11 image |
@oleksandr-dziuban this error is not the as @regetskcob described. It's about SwiftPM. Fastlane is trying to get the configurations with timeout, but SwiftPM still resolving the dependencies. There is a new parameter for |
@bguidolim Ok, thanks for clarification, just added link to my issue here, because my issue is not reviewed yet during a long period... so, it is big blocker for our project... cannot resolve it myself... |
@bguidolim sounds like a valid solution. Hope there's someone abled to add this as a PR and it's released soon. |
Hi @regetskcob 👋 I've made a change to fix this problem, it worked for me. Here is the entry for the Gemfile: Thanks |
@bguidolim thanks for addressing the issue and submitting a PR. I'm attempting to use it right now. Shouldn't we be able to just pass |
@bguidolim I'm reluctant to use the experimental version in our production system. I can test it as soon as it's included in a future version of fastlane. :-) |
@bdrelling not sure if it works because -showBuildSettings is called before everything else. I’ll try this when I have my mac with me. |
@bdrelling using |
Hello @bguidolim , I'm experiencing issues with archiving the project with Swift packages.
Literally for every package I have in the app. Below is my lane script:
Could you, please, suggest what could be the reason. |
Nailed it down, finally. It appears, that it's required to add And another issue which I experienced: archive step was finishing with success, but export part was failing with error:
It appeared, that the reason is I was using custom build configuration, while SPM doesn't work with them gracefully yet. It's a known issue. So you must use NOTE: I'm using official version of fastlane, not the one from @bguidolim's repository. The original problem of issue was resolved by running |
@OlexandrStepanov I had to wrap it around |
Is there any update for this? |
I'm getting
I think this can be resolved by updating the used xcodeproj version. |
This fixed it for me #15728 |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Friendly reminder: contributions are always welcome! Check out CONTRIBUTING.md for more information on how to help with |
@hannesoid I also confirm that from v2.138 this is fixed. |
Hey, I am having a similar issue. I had to increase the initial timeout. ( There could be an alternative solution to change xcodebuild -resolvePackageDependencies before running: xcodebuild -showBuildSettings -workspace SocialBase.xcworkspace -scheme SocialBase-Staging |
I'm having this problem too, and I've tried the workarounds I've found in these threads with no luck so far. Is there a solution to this problem, preferably with a definitive working chunk of code for the I did make sure I'm up to the latest version of Fastlane. |
Well, this is weird. The problem was persisting with the lastest (2.140.0) version of Fastlane, but as soon as I introduced @bguidolim 's forked branch, it resolved. What gives?? |
The pull request #15505 that closed this issue was merged and released as part of fastlane 2.141.0 🚀 |
New Issue Checklist
Issue Description
We added a swift package dependency to our Xcode 11 project. Since then the project can not be built anymore. before adding the swift package Xcode 11 built without errors.
Do we have to pass the credentials to reach the swift packages repository?
Command executed
xcodebuild -showBuildSettings -scheme AdHoc -project ./WinWorker.xcodeproj -configuration Release
Complete output when running fastlane, including the stack trace and command used
Environment
✅ fastlane environment ✅
Stack
System Locale
fastlane files:
No Fastfile found
No Appfile found
fastlane gems
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
generated on: 2019-10-08
The text was updated successfully, but these errors were encountered: