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 15 beta 6 pod repo push fails with deployment target too low #12033
Comments
This might be fixed by #11828 |
I don't think so, we are using Cocoapods 1.12.1 already |
There might be a dependency with a low deployment version. Workarounds are to update the dependency's or stay with Xcode 14.2 |
@paulb777 I think the deployment version of PodB should be resolved to 12.0 when I lint the spec of PodA, then the libarclite_*** will not be required by PodB.
|
We are facing exactly the same issue with Xcode 14.3.1 already, where the minimum was iOS 11.0+ (instead of iOS 12.0+ here in Xcode 15). But we are currently unable to update all our external dependencies, because they are one or all of them:
So we are currently thinking of the following workaround:
Would this work for now as temporary solution? |
Small update: Workaround: How to verify: |
Every year with the new Xcode version we need to workaround this very same issue. Would it be possible to fix it forever within Cocoapods? I believe it is reasonable to specify a deployment version in the Podspec and have that enforced during validation instead of relying on the versions of every single dependency, as long as we comply with their min version of course. Am I wrong on this? |
Fix iOS build (clang) error: CocoaPods/CocoaPods#12033
Fix iOS build (clang) error: CocoaPods/CocoaPods#12033
same issue |
I changed all the pod deployment target to 13.0 but when I run
This happens for all my pod targets. Can anyone help here? |
Hi everybody , anyone find solution for the problem ? |
Hi Everybody , Solution for me ; Clean CocoaPods
Update pods target version
|
It's not working for me @kayhanakbay . IO think the issue lies in the |
any update??? |
@nickx3389 before clean all CocoaPods cache i have same problem and without cleaning i updated min target version all dependencies but not working for me too. Also i have many dependencies which ones default min target is like 8.0 , 12.0 etc and i updated all of them and set min 13.0, right now for me it working. My app target is "platform :ios, '13.0'" and i make all dependency min target 13.0 |
Ôk |
Hello, any updates on this topic? |
Are there any updates? We can still not use Xcode 15 because we can't release our project, because
error.
in our
In that case the Xcode Sample Project all the Pods have their original Deployment Target which might be lower than 12.0 and therefor the build resp. the Forking Cocoapods and use a custom version with a "hotfix" as described in #12033 (comment) is not an option for me. Questions:
Any help is very much appreciated! |
I looks related to #11839 |
@stidch it stopped to work starting from Xcode 14.3 due to min iOS version |
We face a very similar hurdle within fastlane trying to upload our podspec with the pod_push action which runs Same issue as with the other devs here: setting the minimum deployment target is not respected. The only workaround is to manually copy the libarclite files into every Xcode version greater than 14.2. We used this article here: Xcode Project Build Error - missing files: libarclite_iphonesimulator.a and had to place all files in the arc folder. |
This worked for me, brilliant! Saved me some time |
Thank you, only thing that worked |
For me I was encountering this issue after updating to Xcode 15. 1. local build was failing with error "SDK does not contain 'libarclite' at the path ..." Solution: add this to your podfile post installer Note (you can use minimum of iOS 13 it depends on your project) post_install do |installer| installer.generated_projects.each do |project| project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' end end end end 2. fastlane pod_push was failing with error "SDK does not contain 'libarclite' at the path ..." Solution: In your FastFile when you call pod_push include those 2 parameters skip_import_validation: true, example:
|
@GroovyLLR regarding the "solution of 2." not really a solution if you ask me, but a not ideal workaround only, since you skip the validation, which is not recommended. |
Hello @stidch , Yes its not an ideal solution, but upon validation fastlane creates a new App.xcworkspace and imports the pods thereby by-passing the post installer in which we sets the IPHONEOS_DEPLOYMENT_TARGET to 13+, you end up with pods having minimum version less than that and the error happens. From my point of view if your app was build and tested through through previous lanes also considering the fact that it was also properly build without any errors on deploy lane then its ok the by pass validation on pod_push |
any update or solution? |
@dnkoutso same issue any update Xcode 15.2 Cocoapods 1.14.3? clang: error: SDK does not contain 'libarclite' at the path try increasing the minimum deployment target |
|
Updated minimum ios deployment target in validator and analyzer (#1) resolves CocoaPods#12033
Report
What did you do?
Run 'pod repo push'
What did you expect to happen?
Successful pod validation and push
What happened instead?
Xcodebuild returned an error:
CocoaPods Environment
In my .podspec I have defined:
s.platform = :ios, '14.0'
s.ios.deployment_target = '14.0'
The text was updated successfully, but these errors were encountered: