Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行 yarn ios 报如下错误 #87

Closed
Kennytian opened this issue Apr 4, 2023 · 2 comments
Closed

运行 yarn ios 报如下错误 #87

Kennytian opened this issue Apr 4, 2023 · 2 comments

Comments

@Kennytian
Copy link

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

请问要怎么解决?

@zhiqingchen
Copy link
Member

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

@Kennytian
Copy link
Author

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

可以运行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants