构建项目时出现以下警告+错误:
警告:
The file “Pods-MyApp.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/Malloc/projects/MyProject/Pods/Pods/Target Support Files/Pods-MyApp/Pods-MyApp.debug.xcconfig)
我的第一个问题是关于以上警告,您可能会注意到,该路径似乎是错误的,因为(重复的 Pods / ),对此原因有任何想法以及如何纠正它?
错误:
我的第二个问题是关于此错误的:
diff: /Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
我尝试安装Pod,但未进行任何更改,清理文件夹+ Pod解集成,安装Pod也无济于事。我的Manifest.lock
文件内容如下:
diff "${PODS_PODFILE_DIR_PATH}/Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
if [ $? != 0 ] ; then
# print error to STDERR
echo "error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation." >&2
exit 1
fi
# This output is used by Xcode 'outputs' to avoid re-running this script phase.
echo "SUCCESS" > "${SCRIPT_OUTPUT_FILE_0}"