问题描述:
dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib
Referenced from: /var/containers/Bundle/Application/54430420-A038-4AF5-B18A-31E3E77C8FDF/KoucloiPhone.app/KoucloiPhone
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/54430420-A038-4AF5-B18A-31E3E77C8FDF/KoucloiPhone.app/Frameworks/libswiftAVFoundation.dylib: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/54430420-A038-4AF5-B18A-31E3E77C8FDF/KoucloiPhone.app/Frameworks/libswiftAVFoundation.dylib'
解决方法:
找路径的方法打开finder,点击上方的前往按住option(一直按着)出来个隐藏的资源库,就可以找到下面的路径
1. 退出 Xcode
2. 重启电脑
3. 找到 这个 DerivedData 文件夹 删除 (路径: ~/Library/Developer/Xcode/DerivedData)
4. 删除这个 com.apple.dt.Xcode 文件 (路径: ~/Library/Caches/com.apple.dt.Xcode)
网友评论