我已经更新了我的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
为什么会发生这种情况?
答案 0 :(得分:1)
您在框架PLBuildVersion
以及AssetsLibraryServices
中声明了一个类PhotoLibraryServices
。因为类名是唯一的Xcode告诉你它将采用其中一个类声明,但它会让它一个惊喜,哪一个是。 ;)
幸运的是,你不必担心,因为这两个课程应该是一样的。