swift - CocoaPods use_frameworks! causes "Class X is implemented in both Y and Z" -
i want integrate obj-c libraries swift project via cocoapods v0.37.2.
here podfile:
platform :ios, '8.0' use_frameworks! target 'myapp' pod "fbsdkcorekit", '~> 4.2.0' pod 'fbsdkloginkit', '~> 4.2.0' pod 'fbsdksharekit', '~> 4.2.0' end i got following message on console when running project on simulator:
objc[40546]: class fbsdkaccesstoken implemented in both /users/brian/library/developer/coresimulator/devices/2146bb4a-b290-4538-a090-41da702bd959/data/containers/bundle/application/8f5457c5-253a-4e65-b21a-12438b642201/myapp.app/frameworks/fbsdkcorekit.framework/fbsdkcorekit , /users/brian/library/developer/coresimulator/devices/2146bb4a-b290-4538-a090-41da702bd959/data/containers/bundle/application/8f5457c5-253a-4e65-b21a-12438b642201/myapp.app/myapp. 1 of 2 used. 1 undefined.
(i got lots of similar messages, example)
i sure it's caused use_frameworks!. if remove statement podfile , use bridging-header, error disappears , good.
i've googled while, seems nobody got error on internet.
how rid of error while using use_frameworks!?
it turns out didn't use use_frameworks! beginning , used after started working on project. triggered bug made there 2 sources of same libs on simulators , threw error.
removing simulators , adding again saved me. (resetting simulators doesn't work, must remove simulators , add them via window > devices)
Comments
Post a Comment