Skip to content
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

CocoaPods not longer working (Master / v4.0.0) #4572

Closed
StefaniOSApps opened this issue Feb 2, 2021 · 13 comments
Closed

CocoaPods not longer working (Master / v4.0.0) #4572

StefaniOSApps opened this issue Feb 2, 2021 · 13 comments
Assignees

Comments

@StefaniOSApps
Copy link

What did you do?

Build current Master Branch with Cocoapods.

What did you expect to happen?

I can integrate this framework with cocoa pods. Like

  pod 'Charts',
    :git => 'https://github.com/danielgindi/Charts.git',
    :branch => 'master'

What happened instead?

"import Algorithms" not working - can find Algorithms framework

Charts Environment

*4.0.0/master/b8dba5930f293277d40ea4fb7b09af76a688ce44
**Xcode version: 12.4 **
**Swift version: 5.3 **
Platform(s) running Charts: iOS
macOS version running Xcode: 11.1

Reason

Frameworks were added in SPM, which were unfortunately forgotten in the PodSpec. Therefore, this framework will no longer work with CocoaPods

Workaround

  pod 'Charts',
    :git => 'https://github.com/danielgindi/Charts.git',
    :commit => '857db248f8eab9293e7845a53900ad109dc5cade'
@Agoer
Copy link

Agoer commented Mar 5, 2021

me too. wait for my hero.

@jstheoriginal
Copy link

For reference, it doesn't seem possible to use the Swift Algorithms library from Apple using CocoaPods, which is the blocker.

apple/swift-algorithms#74

@sinhpn92
Copy link

sinhpn92 commented May 16, 2021

So We still use v3.6.0 by cocoapods only?

@Karpot
Copy link

Karpot commented May 25, 2021

What about the 4.0.1?

I still got to warnings in XCode with: "Using 'class' keyword for protocol inheritance is deprecated; use 'AnyObject' instead".

@StefaniOSApps
Copy link
Author

@sinhpn92 See Workaround in main post

@StefaniOSApps
Copy link
Author

@Karpot the topic only applies to cocoapods. You are describing something else.

@417-72KI
Copy link
Contributor

417-72KI commented Sep 7, 2021

Carthage is also unavailable...

❌  path/to/file.swift:9:8: missing required module 'Algorithms'
import Charts
       ^

@romrell4
Copy link

Any updates on this? Can we use 4.0.0 through pods? I'm getting sick of SPM being flaky, and wanted to switch to pods, but it seems that SPM was using 4.0.x, but pods only has 3.6.0...

@liuxuan30
Copy link
Member

liuxuan30 commented Dec 23, 2021

hmm.. I think when I tried to update pod, pod didn't support SPM. not sure what's the state now?

@liuxuan30
Copy link
Member

liuxuan30 commented Dec 31, 2021

 -> Charts (4.0.1)
    - ERROR | [Charts/Core] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - NOTE  | [Charts/Core] xcodebuild:  note: Using new build system
    - NOTE  | [Charts/Core] xcodebuild:  note: Using codesigning identity override: -
    - NOTE  | [Charts/Core] xcodebuild:  note: Build preparation complete
    - NOTE  | [Charts/Core] xcodebuild:  note: Planning
    - NOTE  | [Charts/Core] xcodebuild:  note: Building targets in parallel
    - ERROR | [Charts/Core] xcodebuild:  Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift:12:8: error: no such module 'Algorithms'
    - NOTE  | [Charts/Core] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
    - NOTE  | [Charts/Core] xcodebuild:  note: Using codesigning identity override: 

[!] The spec did not pass validation, due to 2 errors.

@liuxuan30
Copy link
Member

it seems as the last day of 2021, pod still not suppot SPM.

So we have a hard decision to make, either drop the SPM dependency and not enjoy the efficiency from thew SDKs, or pod has to support this way of dependency.

I'm not a fan of pod but my current company invest heavily on pod, so I feel some work could only be done by pod, so I changed my view. however, this seems not possible to find a quick fix for this.

@jjatie sorry I'm long offline-ning. I probably will have a few time on this project every week or few weeks. I would hope to enjoy the new fancy tools ,but pod is still playing an important role. is it possibe to make pod support SPM/algorithm?

I will try search on pod team side or file one

@liuxuan30
Copy link
Member

I came across CocoaPods/CocoaPods#10049 not sure if this will be a workaround. But I have no time to look deeper.. anyone want the challenge?

@pmairoldi
Copy link
Collaborator

Version 4.0.2 now available on cocoapods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants