I have a problem with linking my mixed language framework to a project.
1) I create a framework with Swift and Objective-C classes.
2) The main logic was stored in the
I only forget to Add the new Framework to my pod file :)
target 'Data' do
inherit! :search_paths
pod 'AlamofireObjectMapper', '~> 5.2'
end
https://stackoverflow.com/a/56187043/1848929 works like a charm.
Just create empty swift file on your project then build your project. Thats it.
if you come from lottie-react-native install instructions just add use_frameworks!
to podFile #536 (comment)
In case you encounter this error while using Xcode 11 beta 4 in combination with carthage see this workaround:
https://github.com/Carthage/Carthage/issues/2825
Basically it consists of creating a xcconfig with the fixes and inject these into each build.
@AlVelig 's answer worked for me.
My case is a Flutter Project, and I add a package (searchable_dropdown), which is write by Swift.
The output warning is:
Could not find auto-linked library 'swiftObjectiveC'
Could not find auto-linked library 'swiftCore'
......
If your Xcode version is >=12.2
Go to
BuildSettings -> Linking -> runpath search path and add
/usr/lib/swift
as your 1st argument like this enter image description here