Appcelerator Studio 无法在 Mac 上检测到有效的 iOS 或 Android SDK。

问题描述 投票:1回答:1

即使安装了XCode、iOS和Android SDK。Appcelerator无法检测到iOS或Android SDK,并显示错误。

无法在'ApplicationsXcode.appContentsDeveloperPlatformsiPhoneOS.platformDeveloperSDKs'处检测到版本为'6'或更高的有效SDK。

我安装了最新的Appcelerator Studio、Oracle JDK 8、NodeJS 12.16.2、XCode 10.1、Android Studio 3.6.2。

我试着重新安装Appcelerator Studio、Oracle JDK、Node JS,在首选项-平台下设置sdk路径,并多次重启我的Mac,但我仍然得到相同的错误。

下面是终端的appc信息。

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

Operating System
  Name                        = Mac OS X
  Version                     = 10.13.6
  Architecture                = 64bit
  # CPUs                      = 4
  Memory                      = 4.0GB

Node.js
  Node.js Version             = 12.16.2
  npm Version                 = 6.14.4

Appcelerator CLI
  Installer                   = 5.0.0
  Core Package                = 8.0.0

Titanium CLI
  CLI Version                 = 5.2.2
  node-appc Version           = 0.2.49

Titanium SDKs
  9.0.0.GA
    Version                   = 9.0.0
    Install Location          = /Users/posuna/Library/Application Support/Titanium/mobilesdk/osx/9.0.0.GA
    Platforms                 = iphone, android
    git Hash                  = ff53751424
    git Timestamp             = 3/4/2020 14:47
    node-appc Version         = 0.3.4

Mac OS X
  Command Line Tools          = installed

Intel® Hardware Accelerated Execution Manager (HAXM)
  Not installed

Java Development Kit
  Version                     = 1.8.0_241
  Java Home                   = /Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home

Genymotion
  Path                        = not found
  Genymotion Executable       = not found
  Genymotion Player           = not found
  Home                        = not found

VirtualBox
  Executable                  = not found
  Version                     = unknown

Android SDK
  Android Executable          = not found
  ADB Executable              = not found
  SDK Path                    = not found

Android NDK
  NDK Path                    = not found
  NDK Version                 = not found

Android Platforms
  None

Android Add-Ons
  None

Android Emulators
  None

Genymotion Emulators
  None

Connected Android Devices
  None

Xcode
  10.1 (build 10B61) - Xcode default
    Install Location          = /Applications/Xcode.app/Contents/Developer
    iOS SDKs                  = 12.1
    iOS Simulators            = none
    Watch SDKs                = 5.1
    Watch Simulators          = none
    Supported by TiSDK 9.0.0.GA = yes
    EULA Accepted             = yes
    Teams                     = none

iOS settings

Android settings

iOS SDK files

Android SDK files

android ios sdk titanium appcelerator
1个回答
1
投票

我有同样的问题.通过创建一个符号链接来解决.在我的例子中:ln -s UsersronnyvanelewyckLibraryandroid-sdk-macosx UsersronnyvanelewyckLibraryAndroidsdk。

显然,deamon只在UsersronnyvanelewyckLibraryAndroidsdk中寻找Android。

问候Ronny


1
投票

在给我的用户授予读&写权限后,我能够让IOS和Android SDK工作。~/.config 文件夹,并确保Android SDK工具和Android SDK构建工具都安装在Android SDK文件夹下。

在调试中启动appcelerator后,终端输出了这个错误。

2020-04-20T21:53:20.877Z appcd:default-plugins:lerna error An unexpected error occurred: "EACCES: permission denied, scandir '/ Users/posuna/.config/yarn/link'".

我按照axway社区建议的以下步骤修复了这个错误。Axway社区

  1. 给你的用户赋予"~.config "文件夹的读&写权限,方法是control+点击该文件夹,然后点击 "GetInfo",再点击 "Sharing &Permissions",然后添加具有读&写权限的用户名,然后在设置下点击apply to enclosed items。在我的Mac中,这是一个隐藏的文件夹,路径为 "Macintosh HDUsersMyUsername.config"。
  2. 完全关闭Appcelerator Studio。
  3. 在终端中运行 "appc appcd stop "命令。
  4. 删除文件夹"~.appceleratorappcdplugins"。在我的Mac中,这是一个隐藏的文件夹,路径为 "Macintosh HDUsersMyUsername"。
  5. 运行 "appc appcd start --debug "命令。
  6. 一旦你开始看到CPU参数作为上述命令的一部分,再次启动Appcelerator Studio并检查偏好->Studio->Platforms->iOS。它应该能识别指定路径上的iOS sdk。在我的例子中是 "ApplicationsXcode.appContentsDeveloperPlatformsiPhoneOS.platformDeveloper"
© www.soinside.com 2019 - 2024. All rights reserved.