导致此XCode 8 / iOS 10编译器警告的原因是什么?

时间:2016-09-29 13:42:59

标签: swift3 xcode8

我已经更新了我的xcode 8并运行了一个在7.3中创建的旧应用程序,它通过在swift 3中转换swift代码。但是我在日志窗口中收到消息如下:

   objc[19295]: Class PLBuildVersion is implemented in both   /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x118365910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11818f210). One of the two will be used. Which one is undefined.
   activity started

为什么会发生这种情况?

1 个答案:

答案 0 :(得分:1)

您在框架PLBuildVersion以及AssetsLibraryServices中声明了一个类PhotoLibraryServices。因为类名是唯一的Xcode告诉你它将采用其中一个类声明,但它会让它一个惊喜,哪一个是。 ;)

幸运的是,你不必担心,因为这两个课程应该是一样的。