我尝试将 flutter 项目连接到我的 iPhone,但在添加 Google AdMob 后突然出现此错误。我已经尝试过钥匙链解决方案(Xcode中10.2.1命令PhaseScriptExecution失败,一个非零的退出代码)pod deintegrate
,pod clean
,pod install
。我也以各种方式更改了项目配置,但没有用。
Build target Runner
Project Runner | Configuration Debug | Destination Ryan's iPhone | SDK iOS 13.6`
Run custom shell script 'Thin Binary' 0.1 seconds`
Run Code Online (Sandbox Code Playgroud)
building file list ... rsync: link_stat "/Volumes/\#341\#204\#213\#341\#205\#265\#341\#204\#207\#341\#205\#265\#341\#206\#253\#341\#204\#202\#341\#205\#241 01071958737/DEVELOPER/dont_forget/ios/../ios/Flutter/App.framework" failed: No such file or directory (2)
done
sent 29 bytes received 20 bytes 98.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-54.120.1/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
Run Code Online (Sandbox Code Playgroud)
Mik*_*l S 232
CocoaPods 问题。去:/ios/Pods/Target Support Files/Pods/Pods-AppName-frameworks.sh
在文件中替换*-frameworks.sh
:
source="$(readlink "${source}")"
Run Code Online (Sandbox Code Playgroud)
和:
source="$(readlink -f "${source}")"
Run Code Online (Sandbox Code Playgroud)
Bil*_*han 93
我尝试删除派生数据,但它不起作用。(但如果有人可以修复,这是最简单的方法。)
很明显是 Xcode 14.3 中的 cocoa-pods 问题,rsync 错误。
解决方案 :-
源=“$(读链接“$ {源}”)”
源=“$(readlink -f“$ {源}”)”
Nit*_*tin 49
Cocoapods 现在存在问题,因为Xcode 14.3现在在框架的符号链接中使用相对路径。
要么等待 Cocoapods 版本 1.12.1 的发布,要么在Pods-APPNAME-frameworks.sh文件中进行以下简单更改:
完整文件路径/Pods/Target Support Files/Pods-APPNAME/Pods-APPNAME-frameworks.sh
APPNAME是您的应用程序名称
您需要搜索并替换:
if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink "${source}")"
fi
Run Code Online (Sandbox Code Playgroud)
和
if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink -f "${source}")"
fi
Run Code Online (Sandbox Code Playgroud)
请注意,添加了-f 。
Rya*_*ell 22
好吧,你们都听着。
这是由于新的 XCode 14.3 和 Cocoapods 需要更新所致。该更新现已上线,所以...
第一次更新Cocoapods
sudo gem install cocoapods
Run Code Online (Sandbox Code Playgroud)
然后删除Pods文件夹
cd <projectdir>
rm -rf Pods
Run Code Online (Sandbox Code Playgroud)
然后运行 pod install
pod install
Run Code Online (Sandbox Code Playgroud)
快乐的时光。
归档时间: |
|
查看次数: |
3440 次 |
最近记录: |