Coder Social home page Coder Social logo

Comments (8)

wongzigii avatar wongzigii commented on June 10, 2024 1

https://github.com/CocoaPods/Specs/blob/master/Specs/b/e/4/SwiftyJSON/5.0.2/SwiftyJSON.podspec.json#L32 Updated
Can you guys confirm working now?

from swiftyjson.

rock88 avatar rock88 commented on June 10, 2024

Our team also faced this problem: the problem is in the podspec:
https://github.com/CocoaPods/Specs/blob/master/Specs/b/e/4/SwiftyJSON/5.0.2/SwiftyJSON.podspec.json#L32

"pod_target_xcconfig": {
    "EXCLUDED_ARCHS[sdk=iphonesimulator*]": "arm64"
},
"user_target_xcconfig": {
    "EXCLUDED_ARCHS[sdk=iphonesimulator*]": "arm64"
},

This means that the library will not compile on M1/X iOS Simulators, so we can't perform pod lib lint for our internal dependencies.
As a workaround, we have pinned the SwiftyJSON version to the previous stable release:

s.dependency 'SwiftyJSON', '5.0.1'

from swiftyjson.

Vyazovoy avatar Vyazovoy commented on June 10, 2024

@rock88, I've just posted similar info in #1154.
As a temporary workaround you can define the dependency as:

pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git', :tag => '5.0.2'

So that you will have the Apple Privacy Manifest and it will compile normally.

from swiftyjson.

rock88 avatar rock88 commented on June 10, 2024

@Vyazovoy yes, if you have Podfile you can use this approach. But our internal dependencies are hosted in separate repositories and we need to do pod lib lint and pod repo push to update/publish them.

So we can't use something like:

s.dependency 'SwiftyJSON', '~> 5.0.2' # Due to the podspec not compiling on Arm devices
s.dependency 'SwiftyJSON', '~> 5.0.1' # Due to the fact that the `pod lint lint` will use a new version of SwiftyJSON

So we can't use another version of SwiftyJSON in Podfile:

pod install

[!] CocoaPods could not find compatible versions for pod "SwiftyJSON":
  In Podfile:
    SwiftyJSON (from `https://github.com/SwiftyJSON/SwiftyJSON.git`, tag `5.0.2`)

    InternalLibrary (= 1.0.0) was resolved to 1.0.0, which depends on
      SwiftyJSON (= 5.0.1)

It's not a problem at the moment, I can wait for the podspec to be fixed.

from swiftyjson.

wongzigii avatar wongzigii commented on June 10, 2024

I've republished 5.0.2. No problem.

from swiftyjson.

Vyazovoy avatar Vyazovoy commented on June 10, 2024

Thank you, @wongzigii! Now it works as expected 🎉
BTW, #1154 can be closed now.

from swiftyjson.

wongzigii avatar wongzigii commented on June 10, 2024

@Shannon-Yang Can you confirm the latest 5.0.2 work as expect?

from swiftyjson.

Shannon-Yang avatar Shannon-Yang commented on June 10, 2024

@wongzigii Yes, version 5.0.2 works very well👍, thank you

from swiftyjson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.