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

Not working for Mac OS X #14

Open
GJNilsen opened this issue Mar 6, 2014 · 7 comments
Open

Not working for Mac OS X #14

GJNilsen opened this issue Mar 6, 2014 · 7 comments

Comments

@GJNilsen
Copy link

GJNilsen commented Mar 6, 2014

When I try to build it for Mac OS X, Im getting the following error:
libUnirest.a:4:7: Source file is not valid UTF-8
The reason is the library was set up for iOS, so just changing the SDK from iOS to OS X did not work. Would be nice to have a version of this for Mac OS X as well.

@subnetmarco
Copy link
Member

@thibaultcha do you know a way to fix this?

@thibaultcha
Copy link
Member

You can't compile a project for both iOS and Mac OS. We would need a shared code base but two projects, one compiling for iOS (ARM) and one for Mac (Intel). I never did this yet but we can try.

@mikerhodes
Copy link

I think you might be fine setting up two build targets within a single project, rather than separate projects.

As a data point, and at least for the subset of code I'm using, I've been running unirest on OS X successfully in a test harness for a project. Unirest runs out the box using a tweak to the podspec and a very standard podfile.

@thibaultcha
Copy link
Member

I just set up a new target build to the project under Mac OS, works great. We also need to update the test suite to XCTest since OCUnit is deprecated.

@wikimo
Copy link

wikimo commented Apr 21, 2014

When i use it on OS X, i got the error message like this

TestApi  pod install
Analyzing dependencies
[!] The platform of the target `Pods` (OS X 10.9) is not compatible with `Unirest (1.1.3)` which has a minimum requirement of iOS 5.0.

can it only use on platform ios ? what's the matter,3Q...

@mikerhodes
Copy link

@wikimo Currently the pod is iOS only, as the error says, unless changes are made for this issue.

@subnetmarco
Copy link
Member

@thibaultcha updates on this?

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

5 participants