The podspec you publish for this repository is incorrect. Your publised podspec JSON declares
"libraries": [
"Smartling"
],
However the "libraries" key is for system libraries, i.e. libraries that you need to link against if you use this pod. What you want is "vendored_libraries". The problem with just using "libraries" is it means any nested target that is set to just inherit search paths and inherits a dependency on your pod will attempt to link against your static library (which will fail at link time) even though it shouldn't. For example, given the following Podfile:
target "MyApp" do
pod 'Smartling'
target "MyAppTests" do
inherit! :search_paths
end
end
The MyAppTests target will fail to compile with a linker error, due to inserting -lSmartling into OTHER_LDFLAGS.
The podspec you publish for this repository is incorrect. Your publised podspec JSON declares
However the
"libraries"
key is for system libraries, i.e. libraries that you need to link against if you use this pod. What you want is"vendored_libraries"
. The problem with just using"libraries"
is it means any nested target that is set to just inherit search paths and inherits a dependency on your pod will attempt to link against your static library (which will fail at link time) even though it shouldn't. For example, given the following Podfile:The MyAppTests target will fail to compile with a linker error, due to inserting
-lSmartling
intoOTHER_LDFLAGS
.