React Native IOS构建:DVTCoreDeviceEnabledState:通过用户默认设置DVTCoreDeviceEnabledState_Disabled

ecbunoof  于 2023-05-02  发布在  iOS
关注(0)|答案(1)|浏览(710)

嗨,我最近买了一台MacBook M2 Pro,它基于Android构建,但我在iOS上构建React Native时遇到了这个错误。有解决办法吗?

错误

2023-04-16 16:11:02.557 xcodebuild[7974:97685] DVTCoreDeviceEnabledState:通过用户默认设置的DVTCoreDeviceEnabledState_Disabled(DVTEnableCoreDevice=disabled)--- xcodebuild:警告:使用多个匹配目标中的第一个:{平台:iOS模拟器,id:D9 F3 FC26-B488- 469 A-A928-A8511 F2 FDAC 0,0 S:16.4,名称:iPhone 13 } {平台:iOS模拟器,ID:D9 F3 FC26-B488- 469 A-A928-A8511 F2 FDAC 0,OS:16.4,名称:iPhone 13 }构建失败
以下生成命令失败:CompileC /Users/abel/Library/Developer/Xcode/DerivedData/SampleProject-dkxmrcwvisfquleuhrctlqklsdvb/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Yoga.build/Objects-normal/arm64/Yoga.o /Users/abel/Desktop/SampleProject/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0。compiler(in target 'Yoga' from project 'Pods')(1 failure)
info使用--verbose标志运行CLI以了解更多详细信息。error命令失败,退出代码为% 1。

npx react-native信息

系统:操作系统:macOS 13.3.1 CPU:(10)arm 64 Apple M2 Pro内存:167.09 MB / 16.00 GB shell :5.9 - /bin/zsh二进制文件:节点:16.19。1 - ~/.nvm/versions/node/v16。19.1/bin/nodeYarn:1.22.19 - /opt/homebrew/bin/yarn npm:8.19.3 - ~/。nvm/versions/node/v16。19.1/bin/npm Watchman:2023.04.10.00 - /opt/homebrew/bin/watchman管理员:CocoaPods:1.10.0 - /Users/abel/.rbenv/shims/pod SDK:iOS SDK:平台:22.第二十二章4、iOS 16.4、macOS 13。3、tvOS 16.4、watchOS 9.4 Android SDK:未找到IDE:Android Studio:2022.1 AI-221。6008.13.2211.9619390 Xcode:14.3/14 E222 b- /usr/bin/xcodebuild语言:Java:11.0。18 - /usr/bin/javac npmPackages:@react-native-community/cli:未找到React:17.0.2 =〉17。0.2 react-native:0.68.2 =〉0。68.2 react-native-macos:404 Not Found Not Foundreact-native:未找到
你最近把cocoapod的评级从1下调了。20比1.10

dhxwm5r4

dhxwm5r41#

我也问过同样的问题,这是我的系统规格。这里是我的问题的链接!React native ios build failed showing multiple instances of the same simulator and same UDID, "com.apple.compilers.llvm.clang.1_0.compiler" flagged

有人建议将XCode从14降级。3到14.2,我的方法是从网站下载,而不是从www. example获得 www.example.com

相关问题