ios 无法在发布模式下运行Flutter项目

8wigbo56  于 2022-11-19  发布在  iOS
关注(0)|答案(1)|浏览(133)

我在Xcode中打开了一个Flutter项目。我可以使用模拟器在调试模式下运行它,但它不会在发布模式下运行,也不会被打包。我找不到具体的错误信息。我不知道为什么。有人能帮助我吗?

PhaseScriptExecution Run\ Script /Users/xxx/Library/Developer/Xcode/DerivedData/Runner-dxgaiocdvdjvonbkpwvrsyrlzgza/Build/Intermediates.noindex/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh (in target 'Runner' from project 'Runner')
    
  ...

    /bin/sh -c /Users/xxx/Library/Developer/Xcode/DerivedData/Runner-dxgaiocdvdjvonbkpwvrsyrlzgza/Build/Intermediates.noindex/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh

Failed to package /Users/xxx/Desktop/WorkSpace/star_fission.
Command PhaseScriptExecution failed with a nonzero exit code

我删除了Podfile.lock、Pods和.xcworkspace,并重新执行了Pod安装,但没有成功。

0md85ypi

0md85ypi1#

你能试试这个吗转到

Keychain Access -> Right-click on login -> Lock & unlock again

Xcode -> Clean Xcode project ->Make build again

相关问题