Antecedent
because in the project, a chart control is required. The chart part of the project is not the focus, there is no need to spend a lot of time to write one yourself, so find a third-party chart. Android uses a more powerful third-party Mpandroidchart. There's no such thing as a full-featured iOS, and I finally found this.
Danielgindi / Charts
BeautifulCharts forIOS/tvos/osx! The Apple side of the Crossplatform Mpandroidchart.
This contains mpandroidchart all features.
swift written. Just practice the integrated integration bar.
integrated with pod swift third-party library, there are many online, I will not say. The principle is to use the dynamic library approach, the SWIFT project into the framework, and then link. You want to know, go check it out for yourself.
key is Podfile, example:
platform:ios, ' 8.0 '
use_frameworks!
Pod ' afnetworking '
pod ' Charts '
The third party in the #import<>-mode import in the project will have the error changed to #import "" or @import.
Body
After the integration is done, the problem is reported when running.
OBJC[3524]: Class Afcachedimage is implemented in both/private/var/containers/bundle/application/ 531b5e93-b456-4642-bba6-0a8f63e43d85/inroad.app/frameworks/afnetworking.framework/afnetworking and/var/ Containers/bundle/application/531b5e93-b456-4642-bba6-0a8f63e43d85/inroad.app/inroad. One of the both would be used. Which one is undefined.objc[3524]: Class Afautopurgingimagecache was implemented in both/private/var/containers/bundle/ Application/531b5e93-b456-4642-bba6-0a8f63e43d85/inroad.app/frameworks/afnetworking.framework/afnetworking and/ Var/containers/bundle/application/531b5e93-b456-4642-bba6-0a8f63e43d85/inroad.app/inroad. One of the both would be used. Which one is undefined.
Take a closer look at all pods third-party files have similar errors. seems to be repeating. To the internet for a long day, said the method is not so.
I'm certainly not repeating myself. So I thought about the pod problem. My guess is that the pod was changed to the framework, but the original way was preserved, so the repetition was done. A new project has been created that integrates several third parties in a framework way. There are no similar errors. The problem was found by contrast.
The problem is the other linker flags. The previous compilation was written in this way.
-L "afnetworking"
This is what's in the new project.
-framework "Afnetworking"
Get rid of all third parties and solve the problem.
(pod-caused) one of the and the both would be used. Which one is undefined.