React Native 已请求响应本地IOS,但未找到标识符为Xcode.IDEKit.ExtensionSentinelHostApplications的扩展点

ztmd8pv5  于 2023-02-05  发布在  React
关注(0)|答案(3)|浏览(155)

我用react native写了一个android项目,它工作得很好,但后来我想用ios,我去了ios文件夹运行pod安装代码,然后我回到主文件夹说yarn ios,但我面临这个错误,解决方案是什么?

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 66. To debug build logs further, consider building your app with Xcode.app, by opening myappv2.xcworkspace.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace myappv2.xcworkspace -configuration Debug -scheme myappv2 -destination id=600597F7-E729-4AB6-85FA-A68EBA352C05

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

` 2022-06-16 15:28:05.261 xcodebuild[10727:218865] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-06-16 15:28:05.261 xcodebuild[10727:218865] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
xcodebuild: error: Scheme myappv2 is not currently configured for the build action.
bwleehnv

bwleehnv1#

首先;

# remove old CommandLineTools
sudo rm -rf /Library/Developer/CommandLineTools

# install latest
sudo xcode-select --install
    • 不要忘记执行以下步骤来初始化Xcode的路径**

1.开放Xcode
1.转到首选项
1.转到位置选项卡
1.在标记为"命令行工具"的选项中选择一个Xcode版本
M1芯片上的React Native是痛苦的....祝你好运!

t1rydlwq

t1rydlwq2#

如果更新可用,则只需安装更新,然后启动Xcode;它会要求您安装额外的软件。安装完成后,错误将得到解决。

chhqkbe1

chhqkbe13#

你可以试试

rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm Podfile.lock
pod install

相关问题