Questions tagged [dynamic-library]

Compiled binaries capable to be loaded in the process address space in runtime.

Dynamic Libraries are compiled binaries capable of being loaded/unloaded into/from the process address space at runtime.

In the Unix world, they are called shared libraies; in the Windows world, they are known as DLLs (dynamically-loadable libraries).

They can be loaded simultaneously into multiple processes, saving RAM and disk space.

Their file format is similar to, or even the same as, that of binary executables.

484 questions
664
votes
34 answers

iOS app with framework crashed on device, dyld: Library not loaded, Xcode 6 Beta

This crash has been a blocking issue I used the following steps to reproduce the issue: Create a Cocoa Touch Framework project Add a swift file and a class Dog Build a framework for device Create a Single View application in Swift Import framework…
vladof81
  • 26,121
  • 9
  • 38
  • 41
233
votes
3 answers

Library? Static? Dynamic? Or Framework? Project inside another project

I have an existing iOS app and want to add a large chunk of code that I've been developing as another project just for ease of testing. The new chunk basically deals with saving an image to various sharing services, etc.. Because that sharing code…
pizzafilms
  • 3,829
  • 4
  • 24
  • 39
162
votes
5 answers

Why do we use use_frameworks! in CocoaPods?

I have used use_frameworks! in CocoaPods Podfile many times. I just wonder why do we use it? I couldn't get the straight forward answer of it. Example: platform :ios, '8.0' use_frameworks! target "CityWhether" do pod 'Alamofire' pod…
harikrista
  • 1,621
  • 2
  • 11
  • 8
151
votes
3 answers

When should we use "embedded binaries" rather than "Linked Frameworks" in Xcode?

There is a good question about the difference between those two options as described in Link Binary with libraries VS Embed Frameworks. Seems like we have options to use them both, just wonder which case we should use embedded binaries better, or…
Forrest
  • 122,703
  • 20
  • 73
  • 107
137
votes
3 answers

Difference between framework and static library in xcode4, and how to call them

I am quite new to xcode and objective-c. I want to ask a very basic question. I saw that when "linking binary to libraries" in project settings, there are differences about framework and libraries, imported from other projects in workspace. First…
Leonardo
  • 9,607
  • 17
  • 49
  • 89
135
votes
22 answers

PHP Warning: PHP Startup: Unable to load dynamic library

I run a PHP script and get this error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/ixed.5.2.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/ixed.5.2.lin: cannot…
Popolo
  • 1,351
  • 2
  • 8
  • 3
124
votes
4 answers

"Do Not Embed", "Embed & Sign", "Embed Without Signing". What are they?. What they do?

We have 3 new options in "Frameworks, Libraries, and Embedded Content" section of Xcode11 Beta for adding libraries. Xcode Libraries section screenshot Can anyone explain what they do?
Shreeram Bhat
  • 2,849
  • 2
  • 11
  • 19
120
votes
5 answers

iOS Static vs Dynamic frameworks clarifications

I have to admit that with the release of iOS 8 I am a bit confused about dynamic and static frameworks in iOS. I am looking for a way to distribute a library that I created, and I need to support iOS 7 and above. (Note: This will be a proprietary…
csotiriou
  • 5,653
  • 5
  • 36
  • 45
85
votes
3 answers

Link Binary with libraries VS Embed Frameworks

What's the difference in the build phases between putting a framework in "Link binary with libraries" or in "Embed frameworks"?
Alberto Schiariti
  • 1,546
  • 2
  • 15
  • 31
69
votes
15 answers

Xcode 6 and Embedded Frameworks only supported in iOS8

When using an embedded framework (dyld) in Xcode 6.0.1 with deployment target less that iOS 8 I get: Build is successful Runtime library loading error Error: dyld: Library not loaded: @rpath/ObjectiveLyricsTouch2.framework/ObjectiveLyricsTouch2 …
loretoparisi
  • 15,724
  • 11
  • 102
  • 146
51
votes
2 answers

CMake: how to produce binaries "as static as possible"

I would like to have control over the type of the libraries that get found/linked with my binaries in CMake. The final goal is, to generate binaries "as static as possible" that is to link statically against every library that does have a static…
pszilard
  • 1,942
  • 1
  • 15
  • 18
50
votes
11 answers

Xcode 6 iOS Creating a Cocoa Touch Framework - Architectures issues

I'm trying to make a dynamic framework for an iOS app. Thanks to the new version of Xcode (6) we can select a Cocoa Touch Framework when we create a new project and there is no more need to add an aggregate target, run script and so to make one. I…
49
votes
6 answers

Could not load dynamic library 'libnvinfer.so.6'

I am trying to normally import the TensorFlow python package, but I get the following error: Here is the text from the above terminal image: 2020-02-23 19:01:06.163940: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load…
saman jahangiri
  • 687
  • 1
  • 5
  • 13
35
votes
3 answers

Meaning of library dl in gcc

I'm checking a makefile, and see that the libraries used are: LIBS = -lcppunit -ldl lcppunit is the unit testing library. What is ldl then?
Dzung Nguyen
  • 3,794
  • 9
  • 48
  • 86
32
votes
5 answers

Is there a downside to using -Bsymbolic-functions?

I recently discovered the linker option "-Bsymbolic-functions" in GNU ld: -Bsymbolic When creating a shared library, bind references to global symbols to the definition within the shared library, if any. Normally, it is possible for a…
Johannes Schaub - litb
  • 496,577
  • 130
  • 894
  • 1,212
1
2 3
32 33