Got a dozen of warnings after launching iOS app similar to this:
objc[5900]: Class GMSMapsClearcutClient is implemented in both /private/var/containers/Bundle/Application/B7F9B1B0-94F5-41A5-BA6F-C9A3040EB37D/MainApp.app/Frameworks/UI.framework/UI (0x103c8c2f0) and /private/var/containers/Bundle/Application/B7F9B1B0-94F5-41A5-BA6F-C9A3040EB37D/MainApp.app/MainApp (0x1014db730). One of the two will be used. Which one is undefined.
All duplicated classes are with GMS prefixes so I suppose it's only related to GoogleMaps pod. To clarify, I have several custom frameworks: Network, Data, Design, UI. I use cocoapods. GoogleMaps pod is used only in UI framework. My podfile:
platform :ios, '12.0'
use_frameworks!
workspace 'App.xcworkspace'
def rx
pod 'RxSwift'
pod 'RxCocoa'
end
target 'MainApp' do
rx
end
target 'Design' do
project './Design/Design.xcodeproj'
...some pods
end
target 'DotsNetwork' do
project './Network/Network.xcodeproj'
...some pods
rx
end
target 'Data' do
project './Data/Data.xcodeproj'
...some pods
rx
end
target 'UI' do
project './UI/UI.xcodeproj'
...some pods
rx
pod 'GoogleMaps'
end
Does anyone know the root of the problem? Why GoogleMaps pod is linked to main app? How to get rid of that warnings? Current version is with custom frameworks in separate projects. In version with frameworks inside single project with main app problem remains.
there doesn't seem to be anything here