Aqlier/ 7月 4, 2017/ iPhone

Xcode 8以降でシュミレータ起動時に起きたエラーの対処方法をまとめました。

エラー本文

objc[1760]: Class PLBuildVersion is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 10.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x10b47e998) and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 10.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x10a913d38).One of the two will be used. Which one is undefined.


対処

1.Xcodeの<プロジェクト・ターゲット>ー<Build Phases>を選択して「」ボタンを押して
frameworkを追加します。

追加するframeworkは、AssetsLibrary.frameworkPhotosUI.frameworkです。

Photos.frameworkではNGです。
PhotosUI.frameworkとPhotos.frameworkを追加しても、NGです。