【问题标题】:Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications已请求但未找到标识符为 Xcode.IDEKit.ExtensionSentinelHostApplications 的扩展点
【发布时间】:2022-08-05 02:41:18
【问题描述】:

我认为我的颤动是在我拥有 xcode-beta 时在错误的路径上寻找某些 xcode 资源。

注意这里说的是 Xcode-beta.app:

无法在 URL 中找到捆绑包 file:///Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profi les/DeviceTypes/iPhone%20SE%20(3rd%20generation).simdevicetype

我在哪里更新这条路径?

完整错误:

    2022-06-18 23:24:33.191 xcodebuild[87140:10387974] 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-18 23:24:33.191 xcodebuild[87140:10387974] 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
    2022-06-18 23:24:33.369 xcodebuild[87140:10387987] Unable to locate a bundle at URL
    file:///Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profi
    les/DeviceTypes/iPhone%20SE%20(3rd%20generation).simdevicetype/
    2022-06-18 23:24:33.369 xcodebuild[87140:10387987] Unable to locate a bundle at URL
    file:///Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profi
    les/Runtimes/iOS.simruntime/
    xcodebuild: error: Unable to find a destination matching the provided destination specifier:
                { id:19E93EFA-2B83-48DD-A04A-311B6B96EDA5 }

        The requested device could not be found because no available devices matched the request.

        Available destinations for the \"Runner\" scheme:
                { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00006001-001260D90C89801E }

        Ineligible destinations for the \"Runner\" scheme:
                { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }

我已经通过these SO answers 诸如这些命令:

xcrun -sdk iphoneos --show-sdk-path
xcrun -sdk iphoneos --show-sdk-version
xcrun -sdk iphoneos --show-sdk-build-version
xcrun -sdk iphoneos --show-sdk-platform-path
xcrun -sdk iphoneos --show-sdk-platform-version

将此添加到 .zhrc

export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS8.5.sdk

然后跑source ~/.zshrc

没有任何效果。

编辑:我工作的另一个应用程序运行良好,所以我想这与我的 mac 设置无关,问题出在我的项目上。那我就迷路了。当我创建一个全新的颤振应用程序时,我得到了同样的错误。

Bottom answer here helped。物理 iPhone 是唯一可以工作的设备。

    标签: ios xcode flutter


    【解决方案1】:

    切换到稳定的颤振频道解决了我的问题,你能试试吗

    【讨论】:

      【解决方案2】:

      这个错误只是一个误导性的警告,不要花时间在上面。在错误下方查看作为实际问题的另一个错误。我想我试图解决错误的错误。也许最重要的错误消息没有发布在这个问题中,因为它当时没有显示:

      为 iOS 模拟器构建,但在为 iOS 构建的目标文件中链接, 用于架构 arm64 的文件 GoogleMaps.framework/GoogleMaps

      我必须按照this answer 所说的那样,在 Runner > Project > Build Settings > Architectures 下为 Runner 项目和 Pods 项目添加“arm64”到“Excluded Architectures”:

      并将其添加到 podfile 中:

      post_install do |installer|
      
        installer.pods_project.build_configurations.each do |config|
          config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
        end
      end
      

      这确实给了我职业生涯中任何问题中最大的悲痛。

      【讨论】:

        【解决方案3】:
        In Xcode 13 Go to General => builds phases => Bundle React Native code and images, delete every file in input files and input files lists and also in output files and output files list. as shown in the following screenshot. 
        then uncheck Run script "Based on dependency analysis"[![enter image description here][1]][1]
        

        【讨论】:

          猜你喜欢
          • 2022-08-16
          • 2022-08-19
          • 2022-06-14
          • 2022-12-16
          • 2022-06-24
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多