错误无法找到任何支持 iOS Simulator 13.2.2 的 Xcode 安装

ERROR Unable to find any Xcode installations that supports iOS Simulator 13.2.2

我试过这两个问题 Question1 and Question2 对我没有任何帮助。也尝试过重置 SIM 卡。

以下是日志详细信息:

appc run -p ios -T simulator -C

此命令的输出:

Appcelerator Command-Line Interface, version 8.0.0
Copyright (c) 2014-2020, Appcelerator, Inc.  All Rights Reserved.

[ERROR] Invalid iOS simulator "x"

 
6/30/2020, 2:36:20 PM

Operating System
  Name                        = Mac OS X
  Version                     = 10.14.6
  Architecture                = 64bit
  # CPUs                      = 12
  Memory                      = 17179869184

Node.js
  Node.js Version             = 10.19.0
  npm Version                 = 6.13.4

Titanium CLI
  CLI Version                 = 5.2.2

Titanium SDK
  SDK Version                 = 7.5.1.GA
  SDK Path                    = /Users/Username/Library/Application Support/Titanium/mobilesdk/osx/7.5.1.GA
  Target Platform             = iphone

Command
  /usr/local/bin/node /Users/UserName/.appcelerator/install/8.0.0/package/node_modules/titanium/lib/titanium.js build -p ios -T simulator -C x --config-file /var/folders/qq/fc1mtjjs42v5nh0phrf346p00000gn/T/build-1593507977953.json --log-level info --no-banner --project-dir /Users/Username/Project/titanium

[ERROR] Unable to find any Xcode installations that supports iOS Simulator 13.2.2.

每当 运行 tn tn iphone-8-ios-13-3 或 ios 设备命令出现以下错误时:

[ERROR] Invalid iOS simulator "FAA5DC77-27EC-4D74-8C5C-DFA77975DF80"

ti info

的输出
Xcode
  11.3.1 (build 11C504) - Xcode default
    Install Location          = /Applications/Xcode.app/Contents/Developer
    iOS SDKs                  = 13.2.2
    iOS Simulators            = 13.2.2
    Watch SDKs                = 6.1
    Watch Simulators          = 6.1
    Supported by TiSDK 7.5.1.GA = yes
    EULA Accepted             = yes
    Teams                     = none

注意:我想将应用程序从 7.4.X 迁移到最新版本,但在此之前我想知道是什么导致问题应用程序从 7.5.x 迁移到最新版本。

我也试过了 https://github.com/appcelerator/ioslib/issues/115 运气不好 :(

这可以通过以下步骤解决:

  1. rm ioslib 里面 /Users/Username/Library/Application Support/Titanium/mobilesdk/osx/7.5.1.GA/node_modules/
  2. npm install ioslib@1.7.14
  3. tn reset 重新生成设备

我是通过以下错误日志了解到这一点的:

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN enoent ENOENT: no such file or directory, open '/Users/Username/Library/Application Support/Titanium/mobilesdk/osx/7.5.1.GA/node_modules/titanium-sdk/package.json'

npm ERR! code EEXIST
npm ERR! path /Users/Username/Library/Application Support/Titanium/mobilesdk/osx/7.5.1.GA/node_modules/node-ios-device/node_modules/.bin/node-pre-gyp
npm ERR! Refusing to delete /Users/Username/Library/Application Support/Titanium/mobilesdk/osx/7.5.1.GA/node_modules/node-ios-device/node_modules/.bin/node-pre-gyp: is outside /Users/Username/Library/Application Support/Titanium/mobilesdk/osx/7.5.1.GA/node_modules/node-ios-device/node_modules/node-pre-gyp and not a link
npm ERR! File exists: /Users/Username/Library/Application Support/Titanium/mobilesdk/osx/7.5.1.GA/node_modules/node-ios-device/node_modules/.bin/node-pre-gyp
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Username/.npm/_logs/2020-06-30T09_42_55_036Z-debug.log