Coder Social home page Coder Social logo

Comments (10)

tonyd256 avatar tonyd256 commented on May 23, 2024

@penland365 Hello, What version of Argo are you using? The global decode function might not be available in your version. If it is, you should be able to decode the json into the array like so:

let people: People? = decode(j)

The decode function takes the AnyObject and returns the decoded type/types, which, in this case, is People or [Person]. If that isn't working for you, would you mind posting more code around the issue so I can see what might be wrong?

from argo.

penland365 avatar penland365 commented on May 23, 2024

Hi @tonyd256 - I'm currently on Using Argo (0.4.3) according to my Podfile - what version do I need to be at?

from argo.

penland365 avatar penland365 commented on May 23, 2024

Hmm, this may be a cocoa pods issue, I'm not sure - decode.swift is in the project, but Swift swears by all the compiler gods that it cannot find it. decode is the only thing I haven't been able to find however.

from argo.

gfontenot avatar gfontenot commented on May 23, 2024

Can you share your podfile? ( Or at least the relevant line?)

On Apr 13, 2015, at 18:26, Jeffrey N. Davis [email protected] wrote:

Hmm, this may be a cocoa pods issue, I'm not sure - decode.swift is in the project, but Swift swears by all the compiler gods that it cannot find it. decode is the only thing I haven't been able to find however.


Reply to this email directly or view it on GitHub.

from argo.

penland365 avatar penland365 commented on May 23, 2024
platform :ios, '8.0'
use_frameworks!

target 'jonah' do
  pod 'Argo'
end

target 'jonahTests' do
  pod 'Argo'
end

I've excluded additional pods, but that's the meat of it. That could be wrong format - I'm a Scala guy dipping in to another world here. But I do have access ( and do use ) most if not all of the operators in both JSONOperators.swift and Operators.swift

Running pod install gives Using Argo 0.4.3 (was 0.4.3)

from argo.

penland365 avatar penland365 commented on May 23, 2024

A bit more information - I tried running off of master w/ the following:

platform :ios, '8.0'
use_frameworks!

target 'jonah' do
  pod 'Argo', :git => 'https://github.com/thoughtbot/Argo.git'
end

target 'jonahTests' do
  pod 'Argo', :git => 'https://github.com/thoughtbot/Argo.git'
end

In this case, I can see the decode.swift file:
screen shot 2015-04-13 at 8 00 38 pm

The compiler is still confused however and it can't see it. Running pod install gives the version here at 0.4.2

from argo.

penland365 avatar penland365 commented on May 23, 2024

To give a bit of an update, I can't compile w/ Swift 1.2 off of master, 0.4.2. I'm being told that no such module Box has been found in the file Decoded.swift

from argo.

gfontenot avatar gfontenot commented on May 23, 2024

You really shouldn't be pointed at master. We'd rather you point at a specific release.

The reason you aren't finding Box is because it hasn't been added to the Podfile

from argo.

penland365 avatar penland365 commented on May 23, 2024

RIP penland365, stung by a build tool.

from argo.

gfontenot avatar gfontenot commented on May 23, 2024

Hahaha. Glad that helped, sorry it took so long to get there.

from argo.

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.