-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Bumping iOS deployment target to 11.0 (10.0 after discussion) #1318
Bumping iOS deployment target to 11.0 (10.0 after discussion) #1318
Conversation
7aa9dfb
to
8bcaf68
Compare
Seems we're missing some deployment targets? https://github.com/mxcl/PromiseKit/actions/runs/5182487581/jobs/9339327669?pr=1318#step:3:22 |
Oh, Here's the issue as I'm seeing it, as I didn't know about these subspecs being submodules. We have a lot of submodules from different libs/repos (e.g.: github "mxcl/PromiseKit" ~> 6.13.0 Maybe I'm seeing it wrong, but we would need a new version of
So we need 23 PRs 😬 Bu please, confirm if I'm getting this right. |
no that only effects Carthage. The CocoaPod is entirely defined by the We don't have the same problems with Carthage (which ofc backs up my original opinion that this is a CocoaPods issue that we are being forced to work around). |
Hi, apologies for the delay.
You're totally right, the dependencies of submodules/subspecs are being defined using Carthage, and it's a completely different subject. But I have found the issue of the failed
What needs to be done, AFAIK:
Does my explanation make sense? |
We can drop Alamofire and release PMK 7 (this existing PMK7 rewrite branch was never released and should probs be abandoned at this point). |
The fact that Alamofire doesn't support iOS 11 makes me wonder why we cannot do the same? I know they are 10 and we are 8, but if they don't go to 11 why must we? |
That may work too, using 10 as minimum, as they're saying here Alamofire/Alamofire#3716 (comment), so it may lint, with just a warning. Let me validate that it lints with 10 ⌛ That can be one option, but it still require PMKAlamofire to be updated to use the last major of Alamofire 5.7.0. But if you think we can drop PMKAlamofire subspec, we can go with the 7.0 branch. I'm just not sure what's in there, I'll have to check. |
Confirmed. iOS One little detail 😅 along with They depend on an old version that only supports iOS 8 and 5. Are they also candidates for deprecation with a major? |
eek, not sure what else to do. Basically, remove them and see if this passes (remove the PMK version change, our automation will handle that). If it passes I will merge and release a v7. |
Thanks for the feedback, Max 🙇 So, bumping iOS deployment target to pod lib lint --allow-warnings --fail-fast I'll update the MR to conform with that and let's see what CI tells us 😃 I'll just ask you and/or @RomanPodymov if the changes I did on the lint script are ok or not. If this goes forward, we can clean up the old 3 submodules later (I can handle that) |
8bcaf68
to
f66b0e4
Compare
…nd OMGHTTPURLRQ subspecs Also osx to 10.13, tvos to 10.0 and watchos to 4.0
f66b0e4
to
8b564f7
Compare
failed due to old images, running again. v8 because v7 was published and some people might depend on it. |
If you need any action from my side, please shout 🙏 I'm seeing that it's trying to use Xcode 11, maybe travis doesn't have that version anymore? Error: Could not find Xcode version that satisfied version spec: '^11' I can open a PR adapting the yml files if you see fit. |
Thanks for the help @mxcl and @RomanPodymov 🙏 |
Apologies for this being long overdue |
Now that subspec for Alamofire has been removed with version 8.0.0, can I still use PromiseKit and Alamofire with CocoaPods, or do I need to switch to SPM? |
Hi @oklimberg
As of v8, as the podspec doesn't have that subspec, no, you can't use Cocoapods if you need the Alamofire subspec.
I think we didn't discuss in detail the why, maybe we should, but I'll explain our reasoning below.
I was not aware of that 🤔 and you're right. But bear in mind that it's not 5.5.2 that fixes the issue with iOS 10/11 deployment target, it's just 5.7.1 But, my 2 cents on why I didn't do this:
The explanation is on this comment.
IMHO, post install hook solves the issue for a Nevertheless, the submodule is still there. |
Thank you very much for your time explaining the reasoning. |
Maybe Alamofire 5 doesn’t need any change.
Only PMKAlamofire to adopt the changes AF requires for that v5.7.1. But that version is still iOS 10, they decided to keep the 10, reverted from 11.
In terms of the changes, it’s a matter of bumping AF dependency on PMKAlamofire’s Cartfile and compile to replicate the issue I had.
…On 21 Jun 2023 at 18:17 +0100, mxcl/PromiseKit ***@***.***>, wrote:
PromiseKit 8 and Alamofire 5 in general
|
Bringing back the Alamofire subspec is welcome. PR should be pretty simple. We could not keep Alamofire and change the deployment targets so it had to be removed or upgraded. We wanted to give people a working PromiseKit release ASAP so we removed it. @oklimberg I can assist with the work if you need it. |
@oklimberg I can also assist on this if you need |
What changes
11.0
10.13
, tvos to11.0
and watchos to4.0
6.23.0
(confirm me if I should do it or not, I can revert if needed)Why do we need this PR
This PR fixes the issue reported on #1317, while using Xcode
14.3
to validate the podspec.Every pod that depends on
PromiseKit/CorePromise
will fail to lint due to what is being explained here #1308 (comment).TL;DR
Apple has stopped shipping libarclite_iphoneos.a separately 1
As #1311 only fixes the xcodeproj, this PR fixes the podspec.
Implications
With this change it means that consumers need a minimum deployment target of
11.0
, but this will enable future Xcode versions since14.3
.