【发布时间】:2023-03-08 12:04:01
【问题描述】:
当我尝试在 Mac 上的 Appcelerator 中运行应用程序时出现错误。
在我安装 XCode 9.2+iOS 11.2 之前
Appcelerator 成功找到 xcode 和可用的模拟器列表:
执行结果:
[ERROR] : Invalid "--device-id" value "15E7FD44-6368-43A3-BB93-075D4145B652"
Available iOS Simulators:
For help, run: titanium.js help build
另外,“info -t IOS”命令给出了关于可用 iOS 模拟器的空列表的矛盾结果。
$ appc ti info -t iOS
Appcelerator Command-Line Interface, version 7.0.2
Xcode
9.2 (build 9C40b)
Install Location = /Applications/Xcode.app/Contents/Developer
iOS SDKs = 11.2
iOS Simulators = 11.2
Watch SDKs = 4.2
Watch Simulators = 4.2
Supported by TiSDK 7.0.2.GA = yes
EULA Accepted = yes
Teams = none
iOS Development Certificates
/Users/desktopadmin/Library/Keychains/login.keychain-db
xxxx@xxxx.xx (xxxxx)
Not valid before = 4/5/2018 4:30 PM
Not valid after = 4/5/2019 4:30 PM
pple WWDR Certificate
Apple WWDR = installed
Development iOS Provisioning Profiles
application
...
Date Created = 4/5/2018 4:27 PM
Date Expired = 4/5/2019 4:27 PM
Managed = No
iOS Simulators None <--------this line is seemed strange
问题不仅在模拟器中 - 我尝试连接真实设备,但问题相同。
- Axway Appcelerator Studio 5.0.0.201712081732
- 钛 SDK 7.0.2
- iOS 11.2(也尝试过 11.3、11.0)
- XCode 9.2(也尝试过 AppStore 中的 9.3)
有什么想法吗?
【问题讨论】:
-
尝试运行 xcode select:
sudo xcode-select --switch /Applications/Xcode.app/然后再次尝试运行appc info,它应该开始列出模拟器
标签: ios macos appcelerator