FBSDK和pod:命令PhaseScriptExecution失败,退出代码为非零

时间:2019-03-31 23:52:02

标签: ios swift xcode dyld

这是安装podFBSDK后收到的错误的详细信息。

mkdir -p /Users/test/Library/Developer/Xcode/DerivedData/testprg- 
dslznrhetlhbmagubrsifwixyqfj/Build/Products/Debug- 
iphonesimulator/testprg.app/Frameworks
rsync --delete -av --filter P .*.?????? --filter "- CVS/" --filter "- 
.svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" -- 
filter "- PrivateHeaders" --filter "- Modules" 
"/Users/test/Library/Developer/Xcode/DerivedData/testprg- 
dslznrhetlhbmagubrsifwixyqfj/Build/Products/Debug 
iphonesimulator/Bolts/Bolts.framework" 
"/Users/test/Library/Developer/Xcode/DerivedData/testprg- 
dslznrhetlhbmagubrsifwixyqfj/Build/Products/Debug- 
iphonesimulator/testprg.app/Frameworks"
building file list ... done
Bolts.framework/
Bolts.framework/Bolts
Bolts.framework/Info.plist
Bolts.framework/_CodeSignature/
Bolts.framework/_CodeSignature/CodeResources

sent 269308 bytes  received 98 bytes  538812.00 bytes/sec
total size is 268944  speedup is 1.00
dyld: Library not loaded: 
/usr/local/opt/readline/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/awk
Reason: image not found
Command PhaseScriptExecution failed with a nonzero exit code

有人想过为什么会这样吗?我尝试清洁DerivedDataclearing the build。另外,我打开了xcworkspace文件来进行构建和运行,但是没有运气:|

1 个答案:

答案 0 :(得分:2)

问题与swift或xcode无关,也与FBSDK无关。它与Mac上的readline和gawk版本有关。重新安装并解决了这些问题。

brew uninstall gawk
brew uninstall readline
brew install readline
brew install gawk

希望这个答案可以帮助其他人。