React 本机 ios 构建失败,显示同一模拟器和相同 UDID 的多个实例,"com.apple.compilers.llvm.clang.1_0.compiler"标记


2023-04-10 12:54:39.743 xcodebuild[37229:209830] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:F74E3465-A58E-4B17-BF2B-1CB79F225F2F, OS:16.4, name:iPhone 14 }
{ platform:iOS Simulator, id:F74E3465-A58E-4B17-BF2B-1CB79F225F2F, OS:16.4, name:iPhone 14 }
** BUILD FAILED **

The following build commands failed:
CompileC /Users/devansh/Library/Developer/Xcode/DerivedData/RN_App-eibylxcwymbqneczxtsodzlvaqxg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-Codegen.build/Objects-normal/arm64/FBReactNativeSpec-generated.o /Users/devansh/Desktop/rn-temp-engin2.0/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec-generated.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-Codegen' from project 'Pods')
(1 failure)

当尝试在React原生项目中构建ios项目时,我遇到了这个错误。我已经卸载并重新安装了XCode_14.3,按照命令清除npm缓存,删除pod,清除XCode的Derived_Data,甚至删除了突出显示的设备,但是这个错误显示在xcrun simctl list devices显示的列表中的每个下一个设备。

我将xcode降级为14.2,所以它可以正常工作

相关内容

  • 没有找到相关文章

最新更新