Comments (16)
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?
from swifthttp.
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.
Mmhh, If that is the same, then can you paste your code?
from swifthttp.
Or possibly zip the project up and throw it on dropbox, so I can download it and take a look?
from swifthttp.
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.
PS I didn't do the "Copy Frameworks" steps as that didn't look like your screenshot
from swifthttp.
Ok, I got it building. A couple of things I noticed
- you need to change the module name from
SwiftHttp
toSwiftHTTP
. - 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 ourSwiftHTTPTests.xcodeproj
knows where to find it.
Modified version below.
https://www.dropbox.com/s/vm0je8cxuamr7oi/SwiftHttpTest.zip?dl=0
from swifthttp.
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.
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.
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.
These are the easiest steps I was able to do :
- Go to your xcode's "Source Control" and select "Checkout"
- Once selected, checkout the repo
- Xcode will open the repo project window
- 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" - 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.
Thanks. Selecting "Copy files if needed" helped.
Now, i am able to run the app without any errors.
from swifthttp.
@nawar thanks!
from swifthttp.
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.
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.
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)
- Count is unavailable: there is no universally good answer, see the documentation comment for discussion HOT 5
- HTTP.POST() not working after screen-lock (iOS 9.3.5)
- How to handler download progress?
- 'count' is unavailable: there is no universally good answer, see the documentation comment for discussion
- failed in xcode9.3
- Pinning Trusted certs or keys HOT 2
- POST method parameters lost in traffic
- Parameters not converted properly when using arrays HOT 2
- Cannot upload file
- Progress closure seems broken
- Post objects array to server
- Ambiguous use of 'init(urlString:parameters:headers:cachePolicy:timeoutInterval:)'
- Retry a task?
- Why OperationQueue support has been removed?
- SSL Pinning - Code=-999 "cancelled" HOT 1
- Linux support ?
- Timeout
- 'taskMap' Dictionary related crashes in Operation.swift file HOT 3
- Cannot consume as Swift package
- SSL Pinning - Always failing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swifthttp.