【发布时间】: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 是唯一可以工作的设备。