Flutter iOS";替换现有签名"""拒绝许可";错误命令Pha



我在这个flutter项目上工作了大约4个月,主要是为了ios部署,我们不得不重新访问该项目以进行一些更改。它运行良好。我不得不在项目中添加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

我不知道哪里出了问题。

我在接受旧项目后修改的都是:

  1. 将团队和捆绑包标识符更改为开发者认证的许可证,以分发应用程序
  2. 更新了flutter pubspec.yaml中的一些依赖项

如果需要更多信息,我随时准备提供。对此的任何见解都将非常有帮助。非常感谢。

在应用程序中设置firebase时出现问题。我在xcode编辑器中更改了应用程序,但没有必要。Flutter会帮你搞定的。因此,当运行命令时,在笛子中添加命令是很重要的。

我还删除了Podfile.lock、pod文件和.xcworkspace,并从终端运行了pod安装和升级。我还运行了"flutter clean"并重新编译。

相关内容

  • 没有找到相关文章

最新更新