-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Library not loaded: @rpath/AzureCommunicationCommon.framework/AzureCommunicationCommon #1539
Comments
@AikoBB can you take a look at this? |
One workaround is switching just the Calling & Common pods to target 'MyTestApp' do
pod 'AzureCommunicationCalling', '2.3.0'
pre_install do |installer|
installer.pod_targets.each do |target|
case target.name
when 'AzureCommunicationCommon', 'AzureCommunicationCalling'
def target.build_type;
Pod::BuildType.new(:linkage => :dynamic, :packaging => :framework)
end
end
end
end
end |
Hi @JasonWeinzierl ! Thanks for reporting it, our team will be looking at the issue. |
Note that that only framework expected to be dynamic is target 'App' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks! :linkage => :static
# Pods for App
pod 'AzureCommunicationCalling', '~> 2.3.0'
pre_install do |installer|
installer.pod_targets.each do |target|
case target.name
when 'AzureCommunicationCommon'
def target.build_type;
Pod::BuildType.new(:linkage => :dynamic, :packaging => :framework)
end
end
end
end
end This is not in itself a bug, but rather a not supported use case, so right now that is the only option due how So in other to support this we would have to re-think how we ship the calling binary and the interaction with the common dependency. Maybe link it statically and ship that embedded with the binary? But this needs a bit more investigation as we don't know the consequences of that but right of the start we can expect an increase on binary size for all customers and maybe we could hit ABI limitations. |
Describe the bug
When installing the AzureCommunicationCalling pod into an iOS app using
use_frameworks! :linkage => :static
, the iOS app will crash with the following error:To Reproduce
pod init
, then add the following, thenpod install
. Open the generated Xcode workspace.Failed to build module 'AzureCommunicationCalling'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)', while this compiler is 'Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)'). Please select a toolchain which matches the SDK.
Expected behavior
:linkage => :static
should work. Not all projects can use:linkage => :dynamic
, and there's an existing issue with omitting theuse_frameworks!
line entirely ( #1517 ).Setup
The text was updated successfully, but these errors were encountered: