wuba/taro-playground

运行 yarn ios 报如下错误

Kennytian opened this issue · 2 comments

Error message

xcodebuild[9510:1400671] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:3D28E7C6-28B1-456C-861B-F0FF0C32BF49, OS:16.4, name:iPhone 14 }
{ platform:iOS Simulator, id:3D28E7C6-28B1-456C-861B-F0FF0C32BF49, OS:16.4, name:iPhone 14 }
** BUILD FAILED **


The following build commands failed:
        CompileC /Users/kenny/Library/Developer/Xcode/DerivedData/taroDemo-bhudqnvehprncdezkduoxyigqosy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-Codegen.build/Objects-normal/arm64/FBReactNativeSpec-generated.o
/Users/kenny/taro-playground/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 Native Info

System:
    OS: macOS 13.3
    CPU: (8) arm64 Apple M1
    Memory: 76.19 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.19.0/bin/yarn
    npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    Android SDK:
      API Levels: 25, 28, 29, 30, 31, 32, 33
      Build Tools: 29.0.2, 30.0.3
      System Images: android-31 | Google APIs ARM 64 v8a
      Android NDK: 22.1.7171670
  IDEs:
    Android Studio: 2022.1 AI-221.6008.13.2211.9619390
    Xcode: 14.3/14E222b - /usr/bin/xcodebuild
  Languages:
    Java: 19.0.1 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: ^18.1.0 => 18.2.0 
    react-native: ^0.70.5 => 0.70.7 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

请问要怎么解决?

跑一下生成好的试试 https://github.com/zhiqingchen/taro-test/tree/tests/3.6.1

可以运行