扑iOS"replacing existing signature""permission denied"错误。命令 PhaseScriptExecution 失败,退出代码非零
Flutter iOS "replacing existing signature" "permission denied" error. Command PhaseScriptExecution failed with a nonzero exit code
我在这个主要用于 ios 部署的 flutter 项目上工作了大约 4 个月,我们不得不重新访问该项目以进行一些更改。它工作正常。我必须将 firebase_crashlytics 添加到项目中。所以当我添加它时,弹出一个错误说:
The current Flutter SDK version is 1.9.1+hotfix.4.
Because vitalsmobile depends on firebase_crashlytics >=0.1.2 which requires Flutter SDK version >=1.9.1+hotfix.5 <2.0.0, version solving failed.
pub get failed
所以我恢复并尝试为 ios 模拟器编译以检查是否一切正常并且 iOS 抛出了这个错误:
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Script-62580339D8295FD31996B914.sh (in target 'Runner' from project 'Runner')
cd /Users/ag32547/Documents/GitHub/vitalsmobileboilerplate/ios
/bin/sh -c /Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Script-62580339D8295FD31996B914.sh
mkdir -p /Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks
rsync --delete -av --filter P .*.?????? --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/ag32547/Documents/GitHub/vitalsmobileboilerplate/ios/Pods/../Flutter/Flutter.framework" "/Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks"
building file list ... done
Flutter.framework/
Flutter.framework/Flutter
Flutter.framework/Info.plist
Flutter.framework/icudtl.dat
Flutter.framework/_CodeSignature/
Flutter.framework/_CodeSignature/CodeResources
sent 94440040 bytes received 120 bytes 62960106.67 bytes/sec
total size is 94428117 speedup is 1.00
Stripped /Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework/Flutter of architectures: armv7 arm64
Code Signing /Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework with Identity -
/usr/bin/codesign --force --sign - --preserve-metadata=identifier,entitlements '/Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework'
/Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework: replacing existing signature
/Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework: Permission denied
Command PhaseScriptExecution failed with a nonzero exit code
我不知道哪里出错了。
接老项目后我修改的是:
- 将团队和捆绑包标识符更改为开发人员认证许可证以分发应用程序。
- 更新了 flutter 中的一些依赖项 pubspec.yaml
如果需要更多信息,我随时准备提供。
对此的任何见解都会非常有帮助。谢谢。
问题出现在我在应用中设置firebase时。我在 xcode 编辑器中更改了应用程序,但没有必要。 Flutter 会为您处理。因此,当 运行 命令时,在 flutter 中添加命令很重要。
我还从终端删除了 Podfile.lock、pod 文件和 .xcworkspace 以及 运行 pod 安装和升级。而且我还运行"flutter clean"重新编译了。
我在这个主要用于 ios 部署的 flutter 项目上工作了大约 4 个月,我们不得不重新访问该项目以进行一些更改。它工作正常。我必须将 firebase_crashlytics 添加到项目中。所以当我添加它时,弹出一个错误说:
The current Flutter SDK version is 1.9.1+hotfix.4.
Because vitalsmobile depends on firebase_crashlytics >=0.1.2 which requires Flutter SDK version >=1.9.1+hotfix.5 <2.0.0, version solving failed.
pub get failed
所以我恢复并尝试为 ios 模拟器编译以检查是否一切正常并且 iOS 抛出了这个错误:
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Script-62580339D8295FD31996B914.sh (in target 'Runner' from project 'Runner')
cd /Users/ag32547/Documents/GitHub/vitalsmobileboilerplate/ios
/bin/sh -c /Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Script-62580339D8295FD31996B914.sh
mkdir -p /Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks
rsync --delete -av --filter P .*.?????? --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/ag32547/Documents/GitHub/vitalsmobileboilerplate/ios/Pods/../Flutter/Flutter.framework" "/Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks"
building file list ... done
Flutter.framework/
Flutter.framework/Flutter
Flutter.framework/Info.plist
Flutter.framework/icudtl.dat
Flutter.framework/_CodeSignature/
Flutter.framework/_CodeSignature/CodeResources
sent 94440040 bytes received 120 bytes 62960106.67 bytes/sec
total size is 94428117 speedup is 1.00
Stripped /Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework/Flutter of architectures: armv7 arm64
Code Signing /Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework with Identity -
/usr/bin/codesign --force --sign - --preserve-metadata=identifier,entitlements '/Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework'
/Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework: replacing existing signature
/Users/ag32547/Library/Developer/Xcode/DerivedData/Runner-ehsppxamrnwyncckggzztyutcqwg/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework: Permission denied
Command PhaseScriptExecution failed with a nonzero exit code
我不知道哪里出错了。
接老项目后我修改的是:
- 将团队和捆绑包标识符更改为开发人员认证许可证以分发应用程序。
- 更新了 flutter 中的一些依赖项 pubspec.yaml
如果需要更多信息,我随时准备提供。 对此的任何见解都会非常有帮助。谢谢。
问题出现在我在应用中设置firebase时。我在 xcode 编辑器中更改了应用程序,但没有必要。 Flutter 会为您处理。因此,当 运行 命令时,在 flutter 中添加命令很重要。
我还从终端删除了 Podfile.lock、pod 文件和 .xcworkspace 以及 运行 pod 安装和升级。而且我还运行"flutter clean"重新编译了。