# Sugar Http Runtime Error with Xcode

**URL:** https://talk.remobjects.com/t/sugar-http-runtime-error-with-xcode/6283
**Category:** Elements RTL
**Created:** [June 1, 2015, 2:31pm UTC](https://talk.remobjects.com/t/sugar-http-runtime-error-with-xcode/6283 "2015-06-01T14:31:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Salman](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/s/f6c823/32.png) [@Salman](https://talk.remobjects.com/u/Salman)
#### Post date: [June 1, 2015, 2:31pm UTC](https://talk.remobjects.com/t/sugar-http-runtime-error-with-xcode/6283/1 "2015-06-01T14:31:03Z")

</div>

I’ve created a shared project for writing some Http abstraction using Sugar and exposed it as a iOS Class Library and Android Class Library in Fire. When I use the created jar files in Android Studio, the function using DownloadStringAsync from Sugar works as expected, but when I use it within Xcode, I get a runtime error as such

```
2015-06-01 18:27:26.384 test[1316:433656] +[Http URLWithString:]: unrecognized selector sent to class 0x1000f2b80
2015-06-01 18:27:26.385 test[1316:433656] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[Http URLWithString:]: unrecognized selector sent to class 0x1000f2b80'

```

The Xcode project and fire project are attached here. any ideas? @ck @mh

> **[Xcode Project.zip](https://www.dropbox.com/s/hn8k62uvm2ipbix/Xcode%20Project.zip?dl=0)**
>
> Shared with Dropbox

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [June 1, 2015, 3:46pm UTC](https://talk.remobjects.com/t/sugar-http-runtime-error-with-xcode/6283/2 "2015-06-01T15:46:59Z")

</div>

I don’t see the Fire project in that zip?

---

<div class="post-metadata">

### Author: ![Salman](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/s/f6c823/32.png) [@Salman](https://talk.remobjects.com/u/Salman)
#### Post date: [June 2, 2015, 5:05am UTC](https://talk.remobjects.com/t/sugar-http-runtime-error-with-xcode/6283/3 "2015-06-02T05:05:08Z")

</div>

@ck Here’s the fire and the Xcode project together

> **[Xcode + Fire iOS Static Lib Test.zip](https://www.dropbox.com/s/sgxegl1danvck9h/Xcode%20+%20Fire%20iOS%20Static%20Lib%20Test.zip?dl=0)**
>
> Shared with Dropbox

---

<div class="post-metadata">

### Author: ![Salman](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/s/f6c823/32.png) [@Salman](https://talk.remobjects.com/u/Salman)
#### Post date: [June 7, 2015, 10:10am UTC](https://talk.remobjects.com/t/sugar-http-runtime-error-with-xcode/6283/4 "2015-06-07T10:10:13Z")

</div>

@ck @mh any updates on this?

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [June 7, 2015, 12:28pm UTC](https://talk.remobjects.com/t/sugar-http-runtime-error-with-xcode/6283/5 "2015-06-07T12:28:16Z")

</div>

Your app runs fine for me, shows an amity view in the Sim and prints JSON output to the console.
