tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

新项目执行pod install报错 …

xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

➜  ios git:(main) ✗ pod install
Ignoring ffi-1.14.2 because its extensions are not built. Try: gem pristine ffi --version 1.14.2
Auto-linking React Native modules for target `DuoleGameHelper`: RNCAsyncStorage, RNGestureHandler, RNScreens, and react-native-safe-area-context
Framework build type is static library
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
[Codegen] generating an empty RCTThirdPartyFabricComponentsProvider
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
[Codegen] Found FBReactNativeSpec
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
[Codegen] Found rncore
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
[!] Failed to load 'glog' podspec:
[!] Invalid `glog.podspec` file: undefined method `[]' for nil:NilClass.

# from /Users/sunyg/DuoleGameHelper/node_modules/react-native/third-party-podspecs/glog.podspec:38
# -------------------------------------------
# match = xcode_path.match(/Xcode (\d+)\.(\d+)/)
> major_version = match[1].to_i
# minor_version = match[2].to_i
# -------------------------------------------
阅读更多

Failed to clone nvm repo. Please report this!

Linux安装nvm报错,连接GitHub超时 …

root@VM-4-9-debian:~/nvm-0.39.7# ./install.sh
=> Downloading nvm from git to '/root/.nvm'
=> Cloning into '/root/.nvm'...
fatal: unable to access 'https://github.com/nvm-sh/nvm.git/': Failed to connect to github.com port 443 af
ter 129382 ms: Couldn't connect to server
Failed to clone nvm repo. Please report this!
阅读更多

Unable to resolve module `./debugger-ui/debuggerWorker.d9da4ed7` from ``

公司的祖传代码升级,升级完了没法调试了 …

Error: Unable to resolve module `./debugger-ui/debuggerWorker.d9da4ed7` from ``:

None of these files exist:
* debugger-ui/debuggerWorker.d9da4ed7(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
* debugger-ui/debuggerWorker.d9da4ed7/index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
at ModuleResolver.resolveDependency (/Users/sunyg/marineonline-mobile/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15)
at ResolutionRequest.resolveDependency (/Users/sunyg/marineonline-mobile/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency (/Users/sunyg/marineonline-mobile/node_modules/metro/src/node-haste/DependencyGraph.js:282:16)
at /Users/sunyg/marineonline-mobile/node_modules/metro/src/lib/transformHelpers.js:267:42
at /Users/sunyg/marineonline-mobile/node_modules/metro/src/Server.js:1305:37
at Generator.next (<anonymous>)
at asyncGeneratorStep (/Users/sunyg/marineonline-mobile/node_modules/metro/src/Server.js:99:24)
at _next (/Users/sunyg/marineonline-mobile/node_modules/metro/src/Server.js:119:9)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
::ffff:192.168.210.117 - - [18/Jan/2024:03:06:50 +0000] "POST /symbolicate HTTP/1.1" 500 - "-" "okhttp/4.8.1"
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.

他奶奶的我就知道绝对是这个坑货搞的鬼 …

https://github.com/facebook/metro/issues/731

阅读更多

Failed to transform ?.jar/?.aar

> Task :app:desugarDevDebugFileDependencies FAILED
Execution failed for task ':app:desugarDevDebugFileDependencies'.
> Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
> Failed to transform android-sdk-1.2.1.aar (com.paypal.checkout:android-sdk:1.2.1) to match attributes {artifactType=processed-jar, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /Users/sunyg/.gradle/caches/transforms-2/files-2.1/0c7dd15c0f53a65d39de0cadcd9b99fa/android-sdk-1.2.1/jars/classes.jar.
> Failed to transform '/Users/sunyg/.gradle/caches/transforms-2/files-2.1/0c7dd15c0f53a65d39de0cadcd9b99fa/android-sdk-1.2.1/jars/classes.jar' using Jetifier. Reason: null. (Run with --stacktrace for more details.)
> Failed to transform PayPalPartnerAuth-1.8.4.aar (com.paypal.android:PayPalPartnerAuth:1.8.4) to match attributes {artifactType=processed-jar, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /Users/sunyg/.gradle/caches/transforms-2/files-2.1/2af375fc36788e051fa39e778b7da182/PayPalPartnerAuth-1.8.4/jars/classes.jar.
> Failed to transform '/Users/sunyg/.gradle/caches/transforms-2/files-2.1/2af375fc36788e051fa39e778b7da182/PayPalPartnerAuth-1.8.4/jars/classes.jar' using Jetifier. Reason: null. (Run with --stacktrace for more details.)
> Failed to transform auth-sdk-thirdParty-1.4.0.aar (com.paypal.android.platform:auth-sdk-thirdParty:1.4.0) to match attributes {artifactType=processed-jar, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /Users/sunyg/.gradle/caches/transforms-2/files-2.1/fb630df5a6a959d0abfb5e0cef776121/auth-sdk-thirdParty-1.4.0/jars/classes.jar.
> Failed to transform '/Users/sunyg/.gradle/caches/transforms-2/files-2.1/fb630df5a6a959d0abfb5e0cef776121/auth-sdk-thirdParty-1.4.0/jars/classes.jar' using Jetifier. Reason: null. (Run with --stacktrace for more details.)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
阅读更多

More than one file was found with OS independent path 'META-INF/com.android.tools/proguard/coroutines.pro'

* What went wrong:
Execution failed for task ':app:mergeDevDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> More than one file was found with OS independent path 'META-INF/com.android.tools/proguard/coroutines.pro'
阅读更多