Giter Club home page Giter Club logo

Comments (16)

acmacalister avatar acmacalister commented on June 29, 2024

I tried your steps above in an example project and it worked just fine for me in the simulator. Generally the error above is caused when clang can not resolve the symbols properly, meaning the library is not getting linked for some reason. Does your build phases look like this?

screen shot 2015-02-02 at 8 14 22 pm

from swifthttp.

mpclarkson avatar mpclarkson commented on June 29, 2024

I have just tried it again in a new project and I have the same error. My build phases screen looks the same as yours. What additional info can I give you?

from swifthttp.

acmacalister avatar acmacalister commented on June 29, 2024

Mmhh, If that is the same, then can you paste your code?

from swifthttp.

acmacalister avatar acmacalister commented on June 29, 2024

Or possibly zip the project up and throw it on dropbox, so I can download it and take a look?

from swifthttp.

mpclarkson avatar mpclarkson commented on June 29, 2024

Here we go - a clean project with just a basic GET request in viewDidLoad: https://www.dropbox.com/s/gmqdytinyxfbpos/SwiftHttpTest.zip?dl=0

from swifthttp.

mpclarkson avatar mpclarkson commented on June 29, 2024

PS I didn't do the "Copy Frameworks" steps as that didn't look like your screenshot

from swifthttp.

acmacalister avatar acmacalister commented on June 29, 2024

Ok, I got it building. A couple of things I noticed

  • you need to change the module name from SwiftHttp to SwiftHTTP.
  • The project you sent didn't have the SwiftHTTP project included, meaning no source to the build the framework. Is yours the same? Or rather is the SwiftHTTP.xcodeproj red in the project navigation? If so you need to make sure you drag it in there so our SwiftHTTPTests.xcodeproj knows where to find it.

Modified version below.

https://www.dropbox.com/s/vm0je8cxuamr7oi/SwiftHttpTest.zip?dl=0

from swifthttp.

mpclarkson avatar mpclarkson commented on June 29, 2024

Oh sorry, as soon as I changed it to SwiftHTTP it worked.

Any yes, the SwiftHTTP.xcodeproj is red. I dragged the file into the project. Do I need to do something else?

Sorry, to waste your time on such an obvious error. :(

from swifthttp.

acmacalister avatar acmacalister commented on June 29, 2024

Awesome. Glad to hear that got it working. That is a bit strange. Can you do a drown drop of the SwiftHTTP.xcodeproj and see the source files associated with it? If those are still there and the framework is being properly linked in, you should be good to go.

ah, no big deal. I'm just glad it was an easy fix. 😄

from swifthttp.

mpurusottamc avatar mpurusottamc commented on June 29, 2024

Hi,

I am a newbie to Swift and iOS. I tried all the above steps to add SwiftHTTP using rogue. But, i am still getting the error.

Any help would be much appreciated.

Thanks,
Puru

from swifthttp.

nawar avatar nawar commented on June 29, 2024

These are the easiest steps I was able to do :

  1. Go to your xcode's "Source Control" and select "Checkout"
  2. Once selected, checkout the repo
  3. Xcode will open the repo project window
  4. in the repo project window, Shift+Select all the files under the group
    "SwiftHTTP" and drag them into your project, making sure to select "Copy
    files if needed"
  5. Start using the library directly without explicitly importing it.

On Tue, Mar 3, 2015 at 8:21 PM, Purusottam [email protected] wrote:

Hi,

I am a newbie to Swift and iOS. I tried all the above steps to add
SwiftHTTP using rogue. But, i am still getting the above error.

Any help would be much appreciated.

Thanks,
Puru


Reply to this email directly or view it on GitHub
#52 (comment).

from swifthttp.

mpurusottamc avatar mpurusottamc commented on June 29, 2024

Thanks. Selecting "Copy files if needed" helped.

Now, i am able to run the app without any errors.

from swifthttp.

daltoniam avatar daltoniam commented on June 29, 2024

@nawar thanks!

from swifthttp.

isarwarfp avatar isarwarfp commented on June 29, 2024

Hi acmacalister,
I got the error you have mentioned above in picture.
https://cloud.githubusercontent.com/assets/1024755/6014422/6d6549b2-ab18-11e4-81e2-855603225953.png
I even do "Copy files if needed" but it won't help and still remain red and it took sometime 3 to 4 hours.
Thanks.

from swifthttp.

daltoniam avatar daltoniam commented on June 29, 2024

You need to add SwiftHTTP as a target dependency to ensure it gets built. Also make sure if you are deploying to a real device to do:

https://github.com/daltoniam/SwiftHTTP#add-copy-frameworks-phase

from swifthttp.

isarwarfp avatar isarwarfp commented on June 29, 2024

Thanks Dalton, but the problem is resolved with following steps;
1- R-Click on project
2- Click on "Add Files to '<project_name>...'"
3- Select swiftHTTP.xcodeproj
4- Remember to check two options "Destination: Copy item if needed" and in "Added folders:" select "create groups" radio button.
Otherwise you simply get the folder reference.
Seems would help as it solved my problem.

from swifthttp.

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.