Comments (3)
Looks like this is the root cause of #54 too
from openssl.
Specifically, it results in -lcrypto -lssl in the generated build settings for targets that should not be linking the pod.
Does it links without -lcrypto
-lssl
? It may be from the "Find Implicit Dependencies", however does it works withut implicit dependencies too?
from openssl.
The trouble occurs when you have a configuration like this:
target 'MyApp' do
use_frameworks!
pod 'OpenSSL-Univeral'
target 'MyAppTests' do
inherit! :search_paths
end
MyAppTests
gets dynamically linked into MyApp
when running tests. If MyAppTests
linked in libcrypto and libssl then there would be duplicate symbols at runtime. CocoaPods provides a mechanism to work around this with inherit! :search_paths
, so MyAppTests
can find the OpenSSL headers if it needs them, but it wont link against the libraries.
Internally CocoaPods builds up a list of libraries to link from 3 sources in the podspec(s) vendored_frameworks
, vendored_libraries
and libraries
. The first 2 it knows to filter out of nested targets using inherit! :search_paths
. However, it does not filter out the contents of libraries
because the content is assumed to by system dylibs. By adding crypto and ssl to the libraries
list, even though they aren't system dylibs they get added to the linker flags, which causes a failure when trying to link them.
from openssl.
Related Issues (20)
- Will OpenSSL 3.1.x be the next step to have an xcframework? HOT 9
- Compilation error HOT 1
- OpenSSL version 1.1.1u update HOT 1
- OpenSSL 1.1.1100 not fount HOT 3
- OpenSSL for visionOS HOT 2
- OpenSSL 1.1.1v HOT 2
- I have added this as a package to my project. These Are the errors I see
- OpenSSL 3.1.3 HOT 1
- Sign Data Using RSA With PKCS#7 Format
- License issue on OpenSSL HOT 1
- OpenSSL-Universal no library for this platform found ios HOT 2
- Legacy Provider support? HOT 1
- SHA1 crashes when digesting big data HOT 1
- OpenSSL 3.1.4 HOT 1
- Where to get opensslconf-arm64.h? HOT 1
- Cannot find 'BIO_set_conn_hostname' in scope HOT 1
- Privacy Manifest and Signature HOT 11
- Big git .pack file HOT 5
- where X509_get_notAfter HOT 1
- Getting ITMS-90482: Invalid Executable from Apple HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openssl.