You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

React Native+Metro编译TypeScript时iOS模拟器报错求助

macOS Ventura 环境下 React Native iOS 调试失败求助

我们在搭载Ventura系统的MacBook上运行React Native应用时,Android模拟器能正常启动运行,但iOS端始终出现调试报错,已经花了3天排查各类可能,至今未解决。

相关代码片段如下:

export const useTranslation = (): TranslationFunction => {
  const translations: TranslationPair[] = useAppSelector(
    state => state.language.translations,
  );

  const translationsMap = useMemo(() => {
    const map = new Map<string, string>();
    for (const pair of translations) {
      map.set(pair.key, pair.value);
    }
    return map;
  }, [translations]);

(附报错截图)

有没有开发者遇到过相同的问题?


内容的提问来源于stack exchange,提问作者8uteo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.09 15:57:05