我将操作系统 12.3 更新到 13.1,将 xcode 13.1 更新到 14.1 并安装了命令行工具,通过 xcode 运行本机应用程序,但不使用命令行运行,出现以下错误
2022-12-13 16:36:47.584 xcodebuild[3616:20381] Writing error result bundle to /var/folders/zn/6l6295m57kb3vn_8pyn8xtbr0000gn/T/ResultBundle_2022-13-12_16-36-0047.xcresult
xcodebuild: error: SDK "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk" cannot be located.
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk' (errno=No such file or directory)
xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -find simctl 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory)
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
error Could not get …Run Code Online (Sandbox Code Playgroud) 我正在尝试在react-native中使用谷歌自定义字体,但遇到问题,我OpenSans从谷歌下载了字体并正确配置了它react-native。
字体文件
OpenSans-VariableFont_wdth,wght.ttf
我想用它
{
fontSize: 18,
fontFamily:"OpenSans-Bold"
},
Run Code Online (Sandbox Code Playgroud)
但我遇到了类似的问题Unrecognized font family 'OpenSans-Bold'。但如果我给予喜欢,它就会起作用OpenSans-Regular。
我怎样才能使用这个文件OpenSans-VariableFont_wdth,wght.ttf