Joh*_*ana 5 homebrew node.js react-native xcode-cloud
我一直在试图找出为什么这个 xcode 云自定义脚本昨天突然开始对我失败,因为我没有更改任何内容并且它之前一直在工作:
#!/bin/sh
export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
brew install cocoapods
# have to add node yourself
brew install node@16
# link it to the path
brew link node@16
brew install yarn
# Install dependencies you manage with CocoaPods.
yarn
pod install
# the sed command from RN cant find the file... so we have to run it ourselves
sed -i -e $'s/ && (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_0)//' /Volumes/workspace/repository/ios/Pods/RCT-Folly/folly/portability/Time.h
Run Code Online (Sandbox Code Playgroud)
由于某种原因,它开始失败并出现以下错误:
==> Installing node@16 dependency: brotli
==> Pouring brotli--1.0.9.monterey.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/brotli
/usr/local/include is not writable.
You can try again using:
brew link brotli
Run Code Online (Sandbox Code Playgroud)
然后它不断给我同样的错误,它无法链接到其他一些依赖项。
当它尝试运行时yarn我得到这个:
yarn requires a Node installation to function. You can install one with:
brew install node
Run Code Online (Sandbox Code Playgroud)
假设节点安装未成功。
最后是这个:
[in /Volumes/workspace/repository/ios]
[!] Invalid `Podfile` file: cannot load such file -- /Volumes/workspace/repository/node_modules/react-native/scripts/react_native_pods.
# from /Volumes/workspace/repository/ios/Podfile:1
# -------------------------------------------
> require_relative '../node_modules/react-native/scripts/react_native_pods'
# require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
# -------------------------------------------
sed: /Volumes/workspace/repository/ios/Pods/RCT-Folly/folly/portability/Time.h: No such file or directory
Run Code Online (Sandbox Code Playgroud)
编辑
似乎我不是唯一遇到这种情况的人: https://developer.apple.com/forums/thread/712550
这似乎是平台的问题,而不是我的配置的问题。
| 归档时间: |
|
| 查看次数: |
1319 次 |
| 最近记录: |