-
Notifications
You must be signed in to change notification settings - Fork 71
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
Comments
@thibaultcha do you know a way to fix this? |
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. |
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. |
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. |
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... |
@wikimo Currently the pod is iOS only, as the error says, unless changes are made for this issue. |
@thibaultcha updates on this? |
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.
The text was updated successfully, but these errors were encountered: