Die Simulatorliste konnte nicht von Xcode abgerufen werden. Bitte öffnen Sie Xcode und versuchen Sie, das Projekt direktIOS

Programmierung für iOS
Anonymous
 Die Simulatorliste konnte nicht von Xcode abgerufen werden. Bitte öffnen Sie Xcode und versuchen Sie, das Projekt direkt

Post by Anonymous »

Ich habe OS 12.3 auf 13.1, Xcode 13.1 auf 14.1 aktualisiert und Befehlszeilentools installiert. Ich reagiere auf die native App, die über Xcode, aber nicht über die Befehlszeile ausgeführt wird, und erhalte den folgenden Fehler

Code: Select all

    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 the simulator list from Xcode. Please open Xcode and try running project directly from there to resolve the remaining issues.
Error: Command failed: xcrun simctl list --json devices
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

at checkExecSyncError (node:child_process:828:11)
at Object.execFileSync (node:child_process:863:15)
Aber die native React-App läuft einwandfrei, wenn Sie diesen Befehl ausführen export SDKROOT=$(xcrun -sdk macosx --show-sdk-path) bevor Sie React-native run-ios ausführen, wenn ich das Terminal schließe und die native React-App erneut ausführe, wird derselbe Fehler erneut angezeigt
Ich habe diese Schritte versucht

Code: Select all

sudo xcode-select --reset
sudo xcode-select --install

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post