# Load framework lib

**URL:** <https://discuss.bitrise.io/t/load-framework-lib/12053>\
**Category:** Question & Answer\
**Created:** [February 24, 2020, 10:51pm UTC](https://discuss.bitrise.io/t/load-framework-lib/12053 "2020-02-24T22:51:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![julienbodet](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@julienbodet](https://discuss.bitrise.io/u/julienbodet)\
**Post date:** [February 24, 2020, 10:51pm UTC](https://discuss.bitrise.io/t/load-framework-lib/12053/1 "2020-02-24T22:51:14Z")

</div>

Hi,

Our team uses Veracode and we need to submit iOS apps builds. Before submitting the build, we need to build a .bca archive from the .xcarchive using Veracode Mobile Application Packager command line tool. To be able to run, this command line tool needs the library ZIPFoundation.framework.

The [official Veracode documentation](https://help.veracode.com/reader/eAvornYxfrGF2caDJIBu_g/8d4RNho7V0M2DwSehRp4dA?section=t_xcode_cli_manual) says to put ZIPFoundation.framework into `/Library/Frameworks` on the mac. But my question is how to do that in Bitrise as I don’t have write access to this directory?

Currently without this library, I’m getting the following error by running the Veracode executable file through a fastlane script.

```
dyld: Library not loaded: @rpath/ZIPFoundation.framework/Versions/A/ZIPFoundation
  Referenced from: /Users/vagrant/git/fastlane/vcxcodepkg
  Reason: image not found

```

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)\
**Post date:** [February 25, 2020, 12:27am UTC](https://discuss.bitrise.io/t/load-framework-lib/12053/2 "2020-02-25T00:27:32Z")

</div>

> [@julienbodet](#):
>
> I don’t have write access to this directory?

Have you tried with `sudo`?

---

<div class="post-metadata">

**Author:** ![julienbodet](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@julienbodet](https://discuss.bitrise.io/u/julienbodet)\
**Post date:** [February 25, 2020, 3:28pm UTC](https://discuss.bitrise.io/t/load-framework-lib/12053/3 "2020-02-25T15:28:10Z")

</div>

I just tried. I don’t get the permission error anymore, but still get the `dyld: Library not loaded` error while locally it works well.

EDIT: `dyld: Library not loaded` error is for another library this time, so it seems to work now! Thanks @koral!

---

<div class="post-metadata">

**Author:** ![ahvth-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ahvth-bitrise/32/2468_2.png) [@ahvth-bitrise](https://discuss.bitrise.io/u/ahvth-bitrise)\
**Post date:** [February 26, 2020, 10:16am UTC](https://discuss.bitrise.io/t/load-framework-lib/12053/4 "2020-02-26T10:16:06Z")

</div>

Hi @julienbodet ,

Can you please send us a build URL where we can see the `dyld: Library not loaded` error in context? Thanks.

---

<div class="post-metadata">

**Author:** ![julienbodet](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@julienbodet](https://discuss.bitrise.io/u/julienbodet)\
**Post date:** [February 26, 2020, 3:19pm UTC](https://discuss.bitrise.io/t/load-framework-lib/12053/5 "2020-02-26T15:19:26Z")

</div>

Hi @ahvth-bitrise, can I share this here or there is a way to send you a private message? It didn’t work when I tried.

The error is:

```
dyld: Library not loaded: @rpath/libswiftAppKit.dylib
  Referenced from: /Users/vagrant/git/fastlane/vcxcodepkg
  Reason: image not found

```

I found this [post](https://medium.com/livefront/how-to-add-a-dynamic-swift-framework-to-a-command-line-tool-bab6426d6c31) on the subject.

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [March 3, 2020, 8:43am UTC](https://discuss.bitrise.io/t/load-framework-lib/12053/6 "2020-03-03T08:43:00Z")

</div>

Hi @julienbodet, if you’re still experiencing issues please reach out directly on-site through our Zendesk widget, or via e-mail to [letsconnect@bitrise.io](mailto:letsconnect@bitrise.io).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [April 2, 2020, 8:46am UTC](https://discuss.bitrise.io/t/load-framework-lib/12053/7 "2020-04-02T08:46:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
