# Using frameworks

**URL:** https://talk.remobjects.com/t/using-frameworks/15430
**Category:** Elements
**Tags:** fire
**Created:** [February 6, 2018, 1:09pm UTC](https://talk.remobjects.com/t/using-frameworks/15430 "2018-02-06T13:09:46Z")
**Posts on this page:** 18
**Page:** 2

<div class="post-metadata">

### Author: ![jeremy](https://talk.remobjects.com/user_avatar/talk.remobjects.com/jeremy/32/10_2.png) [@jeremy](https://talk.remobjects.com/u/jeremy)
#### Post date: [February 13, 2018, 6:57pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/21 "2018-02-13T18:57:28Z")

</div>

Can you grab it from the first link in my original post?

---

<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: [February 13, 2018, 8:05pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/22 "2018-02-13T20:05:03Z")

</div>

ah, missed that. thanx!

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [February 13, 2018, 8:05pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/23 "2018-02-13T20:05:20Z")

</div>

Thanks, logged as bugs://79565

---

<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: [February 13, 2018, 8:25pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/24 "2018-02-13T20:25:17Z")

</div>

its’ the binary literals; if you change em to hex it imports fine:

```auto
    KTKDeviceAdvertisingPacketsEddystoneAll = 0x1C,
    /**
     * All supprted Eddystone Secure (EID + ETLM).
     */
    KTKDeviceAdvertisingPacketsEddystoneSecure = 0x60,
    /**
     * All supprted packets.
     */
    KTKDeviceAdvertisingPacketsAll = 0xFFFFFFFE

```

[KontaktSDK.zip](https://talk.remobjects.com/uploads/default/original/2X/1/17adfb30fc770e3305c274394b4c052c86eaf4eb.zip) (297.2 KB)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [February 14, 2018, 7:24am UTC](https://talk.remobjects.com/t/using-frameworks/15430/25 "2018-02-14T07:24:51Z")

</div>

bugs://79565 got closed with status fixed.

---

<div class="post-metadata">

### Author: ![jeremy](https://talk.remobjects.com/user_avatar/talk.remobjects.com/jeremy/32/10_2.png) [@jeremy](https://talk.remobjects.com/u/jeremy)
#### Post date: [February 14, 2018, 11:11am UTC](https://talk.remobjects.com/t/using-frameworks/15430/26 "2018-02-14T11:11:44Z")

</div>

> [@mh](#):
>
> its’ the binary literals; if you change em to hex it imports fine:

So it does, thanks. Now to see if it works…

---

<div class="post-metadata">

### Author: ![jeremy](https://talk.remobjects.com/user_avatar/talk.remobjects.com/jeremy/32/10_2.png) [@jeremy](https://talk.remobjects.com/u/jeremy)
#### Post date: [February 14, 2018, 3:17pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/27 "2018-02-14T15:17:54Z")

</div>

Looks good, I can’t get it running on my device though, as it says the following, so what am I missing? I just added the reference to the fx file created by Train, do I need to do something else?

dyld: Library not loaded: @rpath/KontaktSDK.framework/KontaktSDK  
Referenced from: /var/containers/Bundle/Application/9CFD038B-3D2C-4986-AC1E-D5E9BE93A386/my.app/my  
Reason: no suitable image found. Did find:  
/private/var/containers/Bundle/Application/9CFD038B-3D2C-4986-AC1E-D5E9BE93A386/my.app/KontaktSDK.framework/KontaktSDK: required code signature missing for ‘/private/var/containers/Bundle/Application/9CFD038B-3D2C-4986-AC1E-D5E9BE93A386/my.app/KontaktSDK.framework/KontaktSDK’

---

<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: [February 14, 2018, 6:22pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/28 "2018-02-14T18:22:27Z")

</div>

is the reference set to CopyLocal? does the .framework get bundled into your app?

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [February 14, 2018, 9:56pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/29 "2018-02-14T21:56:01Z")

</div>

For this error

required code signature missing for ‘/private/var/containers/Bundle/Application/9CFD038B-3D2C-4986-AC1E-D5E9BE93A386/my.app/KontaktSDK.framework/KontaktSDK’

You need to sign the framework file intended for the iOS device.

---

<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: [February 14, 2018, 11:09pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/30 "2018-02-14T23:09:15Z")

</div>

or specify `--deep` for the custom codesign parameters. Wondering if I should do `--deep` by default?

---

<div class="post-metadata">

### Author: ![jeremy](https://talk.remobjects.com/user_avatar/talk.remobjects.com/jeremy/32/10_2.png) [@jeremy](https://talk.remobjects.com/u/jeremy)
#### Post date: [February 15, 2018, 10:20am UTC](https://talk.remobjects.com/t/using-frameworks/15430/31 "2018-02-15T10:20:37Z")

</div>

> [@JohnMoshakis](#):
>
> You need to sign the framework file intended for the iOS device.

What do I use to do that?

---

<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: [February 15, 2018, 12:45pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/32 "2018-02-15T12:45:23Z")

</div>

set `--deep` for the CodeSign Options setting of your app. that should resign all nested frameworks as part of signing the main app.

---

<div class="post-metadata">

### Author: ![jeremy](https://talk.remobjects.com/user_avatar/talk.remobjects.com/jeremy/32/10_2.png) [@jeremy](https://talk.remobjects.com/u/jeremy)
#### Post date: [February 15, 2018, 1:35pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/33 "2018-02-15T13:35:54Z")

</div>

> [@mh](#):
>
> set --deep for the CodeSign Options setting of your app. that should resign all nested frameworks as part of signing the main app.

Ah, found it. I had to activate advanced project options. Sadly, no difference, same message. I can see it does copy the framework to the device though.

---

<div class="post-metadata">

### Author: ![jeremy](https://talk.remobjects.com/user_avatar/talk.remobjects.com/jeremy/32/10_2.png) [@jeremy](https://talk.remobjects.com/u/jeremy)
#### Post date: [February 16, 2018, 12:37pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/34 "2018-02-16T12:37:27Z")

</div>

I’ve sent a sample project to support, in case I’ve either misunderstood your --deep suggestion, or it isn’t working.

I’ve done it in swift, as I have tried the same thing in Xcode, and that works great.

---

<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: [February 16, 2018, 2:05pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/35 "2018-02-16T14:05:31Z")

</div>

Can you send me the .IPA for both the working Xcode version and there Elements, so I can compare the two?

---

<div class="post-metadata">

### Author: ![jeremy](https://talk.remobjects.com/user_avatar/talk.remobjects.com/jeremy/32/10_2.png) [@jeremy](https://talk.remobjects.com/u/jeremy)
#### Post date: [February 16, 2018, 5:20pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/36 "2018-02-16T17:20:30Z")

</div>

> [@mh](#):
>
> Can you send me the .IPA for both the working Xcode version and there Elements, so I can compare the two?

Done, separate e-mails. Hope they help!

---

<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: [February 16, 2018, 5:31pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/37 "2018-02-16T17:31:32Z")

</div>

Hmm. the Elements one has the Framework in the root, while Xcode has it in the Frameworks subfolder. curious. lemme debug why that happens, but that’s most certainly the problem…

---

<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: [February 16, 2018, 5:46pm UTC](https://talk.remobjects.com/t/using-frameworks/15430/38 "2018-02-16T17:46:52Z")

</div>

Fixed for `20180216-174549-elements-develop` and later (see PM)

[Previous page](https://talk.remobjects.com/t/using-frameworks/15430.md?page=1)
