A demo project is helpful:
Unfortunatelly I can't attach demo project, as the Issue described below occurs with a private cocoapod, and I haven't been able to find analogous opensource example. I will try to provide a detailed description.
Issue
Problematic podspec includes both static vendored framework & custom source code:
Pod::Spec.new do |spec|
spec.name = 'MyFramework'
spec.source_files = 'src/*.{m,h,swift}'
spec.vendored_frameworks = 'VendoredFramework.framework"
end
When I install this without cocoapods-binary:
target 'MyApp' do
pod 'MyFramework'
end
Everything works OK - specifically, generated Pods-MyApp.debug.xcconfig contains
What's your environment:
A demo project is helpful: Unfortunatelly I can't attach demo project, as the Issue described below occurs with a private cocoapod, and I haven't been able to find analogous opensource example. I will try to provide a detailed description.
Issue Problematic podspec includes both static vendored framework & custom source code:
When I install this without cocoapods-binary:
Everything works OK - specifically, generated
Pods-MyApp.debug.xcconfig
containsHowever, when I install this with cocoapods-binary:
I get duplicate symbols from
VendoredFramework
in runtime - included in bothMyApp
&MyFramework
.Pods-MyApp.debug.xcconfig
containsWhen I remove
-framework "VendoredFramework"
from.xcconfig
everything works fine again (until nextpod install
)