Giter Site home page Giter Site logo

leotm / react-native-template-new-architecture Goto Github PK

View Code? Open in Web Editor NEW
234.0 4.0 27.0 4.29 GB

React Native 0.71.12 ⚡ M1, Ubuntu 💻 Hermes ⚙️ Fabric 🚅 Turbo Modules 💨 TypeScript 5 ✅ Gradle 7.6, JDK 19, NDK 25 🍎 Xcode 15b, Sonoma 14b, Ruby 3 💎 Bison 2.3 🦬 ccache ♻️ Yarn 4rc 📦 ESLint 🧹 Prettier ✨ SES, LavaMoat, Buck2 🚧 Babel 🗼 GitHub Actions ✔️ Node 19 ⬢ Storybook 6.5rc 📓 libs 📚 for curious early adopters :suspect: #RNEU #APPJS

Home Page: https://reactnative.dev/blog/2022/06/16/resources-migrating-your-react-native-library-to-the-new-architecture#migration-status-of-popular-libraries

JavaScript 35.57% TypeScript 22.24% Starlark 1.76% Java 21.42% Ruby 9.37% C 0.30% Objective-C 6.06% Objective-C++ 3.29%
react-native typescript eslint prettier storybook m1 arm64 android ios gradle

react-native-template-new-architecture's Introduction

React Native Template / Boilerplate

Bleeding 🔪 Edge 🌉 Nightlymare 🌃 Edition

““”̿ ̿ ̿ ̿ ̿’̿’̵͇̿̿з=(*▽*)=ε/̵͇̿̿/̿ ̿ ̿ ̿ ̿’““
IDKFA

NPM RN pkg ver TypeScript Linter Formatter: prettier CI Maintenance Docs Project

Android iOS
Android iOS

Setup

Fresh M1/M2

Yarn v4

Upgrading from v1 classic or v3 latest / berry / stable

cd ~
yarn set version canary

Clear generated files

Install

yarn # 🍺 version
yarn setup # 🤖 versioned version

Start

yarn start

Silicon (M1/M2) Macs

iOS (arm64)

cd ios
pod install
..
yarn ios

Old Rosetta 2 Intel x86_64 way

Android

NDK

Old manual setup

Building-from-source#prerequisites, but with NDK 25.0.8775105

# android/local.properties
sdk.dir=/Users/<user>/Library/Android/sdk
ndk.dir=/Users/<user>/Library/Android/sdk/ndk/25.0.8775105

Strip: rcX suffix / (trailing) spaces / final final linebreak - otherwise fcntl(): Bad file descriptor

Fat M1 components: ndk-build, LLVM, CMake, Make, Python, Ninja, shader-tools, simpleperf - yasm remaining

Android Studio

Old manual setup

Open Android Studio - Preview release - Canary build

Run

yarn android

Troubleshooting

Storybook v6

Add stories to src/components/**/*.stories.(ts|tsx)

Keep in sync with .storybook and storybook_server /main.js

yarn get-stories
yarn storybook-server # optional

export default App // Or StorybookUIRoot

Old v5 setup

# @storybook/react-native-server v5
yarn storybook
yarn <android/ios>

Node

With ts-node and curveball

yarn server

Deno

brew install deno
yarn deno

License: MIT

react-native-template-new-architecture's People

Contributors

dependabot[bot] avatar leotm avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-template-new-architecture's Issues

Android release requires 2nd build

After

  • git clean -fdx
  • android/local.properties
  • JDK 18
  • build debug
  • clean?
  • build release
Re-test for log

Could be hermes

Only macOS, not Ubuntu CI

java.io.IOException: No space left on device

Could not add entry ':ReactAndroid:hermes-engine:bundleReleaseAar' to cache executionHistory.bin (/home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/android/.gradle/7.4.2/executionHistory/executionHistory.bin).
> java.io.IOException: No space left on device
  • hermes-only unlikely
  • ./gradlew clean post-debug, or manual rm -rf ...

Seems GitHub Actions free tier can't consistently handle Android Debug build followed by Release build

FATAL EXCEPTION: create_react_context java.lang.RuntimeException

Context

  • #709 (Android part)

  • AGP 7.4.0-alpha03 (🔥) Gradle 7.4.2 (main)
    • JDK 11/18 Azul: debug - build ✔️ runtime ✔️
    • JDK 11/18 Azul: release - build ✔️ runtime ❌ (java.lang.RuntimeException)
      • downgrade AGP 7.4.0-alpha03
  • AGP 7.2.0 (main) Gradle 7.4.2 (main)
    • JDK 11 Azul: debug/release build/runtime ✔️
    • JDK 18 Azul: debug - build ✔️ runtime ❌(java.lang.OutOfMemoryError)
      • downgrade JDK 18
    • JDK 18 Azul: release - build ✔️ runtime ✔️
    • JDK 17 Azul: debug - build ✔️ runtime ✔️
    • JDK 17 Azul: release - build ✔️ runtime ✔️
      • JDK 17 seems fine
  • AGP 7.1.1 (template/blog)

Gradle 7.2 -> 7.3.3 since 0.67.4+

All JDK's aarch64: azul-11.0.14.1, azul-17.0.3, azul-18

⚠️ Watchman brew cask causes Metro recrawls

https://reactnative.dev/docs/environment-setup macOS > iOS

# brew install node
brew install watchman
yarn start --reset-cache
watchman warning:  Recrawled this watch 11 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/leo/Documents/GitHub/RN069RC6' ; watchman watch-project '/Users/leo/Documents/GitHub/RN069RC6'`

Recrawled this watch 11 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/leo/Documents/GitHub/RN069RC6' ; watchman watch-project '/Users/leo/Documents/GitHub/RN069RC6'`
brew remove watchman
yarn start --reset-cache

Fixed

Android Studio Electric Eel | 2022.1.1 Canary 3+ incompatible w AGP 7.4.0-alpha03+

Latest supported version is AGP 7.4.0-alpha02, downgrade later

The project is using an incompatible version (AGP 7.4.0-alpha03) of the Android Gradle plugin. Latest supported version is AGP 7.4.0-alpha02 at:
com.android.tools.idea.gradle.project.sync.AndroidExtraModelProviderWorker.checkAgpVersionCompatibility(AndroidExtraModelProviderWorker.kt:624)
  com.android.tools.idea.gradle.project.sync.AndroidExtraModelProviderWorker.access$checkAgpVersionCompatibility(AndroidExtraModelProviderWorker.kt:62)
  com.android.tools.idea.gradle.project.sync.AndroidExtraModelProviderWorker$getBasicIncompleteGradleModules$1$1.invoke(AndroidExtraModelProviderWorker.kt:603)
  com.android.tools.idea.gradle.project.sync.AndroidExtraModelProviderWorker$getBasicIncompleteGradleModules$1$1.invoke(AndroidExtraModelProviderWorker.kt:598)
  com.android.tools.idea.gradle.project.sync.ActionToRun.run$intellij_android_projectSystem_gradle_sync(SyncActionRunner.kt:74)
  com.android.tools.idea.gradle.project.sync.SyncActionRunner$runActions$2$1.invoke(SyncActionRunner.kt:220)
  com.android.tools.idea.gradle.project.sync.SyncActionRunner$runActions$2$1.invoke(SyncActionRunner.kt:220)
  com.android.tools.idea.gradle.project.sync.SyncActionRunner.runAction(SyncActionRunner.kt:226)
  com.android.tools.idea.gradle.project.sync.SyncActionRunner.runActions(SyncActionRunner.kt:220)
  com.android.tools.idea.gradle.project.sync.AndroidExtraModelProviderWorker.getBasicIncompleteGradleModules(AndroidExtraModelProviderWorker.kt:596)
  com.android.tools.idea.gradle.project.sync.AndroidExtraModelProviderWorker.populateBuildModels(AndroidExtraModelProviderWorker.kt:78)
  com.android.tools.idea.gradle.project.sync.AndroidExtraModelProvider.populateBuildModels(AndroidExtraModelProvider.kt:58)
  org.jetbrains.plugins.gradle.model.ProjectImportAction.addBuildModels(ProjectImportAction.java:334)
  org.jetbrains.plugins.gradle.model.ProjectImportAction.access$500(ProjectImportAction.java:42)
  org.jetbrains.plugins.gradle.model.ProjectImportAction$1.accept(ProjectImportAction.java:137)
  org.jetbrains.plugins.gradle.model.ProjectImportAction.forEachNestedBuild(ProjectImportAction.java:192)
  org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:130)
  org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:42)
  org.gradle.tooling.internal.consumer.connection.InternalBuildActionAdapter.execute(InternalBuildActionAdapter.java:64)
  org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.runAction(AbstractClientProvidedBuildActionRunner.java:131)
  org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.fromBuildModel(AbstractClientProvidedBuildActionRunner.java:104)
  org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.fromBuildModel(AbstractClientProvidedBuildActionRunner.java:84)
  org.gradle.internal.buildtree.DefaultBuildTreeModelCreator.fromBuildModel(DefaultBuildTreeModelCreator.java:57)
  org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$fromBuildModel$1(DefaultBuildTreeLifecycleController.java:82)
  org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$runBuild$4(DefaultBuildTreeLifecycleController.java:106)
  org.gradle.internal.model.StateTransitionController.lambda$transition$6(StateTransitionController.java:166)
  org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:238)
  org.gradle.internal.model.StateTransitionController.lambda$transition$7(StateTransitionController.java:166)
  org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:44)
  org.gradle.internal.model.StateTransitionController.transition(StateTransitionController.java:166)
  org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.runBuild(DefaultBuildTreeLifecycleController.java:103)
  org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.fromBuildModel(DefaultBuildTreeLifecycleController.java:74)
  org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner.runClientAction(AbstractClientProvidedBuildActionRunner.java:43)
  org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner.run(ClientProvidedPhasedActionRunner.java:53)
  org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
  org.gradle.internal.buildtree.ProblemReportingBuildActionRunner.run(ProblemReportingBuildActionRunner.java:49)
  org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:69)
  org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run(FileSystemWatchingBuildActionRunner.java:119)
  org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:41)
  org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.lambda$execute$0(RootBuildLifecycleBuildActionExecutor.java:40)
  org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:128)
  org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.execute(RootBuildLifecycleBuildActionExecutor.java:40)
  org.gradle.internal.buildtree.DefaultBuildTreeContext.execute(DefaultBuildTreeContext.java:40)
  org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.lambda$execute$0(BuildTreeLifecycleBuildActionExecutor.java:65)
  org.gradle.internal.buildtree.BuildTreeState.run(BuildTreeState.java:53)
  org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.execute(BuildTreeLifecycleBuildActionExecutor.java:65)
  org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:61)
  org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:57)
  org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
  org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
  org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
  org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
  org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
  org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
  org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
  org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
  org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor.execute(RunAsBuildOperationBuildActionExecutor.java:57)
  org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.lambda$execute$0(RunAsWorkerThreadBuildActionExecutor.java:36)
  org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:270)
  org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:119)
  org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.execute(RunAsWorkerThreadBuildActionExecutor.java:36)
  org.gradle.tooling.internal.provider.ContinuousBuildActionExecutor.execute(ContinuousBuildActionExecutor.java:103)
  org.gradle.tooling.internal.provider.SubscribableBuildActionExecutor.execute(SubscribableBuildActionExecutor.java:64)
  org.gradle.internal.session.DefaultBuildSessionContext.execute(DefaultBuildSessionContext.java:46)
  org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:100)
  org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:88)
  org.gradle.internal.session.BuildSessionState.run(BuildSessionState.java:69)
  org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:62)
  org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:41)
  org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:63)
  org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
  org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:58)
  org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:42)
  org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:47)
  org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:31)
  org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:65)
  org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
  org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
  org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
  org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
  org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:29)
  org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
  org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
  org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
  org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)
  org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)
  org.gradle.util.internal.Swapper.swap(Swapper.java:38)
  org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)
  org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
  org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
  org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
  org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)
  org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
  org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
  org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:84)
  org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
  org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
  org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
  org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
  org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
  org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
  java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  java.base/java.lang.Thread.run(Thread.java:829)

Xcode 14.0 beta 3 w brew

# brew upgrade
2022-07-08 18:38:59.489 xcodebuild[14630:197611] [MT] DVTSDK: Warning: SDK path collision for path '<DVTFilePath:0x6000018698f0:'/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk'>': SDK with name 'macosx13.0' being superseded by SDK with 'macosx13.0'.
2022-07-08 18:38:59.694 xcodebuild[14630:197611] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDESimulatorAvailability (/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}, dyldError = dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0000): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'
2022-07-08 18:38:59.694 xcodebuild[14630:197611] [MT] DVTPlugInExtensionFaulting: Failed to fire fault for extension IDESimulatorAvailability.plugindata/plug-in[1]/extension[1]: Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.IDESimulatorAvailability, DVTPlugInExecutablePathErrorKey=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0000): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedFailureReason=The plug-in “com.apple.dt.IDESimulatorAvailability” at path “/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin” could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x600003f74030 {Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}}}
2022-07-08 18:38:59.695 xcodebuild[14630:197611] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error getting value for key 'initializationClass' of extension 'IDESimulatorAvailability.plugindata/plug-in[1]/extension[1]' in plug-in 'com.apple.dt.IDESimulatorAvailability': Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.IDESimulatorAvailability, DVTPlugInExecutablePathErrorKey=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0000): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedFailureReason=The plug-in “com.apple.dt.IDESimulatorAvailability” at path “/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin” could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x600003f74030 {Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}}}'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001a76151a8 __exceptionPreprocess + 240
	1   libobjc.A.dylib                     0x00000001a735fe04 objc_exception_throw + 60
	2   DVTFoundation                       0x000000010227dcc8 -[DVTExtension valueForKey:error:] + 0
	3   IDEFoundation                       0x00000001033280c8 _IDEInitializeOnePlugInAndPrerequisites + 612
	4   IDEFoundation                       0x00000001033278bc _IDEInitializePlugIns + 788
	5   IDEFoundation                       0x0000000103326fc4 IDEInitialize + 6296
	6   Xcode3Core                          0x0000000100cebb20 -[Xcode3CommandLineBuildTool run] + 1112
	7   libxcodebuildLoader.dylib           0x0000000100a7e14c XcodeBuildMain + 960
	8   dyld                                0x000000010089108c start + 520
)
** INTERNAL ERROR: Uncaught exception **
Uncaught Exception: Error getting value for key 'initializationClass' of extension 'IDESimulatorAvailability.plugindata/plug-in[1]/extension[1]' in plug-in 'com.apple.dt.IDESimulatorAvailability': Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.IDESimulatorAvailability, DVTPlugInExecutablePathErrorKey=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0000): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedFailureReason=The plug-in “com.apple.dt.IDESimulatorAvailability” at path “/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin” could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x600003f74030 {Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}}}
Stack:
  0  0x00000001a7615194
  1  0x00000001a735fe04
  2  0x000000010227dcc8
  3  0x00000001033280c8
  4  0x00000001033278bc
  5  0x0000000103326fc4
  6  0x0000000100cebb20
  7  0x0000000100a7e14c

sh: line 1: 14632 Abort trap: 6           /Applications/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null
clang: error: sh -c '/Applications/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null' failed with exit code 34304: (null) (errno=Invalid argument)
xcode-select: Failed to locate 'clang', requesting installation of command line developer tools.
2022-07-08 18:39:02.205 xcodebuild[14768:197962] [MT] DVTSDK: Warning: SDK path collision for path '<DVTFilePath:0x6000038a99d0:'/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk'>': SDK with name 'macosx13.0' being superseded by SDK with 'macosx13.0'.
2022-07-08 18:39:02.408 xcodebuild[14768:197962] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDESimulatorAvailability (/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}, dyldError = dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0000): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'
2022-07-08 18:39:02.409 xcodebuild[14768:197962] [MT] DVTPlugInExtensionFaulting: Failed to fire fault for extension IDESimulatorAvailability.plugindata/plug-in[1]/extension[1]: Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.IDESimulatorAvailability, DVTPlugInExecutablePathErrorKey=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0000): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedFailureReason=The plug-in “com.apple.dt.IDESimulatorAvailability” at path “/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin” could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x600001faff00 {Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}}}
2022-07-08 18:39:02.409 xcodebuild[14768:197962] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error getting value for key 'initializationClass' of extension 'IDESimulatorAvailability.plugindata/plug-in[1]/extension[1]' in plug-in 'com.apple.dt.IDESimulatorAvailability': Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.IDESimulatorAvailability, DVTPlugInExecutablePathErrorKey=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0000): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedFailureReason=The plug-in “com.apple.dt.IDESimulatorAvailability” at path “/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin” could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x600001faff00 {Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}}}'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001a76151a8 __exceptionPreprocess + 240
	1   libobjc.A.dylib                     0x00000001a735fe04 objc_exception_throw + 60
	2   DVTFoundation                       0x0000000103ebdcc8 -[DVTExtension valueForKey:error:] + 0
	3   IDEFoundation                       0x0000000104f680c8 _IDEInitializeOnePlugInAndPrerequisites + 612
	4   IDEFoundation                       0x0000000104f678bc _IDEInitializePlugIns + 788
	5   IDEFoundation                       0x0000000104f66fc4 IDEInitialize + 6296
	6   Xcode3Core                          0x000000010292bb20 -[Xcode3CommandLineBuildTool run] + 1112
	7   libxcodebuildLoader.dylib           0x000000010258214c XcodeBuildMain + 960
	8   dyld                                0x000000010262108c start + 520
)
** INTERNAL ERROR: Uncaught exception **
Uncaught Exception: Error getting value for key 'initializationClass' of extension 'IDESimulatorAvailability.plugindata/plug-in[1]/extension[1]' in plug-in 'com.apple.dt.IDESimulatorAvailability': Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.IDESimulatorAvailability, DVTPlugInExecutablePathErrorKey=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0000): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedFailureReason=The plug-in “com.apple.dt.IDESimulatorAvailability” at path “/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin” could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x600001faff00 {Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimSelectedRuntimePolicyResult)
  Referenced from: '/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
  Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}}}
Stack:
  0  0x00000001a7615194
  1  0x00000001a735fe04
  2  0x0000000103ebdcc8
  3  0x0000000104f680c8
  4  0x0000000104f678bc
  5  0x0000000104f66fc4
  6  0x000000010292bb20
  7  0x000000010258214c

sh: line 1: 14770 Abort trap: 6           /Applications/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null
clang: error: sh -c '/Applications/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null' failed with exit code 34304: (null) (errno=Invalid argument)
xcode-select: Failed to locate 'clang', requesting installation of command line developer tools.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error: expecting end of expression or separator near "] "time

React Native is not compatible with JDK 18

Context

tl;dr: RN 0.68+ JDK 18 new arch Android debug-mode java.lang.OutOfMemoryError

Gradle 7.4.2 -> 7.5-rc-3 (for JDK 18 support) no bueno


RN 0.69.1, AGP 7.2.1, Gradle 7.4.2

  • azul-18 aarch64 ✔️
  • non-zulu (openjdk-18 aarch64) ✔️
  • non-aarch64 (rip speeds, ccache pls rescue) ❌/✔️

RN 0.69.1, AGP 7.2.0, Gradle 7.4.2

  • azul-18 aarch64 ❌
  • non-zulu (openjdk-18/temurin-18 aarch64) ❌
  • non-aarch64 (azul-18.0.1 aarch32) ❌/✔️

heapdump (Flipper / Android Studio - Metro connection shouldn't matter yet)

buildtools 31.0.0 -> 33.0.0 related?

Gradle 7.6 nightly Release CPU/Memory leak

  • Since #620 only tested locally on macOS 12.4 (no GA matrix setup yet)
Unhandled exception. System.IO.IOException: No space left on device : '/home/runner/runners/2.291.1/_diag/Worker_20220514-152559-utc.log'

Error: The job running on runner GitHub Actions 2/3 has exceeded the maximum execution time of 360 minutes.
Warning: Runner GitHub Actions 2/3 did not respond to a cancelation request with 00:05:00.
Warning: You are running out of disk space. The runner will stop working when the machine runs out of disk space. Free space left: 0 MB

Error:  An error occurred while provisioning resources (Error Type: Failure).
Error: The hosted runner: GitHub Actions 2 lost communication with the server. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.
Warning: The hosted runner: GitHub Actions 2 lost communication with the server. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.

Error: https://github.com/leotm/react-native-template-new-architecture/actions/runs/2334377615
Warning: https://github.com/leotm/react-native-template-new-architecture/actions/runs/2334377615
Warning: You are running out of disk space. The runner will stop working when the machine runs out of disk space. Free space left: 64 MB

Error: An error occurred while provisioning resources (Error Type: Failure).
Error: The hosted runner: GitHub Actions 2 lost communication with the server. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.
Warning: Received request to deprovision: The request was cancelled by the remote provider.

https://issuetracker.google.com/issues?q=status:open%20componentid:826777&s=created_time:desc

You do not have permission to create issues in this component.

https://developers.google.com/issue-tracker/guides/create-issue-ui

You also must have Create Issue or Admin permissions for the component where the issue will be created

:/


Could be fixed by

Draft PR trying latest gradle.org/nightly (w current gradle-build-action)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

bundler
Gemfile
  • ruby 3.1.2
  • cocoapods '~> 1.11', '>= 1.11.2'
cocoapods
ios/Podfile
github-actions
.github/workflows/android.yml
  • actions/checkout v3
  • gradle/gradle-build-action v2.3.3
  • gradle/gradle-build-action v2.3.3
  • gradle/gradle-build-action v2.3.3
.github/workflows/codeql-analysis.yml
  • actions/checkout v3
  • github/codeql-action v2
  • github/codeql-action v2
  • github/codeql-action v2
.github/workflows/ios.yml
  • actions/checkout v3
.github/workflows/main.yml
  • actions/checkout v3
gradle
android/gradle.properties
  • com.facebook.flipper:flipper 0.173.0
  • com.facebook.flipper:flipper-network-plugin 0.173.0
  • com.facebook.flipper:flipper-fresco-plugin 0.173.0
android/settings.gradle
android/build.gradle
  • com.android.tools.build:gradle 7.2.2
  • de.undercouch:gradle-download-task 5.3.0
android/app/build.gradle
  • org.webkit:android-jsc +
  • com.facebook.react:react-native +
  • androidx.swiperefreshlayout:swiperefreshlayout 1.1.0
  • com.facebook.react:hermes-engine +
gradle-wrapper
android/gradle/wrapper/gradle-wrapper.properties
  • gradle 7.6-rc-1
npm
package.json
  • @react-native-async-storage/async-storage 1.17.10
  • @react-native-community/checkbox 0.5.12
  • @react-native-community/datetimepicker 6.3.5
  • @react-native-community/slider 4.3.2
  • @react-navigation/native 6.0.13
  • @react-navigation/native-stack 6.9.1
  • @tanstack/react-query 4.14.1
  • react 18.2.0
  • react-native 0.70.5
  • react-native-codegen 0.71.2
  • react-native-gesture-handler 2.8.0
  • react-native-reanimated 3.0.0-rc.4
  • react-native-safe-area-context 4.4.1
  • react-native-screens 3.18.2
  • @babel/core 7.19.6
  • @babel/preset-react 7.18.6
  • @babel/runtime 7.20.1
  • @curveball/core 0.20.0
  • @curveball/router 0.5.0
  • @react-native-community/cli 9.2.1
  • @react-native-community/eslint-config 3.1.0
  • @storybook/addon-actions 6.5.13
  • @storybook/addon-controls 6.5.13
  • @storybook/addon-knobs 6.4.0
  • @storybook/addon-links 6.5.13
  • @storybook/addon-ondevice-actions 6.0.1-canary.3
  • @storybook/addon-ondevice-backgrounds 6.0.1-canary.3
  • @storybook/addon-ondevice-controls 6.0.1-canary.3
  • @storybook/addon-ondevice-notes 6.0.1-canary.3
  • @storybook/addons 6.5.13
  • @storybook/eslint-config-storybook 3.1.2
  • @storybook/linter-config 3.1.2
  • @storybook/react-native 6.0.1-canary.3
  • @swc/core 1.3.14
  • @swc/wasm 1.3.14
  • @types/jest 29.2.1
  • @types/node 18.11.9
  • @types/react 18.0.25
  • @types/react-native 0.70.6
  • @types/react-test-renderer 18.0.0
  • @types/ws 8.5.3
  • @typescript-eslint/eslint-plugin 5.42.0
  • @typescript-eslint/parser 5.42.0
  • babel-jest 29.2.2
  • babel-loader 9.0.1
  • babel-plugin-transform-inline-environment-variables 0.4.4
  • eslint 8.26.0
  • eslint-config-airbnb-typescript 17.0.0
  • eslint-config-airbnb-typescript-prettier 5.0.0
  • eslint-config-react-native-typescript 2.2.6
  • eslint-plugin-communist-spelling 1.0.0
  • eslint-plugin-deprecation 1.3.2
  • eslint-plugin-detox 1.0.0
  • eslint-plugin-import 2.26.0
  • eslint-plugin-jest 27.1.3
  • eslint-plugin-jsx-a11y 6.6.1
  • eslint-plugin-react 7.31.10
  • eslint-plugin-react-hooks 4.6.0
  • eslint-plugin-react-native 4.0.0
  • eslint-plugin-simple-import-sort 8.0.0
  • eslint-plugin-sort-keys-fix 1.1.2
  • eslint-plugin-typescript-sort-keys 2.1.0
  • eslint-plugin-yml 1.2.0
  • flipper-server 0.162.0
  • husky 8.0.1
  • jest 29.2.2
  • lint-staged 13.0.3
  • metro-react-native-babel-preset 0.73.3
  • prettier 2.7.1
  • react-codemod 5.4.3
  • react-dom 18.2.0
  • react-native-clean-project 4.0.1
  • react-native-gradle-plugin 0.70.3
  • react-native-rename 2.9.0
  • react-test-renderer 18.2.0
  • reactotron-react-native 5.0.3
  • ts-node 10.9.1
  • typescript 4.9.1-beta
  • yarn 3.2.4
ruby-version
.ruby-version
  • ruby 3.1.2

  • Check this box to trigger a request for Renovate to run again on this repository

AGP 7.4.0-alpha03 release and JDK 18 debug runtime crashes

Android (resolved)

  • AGP 7.4.0-alpha03 (🔥) Gradle 7.4.2 (main)
    • JDK 11/18 Azul: debug - build ✔️ runtime ✔️
    • JDK 11/18 Azul: release - build ✔️ runtime ❌ (java.lang.RuntimeException)
      • downgrade AGP 7.4.0-alpha03
  • AGP 7.2.0 (main) Gradle 7.4.2 (main)
    • JDK 11 Azul: debug/release build/runtime ✔️
    • JDK 18 Azul: debug - build ✔️ runtime ❌(java.lang.OutOfMemoryError)
      • downgrade JDK 18
    • JDK 18 Azul: release - build ✔️ runtime ✔️
    • JDK 17 Azul: debug - build ✔️ runtime ✔️
    • JDK 17 Azul: release - build ✔️ runtime ✔️
      • JDK 17 seems fine
  • AGP 7.1.1 (template/blog)

Gradle 7.2 -> 7.3.3 since 0.67.4+

All JDK's aarch64: azul-11.0.14.1, azul-17.0.3, azul-18

Testing supplement to

ubuntu 22.04 NDK_PROJECT_PATH=null

Android NDK: Aborting

C/C++: /data/adt/ndk/21.4.7075529/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.
[CXX1405] error when building with ndkBuild using /data/rnnew/android/app/src/main/jni/Android.mk: Build command failed.
Error while executing process /data/adt/ndk/21.4.7075529/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/data/rnnew/android/app/src/main/jni/Android.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 NDK_OUT=/data/rnnew/android/app/build/intermediates/cxx/Debug/72b4v95a/obj NDK_LIBS_OUT=/data/rnnew/android/app/build/intermediates/cxx/Debug/72b4v95a/lib APP_CFLAGS+=-Wall APP_CFLAGS+=-Werror APP_CFLAGS+=-fexceptions APP_CFLAGS+=-frtti APP_CFLAGS+=-DWITH_INSPECTOR=1 APP_CPPFLAGS+=-std=c++17 APP_PLATFORM=android-21 APP_STL=c++_shared NDK_TOOLCHAIN_VERSION=clang GENERATED_SRC_DIR=/data/rnnew/android/app/build/generated/source PROJECT_BUILD_DIR=/data/rnnew/android/app/build REACT_ANDROID_DIR=/data/rnnew/android/../node_modules/react-native/ReactAndroid REACT_ANDROID_BUILD_DIR=/data/rnnew/android/../node_modules/react-native/ReactAndroid/build NODE_MODULES_DIR=/data/rnnew/android/../node_modules APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
Android NDK: ERROR:/data/rnnew/android/app/src/main/jni/Android.mk:fb: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that /data/rnnew/android/app/build/react-ndk/exported/x86/libfb.so exists or that its path is correct

/data/adt/ndk/21.4.7075529/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.

[experimental codegen] Only hermes-engine pod outdated per RN upg

tl;dr pod install fails each RN upg from OOD Hermes


Example

# ...
[Codegen] Done.
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
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`
Fetching podspec for `hermes-engine` from `../node_modules/react-native/sdks/hermes/hermes-engine.podspec`

Adding spec repo `trunk` with CDN `[https://cdn.cocoapods.org/`](https://cdn.cocoapods.org/%60)
[!] [Codegen] warn: using experimental new codegen integration
[!] CocoaPods could not find compatible versions for pod "hermes-engine":
  In snapshot (Podfile.lock):

    hermes-engine (from `../node_modules/react-native/sdks/hermes/hermes-engine.podspec`)
[!] [Deprecated] You are using the old `libraries` array to list all your codegen.\nThis method will be removed in the future.\nUpdate your `package.json` with a single object.

  In Podfile:
    hermes-engine (from `../node_modules/react-native/sdks/hermes/hermes-engine.podspec`)

It seems like you've changed the version of the dependency `hermes-engine` and it differs from the version stored in `Pods/Local Podspecs`.
You should run `pod update hermes-engine --no-repo-update` to apply changes made locally.
Error: Process completed with exit code 1.

pod update hermes-engine --no-repo-update shouldn't be required each time, jus like other pods don't

pos regression from bundled hermes?

will this fix? or is this where to fix itit via Yarn v3 patch?


Happening again

pod install forgets to update - hermes-engine (0.70.0-rc.2) to - hermes-engine (0.70.0-rc.3)

Fix RN w Storybook v6a and upg to v6b

Context

Fix runtime error (crash)

Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'., js engine: hermes
hot-reload App -> StorybookUIRoot

Simulator Screen Shot - iPhone 13 - 2022-07-11 at 14 14 45

// TODO: Fix Storybook v6.0.1-alpha.7 crash and upgrade to v6.0.1-beta.6

storybook 6.3.1, 6.0.1-beta.6
https://github.com/storybookjs/react-native/blob/next-6.0/examples/native

storybook 6.3, addons 6.0.1-beta.5
https://github.com/dannyhw/react-native-storybook-starter

may need to downgrade current @next devdep addons from 6.5.x

Enable TurboModule only once

RCTAppSetupPrepareApp calls RCTEnableTurboModule if RCT_NEW_ARCH_ENABLED

Warning should be traceable in Xcode

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.