崩溃是由CocoaPods脚本引起的
Pods-YourProject-frameworks.sh
正在安装
Parse-Core-FacebookUtils-TwitterUtils/Parse.framework
和
Parse-Core/Parse.framework
到完全相同的位置,有效地覆盖了前者
install_framework "${BUILT_PRODUCTS_DIR}/Parse-Core-FacebookUtils-TwitterUtils/Parse.framework"
install_framework "${BUILT_PRODUCTS_DIR}/Parse-Core/Parse.framework"
我通过在CocoaPods运行脚本之前添加以下运行脚本解决了这个问题
/usr/bin/sed -i '' '/Parse-Core\/Parse.framework/d' "${PODS_ROOT}/Target Support Files/Pods-YourProjectName/Pods-YourProjectName-frameworks.sh"
这将从CocoaPods脚本中删除有问题的行,并解决崩溃问题。
注意:删除
-Core
如果您使用
pod 'Parse'
而不是
pod 'Parse/Core'
。