Using Dylibs Inside App Bundle

Corb3nik

I am trying to compile an app that uses multiple libraries using Xcode. To do so, I created a script that copies all of my .dylibs from a location on my computer to the Frameworks folder inside my app bundle. After adding the necessary linker flags and header search paths, I must now add my library search paths.

Since I have copied all the libraries inside my Frameworks folder of my app bundle, I have deduced that I must add $(FRAMEWORKS_FOLDER_PATH) to the library search paths setting. Adding this fails, because the linker can not find that directory.

I am guessing that the Frameworks folder isn't created until after searching the library search paths setting. If so, how am I supposed to use the libraries that I have copied inside my app bundle?

sjs

Placing the .dylib files in the Frameworks folder is something you do so that the application can find them when it runs.. dylib files are dynamically linked, so the application loads them at run time.

Setting Xcode up to link to the .dylibs at compile time should just be a matter of dragging the .dylib from the Finder into your Xcode project. I've shown this with a simple example project that uses libxar.dylib in the attached screenshot.

Example of a dylib in an Xcode Project

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

在App Bundle中使用Dylibs

来自分类Dev

在App Bundle中使用Dylibs

来自分类Dev

Py2App将PIL Dylibs放在Zip文件中

来自分类Dev

OSX App Bundle无法启动

来自分类Dev

SKTextureAtlas外部app.bundle

来自分类Dev

AppCenter不会构建Android App Bundle(AAB)

来自分类Dev

UPX可以打包Dylibs吗?

来自分类Dev

UPX可以打包Dylibs吗?

来自分类Dev

Xcode 5如何从App Bundle链接动态库

来自分类Dev

带有应用捆绑程序的Jar to Mac OSX App Bundle

来自分类Dev

Android App Bundle无法在Android Studio中生成

来自分类Dev

部署前修改Android App Bundle(aab)内容

来自分类Dev

意外接受后退出Android App Bundle

来自分类Dev

意外接受后退出Android App Bundle

来自分类Dev

从Xcode中的App Bundle中删除的文件仍然可读

来自分类Dev

尝试从名称空间“ App \ Bundle \ Controller”中调用函数“ getAge”

来自分类Dev

Using PFQuery inside cellForRowAtIndexPath

来自分类Dev

将Cocoa App和Commandline Tool组合成一个App Bundle

来自分类Dev

将Cocoa App和Commandline Tool组合到一个App Bundle中

来自分类Dev

公开可用的iOS app_id到app_bundle映射?

来自分类Dev

您上传了在调试模式下签名的 APK 或 Android App Bundle。您需要在发布模式下签署您的 APK 或 Android App Bundle

来自分类Dev

启动Meteor App时出错:对目录的非法操作,取消链接“ ... / dev_bundle”

来自分类Dev

在MacOS目录名称中带有句点的Codesign OSX App Bundle

来自分类Dev

如何从我的App Bundle中加载此表单主题?(交响乐)

来自分类Dev

Delphi&OSX-使用App Bundle部署Unix可执行文件

来自分类Dev

访问Mac OS X App Bundle中资源文件夹中的文件

来自分类Dev

如何将Automator Action嵌入到App Bundle中进行交付

来自分类Dev

create-react-app中的Bundle.js使用Docker Toolbox加载缓慢

来自分类Dev

App Bundle是否足够,还是需要拆分APK以减小APK大小?

Related 相关文章

  1. 1

    在App Bundle中使用Dylibs

  2. 2

    在App Bundle中使用Dylibs

  3. 3

    Py2App将PIL Dylibs放在Zip文件中

  4. 4

    OSX App Bundle无法启动

  5. 5

    SKTextureAtlas外部app.bundle

  6. 6

    AppCenter不会构建Android App Bundle(AAB)

  7. 7

    UPX可以打包Dylibs吗?

  8. 8

    UPX可以打包Dylibs吗?

  9. 9

    Xcode 5如何从App Bundle链接动态库

  10. 10

    带有应用捆绑程序的Jar to Mac OSX App Bundle

  11. 11

    Android App Bundle无法在Android Studio中生成

  12. 12

    部署前修改Android App Bundle(aab)内容

  13. 13

    意外接受后退出Android App Bundle

  14. 14

    意外接受后退出Android App Bundle

  15. 15

    从Xcode中的App Bundle中删除的文件仍然可读

  16. 16

    尝试从名称空间“ App \ Bundle \ Controller”中调用函数“ getAge”

  17. 17

    Using PFQuery inside cellForRowAtIndexPath

  18. 18

    将Cocoa App和Commandline Tool组合成一个App Bundle

  19. 19

    将Cocoa App和Commandline Tool组合到一个App Bundle中

  20. 20

    公开可用的iOS app_id到app_bundle映射?

  21. 21

    您上传了在调试模式下签名的 APK 或 Android App Bundle。您需要在发布模式下签署您的 APK 或 Android App Bundle

  22. 22

    启动Meteor App时出错:对目录的非法操作,取消链接“ ... / dev_bundle”

  23. 23

    在MacOS目录名称中带有句点的Codesign OSX App Bundle

  24. 24

    如何从我的App Bundle中加载此表单主题?(交响乐)

  25. 25

    Delphi&OSX-使用App Bundle部署Unix可执行文件

  26. 26

    访问Mac OS X App Bundle中资源文件夹中的文件

  27. 27

    如何将Automator Action嵌入到App Bundle中进行交付

  28. 28

    create-react-app中的Bundle.js使用Docker Toolbox加载缓慢

  29. 29

    App Bundle是否足够,还是需要拆分APK以减小APK大小?

热门标签

归档