web-dev-qa-db-ja.com

シミュレータは利用できませんappcelerator studio

iOS上のシミュレーターでtitinium.jsに組み込まれているアプリを実行しようとしていますが、次のエラーが発生します。

[INFO] :   Writing index.json with listing of JS/JSON files
[INFO] :   Invoking xcodebuild
[INFO] :   Finished building the application in 25s 110ms
[INFO] :   Launching iOS Simulator

[エラー]:シミュレーターは使用できません

アプリが8.0.0.GAのシミュレータで開かないが、8.1。*では開くが、一部の機能が動作しない

以前はシミュレータで動作していました。

環境の詳細はこちら

DesignBees-MacBook-Pro:〜designbee $ appc info

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

Operating System
  Name                        = Mac OS X
  Version                     = 10.14.6
  Architecture                = 64bit
  # CPUs                      = 8
  Memory                      = 16.0GB

Node.js
  Node.js Version             = 10.16.3
  npm Version                 = 6.9.0

Appcelerator CLI
  Installer                   = 4.2.15
  Core Package                = 7.1.1

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

Titanium SDKs
  8.0.0.GA
    Version                   = 8.0.0
    Install Location          = /Users/designbee/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.GA
    Platforms                 = iphone, Android
    git Hash                  = 3726240fa2
    git Timestamp             = unknown
    node-appc Version         = 0.2.47

Mac OS X
  Command Line Tools          = installed

Intel® Hardware Accelerated Execution Manager (HAXM)
  Not installed

Java Development Kit
  Version                     = 12.0.1_12
  Java Home                   = /Library/Java/JavaVirtualMachines/jdk-12.0.1.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              = /Users/designbee/Library/Android/sdk/platform-tools/adb
  SDK Path                    = /Users/designbee/Library/Android/sdk

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

Android Platforms
  1) Android-21
    Name                      = Android 5.0.1 **Not supported by Titanium SDK 8.0.0.GA**
    API Level                 = 21
    Revision                  = 2
    Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
    ABIs                      = 
    Path                      = /Users/designbee/Library/Android/sdk/platforms/Android-21
  2) Android-22
    Name                      = Android 5.1.1 **Not supported by Titanium SDK 8.0.0.GA**
    API Level                 = 22
    Revision                  = 2
    Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
    ABIs                      = 
    Path                      = /Users/designbee/Library/Android/sdk/platforms/Android-22
  3) Android-23
    Name                      = Android 6.0
    API Level                 = 23
    Revision                  = 3
    Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
    ABIs                      = x86
    Path                      = /Users/designbee/Library/Android/sdk/platforms/Android-23
  4) Android-24
    Name                      = Android 7.0
    API Level                 = 24
    Revision                  = 2
    Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
    ABIs                      = 
    Path                      = /Users/designbee/Library/Android/sdk/platforms/Android-24
  5) Android-25
    Name                      = Android 7.1.1
    API Level                 = 25
    Revision                  = 2
    Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
    ABIs                      = x86
    Path                      = /Users/designbee/Library/Android/sdk/platforms/Android-25
  6) Android-26
    Name                      = Android 8.0.0
    API Level                 = 26
    Revision                  = 1
    Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
    ABIs                      = 
    Path                      = /Users/designbee/Library/Android/sdk/platforms/Android-26
  7) Android-27
    Name                      = Android 8.1.0
    API Level                 = 27
    Revision                  = 1
    Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
    ABIs                      = x86
    Path                      = /Users/designbee/Library/Android/sdk/platforms/Android-27
  8) Android-28
    Name                      = Android 9
    API Level                 = 28
    Revision                  = 1
    Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
    ABIs                      = 
    Path                      = /Users/designbee/Library/Android/sdk/platforms/Android-28
  9) Android-29
    Name                      = Android 10 (not supported by Titanium SDK 8.0.0.GA, but may work)
    API Level                 = 29
    Revision                  = 1
    Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
    ABIs                      = 
    Path                      = /Users/designbee/Library/Android/sdk/platforms/Android-29

Android Add-Ons
  None

Android Emulators
  Nexus 4 API 23
    ID                        = Nexus_4_API_23
    SDK Version               = Android 6.0 (API level 23)
    ABI                       = x86
    Skin                      = nexus_4
    Path                      = /Users/designbee/.Android/avd/Nexus_4_API_23.avd
    SD Card                   = /Users/designbee/.Android/avd/Nexus_4_API_23.avd/sdcard.img
    Google APIs               = yes
  Pixel 2 API 27
    ID                        = Pixel_2_API_27
    SDK Version               = Android 8.1.0 (API level 27)
    ABI                       = x86
    Skin                      = pixel_2
    Path                      = /Users/designbee/.Android/avd/Pixel_2_API_27.avd
    SD Card                   = /Users/designbee/.Android/avd/Pixel_2_API_27.avd/sdcard.img
    Google APIs               = no

Genymotion Emulators
  None

Connected Android Devices
  None

Xcode
  10.2.1 (build 10E1001) - Xcode default
    Install Location          = /Applications/Xcode.app/Contents/Developer
    iOS SDKs                  = 12.2
    iOS Simulators            = 12.2
    Watch SDKs                = 5.2
    Watch Simulators          = 5.2
    Supported by TiSDK 8.0.0.GA = yes
    EULA Accepted             = yes
    Teams                     = none

iOS Keychains
  login.keychain-db           = /Users/designbee/Library/Keychains/login.keychain-db
  System.keychain             = /Library/Keychains/System.keychain

iOS Development Certificates
  None

iOS App Store Distribution Certificates
  None

Apple WWDR Certificate
  Apple WWDR                  = installed

Development iOS Provisioning Profiles
  None

App Store Distribution iOS Provisioning Profiles
  None

Ad Hoc iOS Provisioning Profiles
  None

Enterprise Ad Hoc iOS Provisioning Profiles
  None

iOS Simulators
11.4
  iPad Air (ipad)
    UDID                      = FE30B24F-6BB9-4D2E-B0C3-E080D6EC1D2A
    Supports Watch Apps       = no
  iPad Air 2 (ipad)
    UDID                      = A1E9B240-F6FA-46EF-8DAC-FACF86133D5A
    Supports Watch Apps       = no
  iPad (5th generation) (ipad)
    UDID                      = 5E1EF611-0E7F-4A3B-80AA-202F007F1867
    Supports Watch Apps       = no
  iPad Pro (9.7-inch) (ipad)
    UDID                      = 34755173-9E9D-4393-B8FB-412D76A63B1C
    Supports Watch Apps       = no
  iPad Pro (12.9-inch) (ipad)
    UDID                      = F7366C49-4D28-423F-9570-084C2019A031
    Supports Watch Apps       = no
  iPad Pro (12.9-inch) (2nd generation) (ipad)
    UDID                      = 5614E66D-0DEA-4A09-9517-C66FC9A744A2
    Supports Watch Apps       = no
  iPad Pro (10.5-inch) (ipad)
    UDID                      = 8288A0FC-0711-4BD4-9D76-5918DADB8D29
    Supports Watch Apps       = no
  iPhone 8 (iphone)
    UDID                      = F922EDEB-77A0-4AF5-9758-D65FC3DDF9A4
    Supports Watch Apps       = yes
  iPhone 8 Plus (iphone)
    UDID                      = 7F818C69-63A2-4933-9E85-92E7E39A4C75
    Supports Watch Apps       = yes
  iPhone X (iphone)
    UDID                      = 148CADFC-A6AD-44B3-82E3-6DD9A96C1570
    Supports Watch Apps       = yes
  iPhone 5s (iphone)
    UDID                      = 455B45F1-E701-4FD3-BB54-B8483F18F66D
    Supports Watch Apps       = yes
  iPhone 6 Plus (iphone)
    UDID                      = 8F5E1690-ADF0-4077-B17E-65BE70AA8F17
    Supports Watch Apps       = yes
  iPhone 6 (iphone)
    UDID                      = D5CD717B-9E85-41CA-9886-FBC9AD8371D5
    Supports Watch Apps       = yes
  iPhone 6s (iphone)
    UDID                      = ADB19013-2CAB-4978-A546-E38BEA7B840C
    Supports Watch Apps       = yes
  iPhone 6s Plus (iphone)
    UDID                      = 6D696FDF-C0E3-4648-A2F2-CC7395B72645
    Supports Watch Apps       = yes
  iPhone SE (iphone)
    UDID                      = 262C2FD9-72E3-4D42-8539-1335CC066F96
    Supports Watch Apps       = yes
  iPhone 7 (iphone)
    UDID                      = FA749D64-0E29-42A5-BC41-1BA36218C958
    Supports Watch Apps       = yes
  iPhone 7 Plus (iphone)
    UDID                      = CCF43719-6923-475B-8D71-A6E60D25EA35
    Supports Watch Apps       = yes

12.2
  iPad Air (3rd generation) (ipad)
    UDID                      = 574C2384-25E5-4908-9ECB-13B3CE2FDAD7
    Supports Watch Apps       = no
  iPad Air (ipad)
    UDID                      = FEC98851-2059-49CA-ACFF-53B1C0A9F885
    Supports Watch Apps       = no
  iPad Air 2 (ipad)
    UDID                      = B2CE9C5D-A482-47E3-92FC-6E7D8BB3CCEB
    Supports Watch Apps       = no
  iPad (5th generation) (ipad)
    UDID                      = 326BBB80-DBBD-4FAE-95BE-411DF19570F4
    Supports Watch Apps       = no
  iPad Pro (9.7-inch) (ipad)
    UDID                      = 8A94D703-C119-468F-92BB-6291B965F612
    Supports Watch Apps       = no
  iPad Pro (12.9-inch) (ipad)
    UDID                      = 7840ABC3-298C-4F7F-A117-9BA6872700AC
    Supports Watch Apps       = no
  iPad Pro (12.9-inch) (2nd generation) (ipad)
    UDID                      = CDB1E905-5DF7-43F0-A11B-277852C2D628
    Supports Watch Apps       = no
  iPad Pro (10.5-inch) (ipad)
    UDID                      = 7D37AE8B-9142-402E-85FE-86F3B7EB4562
    Supports Watch Apps       = no
  iPad (6th generation) (ipad)
    UDID                      = B0E08123-6AC7-4F22-9EEE-D60FC6A2293B
    Supports Watch Apps       = no
  iPad Pro (11-inch) (ipad)
    UDID                      = 62EBC7CE-29EC-46F7-8454-D20A9343C1FD
    Supports Watch Apps       = no
  iPad Pro (12.9-inch) (3rd generation) (ipad)
    UDID                      = F29299CD-4ADB-4286-9A36-4EA0B3F8BE38
    Supports Watch Apps       = no
  iPhone 8 (iphone)
    UDID                      = ECF28DF4-B15D-4055-9E61-83FFEFBEC70D
    Supports Watch Apps       = yes
  iPhone 8 Plus (iphone)
    UDID                      = 01C12798-E252-47AA-97E8-EBE17CE80963
    Supports Watch Apps       = yes
  iPhone X (iphone)
    UDID                      = 328EA9D6-B598-4BE8-9808-5F3869DCEBE1
    Supports Watch Apps       = yes
  iPhone Xs (iphone)
    UDID                      = DAFAD514-2AE5-4CD0-B61C-AFB18C7F43AD
    Supports Watch Apps       = yes
  iPhone Xs Max (iphone)
    UDID                      = 3C0BEE43-4873-4BC0-8AE2-815DF2CD68AA
    Supports Watch Apps       = yes
  iPhone Xʀ (iphone)
    UDID                      = C917841E-FFFD-4782-93EF-3F37E0EC1BC7
    Supports Watch Apps       = yes
  iPhone 5s (iphone)
    UDID                      = FEA8787C-68E4-4BB2-90CC-03197DB339E6
    Supports Watch Apps       = yes
  iPhone 6 Plus (iphone)
    UDID                      = BFFE75F2-FF14-45A4-B0C2-0CD4791568C1
    Supports Watch Apps       = yes
  iPhone 6 (iphone)
    UDID                      = 7FADEADA-BC25-4E35-B944-397D6D4B557E
    Supports Watch Apps       = yes
  iPhone 6s (iphone)
    UDID                      = 775CFC7E-5F0E-4A87-9BFE-C65B6F78373D
    Supports Watch Apps       = yes
  iPhone 6s Plus (iphone)
    UDID                      = 490AC88D-AAA5-4365-A0D2-8C07CC6E11DE
    Supports Watch Apps       = yes
  iPhone SE (iphone)
    UDID                      = 5056D8F0-8483-49FF-BF29-4E1C33A60733
    Supports Watch Apps       = yes
  iPhone 7 (iphone)
    UDID                      = B4825C08-A906-472D-AD1F-16740BC4A6A8
    Supports Watch Apps       = yes
  iPhone 7 Plus (iphone)
    UDID                      = B4C55280-7F45-4F56-BEAA-8C7097194D97
    Supports Watch Apps       = yes

WatchOS Simulators
5.2
  Apple Watch Series 2 - 38mm (watch)
    UDID                      = 4B361CB5-83DB-4257-BBA1-309D7EDBB582
  Apple Watch Series 2 - 42mm (watch)
    UDID                      = D5EF7B25-CE1D-44E3-B5CD-822CB86922EF
  Apple Watch Series 3 - 38mm (watch)
    UDID                      = 8C62712B-B8B6-47A0-ADDC-DB4688086D9A
  Apple Watch Series 3 - 42mm (watch)
    UDID                      = F7C2090F-E672-4AD3-8694-9A8B86A67AD5
  Apple Watch Series 4 - 40mm (watch)
    UDID                      = AE3F43E6-033A-46EC-86C0-A74A480A791A
  Apple Watch Series 4 - 44mm (watch)
    UDID                      = 7752FAB2-D241-4018-A407-F243ECA73BD6

Connected iOS Devices
  None

Android Issues
  !  Unable to locate an Android NDK.
     Without the NDK, you will not be able to build native Android Titanium modules.
     If you have already downloaded and installed the Android NDK, you can tell Titanium where the
     Android NDK is located by running 'appc titanium config Android.ndkPath /path/to/Android-ndk',
     otherwise you can install it by running 'appc titanium setup Android' or manually downloading
     from http://appcelerator.com/Android-ndk.

  !  Android API Android 5.0.1 (Android-21) is too old and is no longer supported by Titanium SDK
     8.0.0.
     The minimum supported Android API level by Titanium SDK 8.0.0 is API level 23.

  !  Android API Android 5.1.1 (Android-22) is too old and is no longer supported by Titanium SDK
     8.0.0.
     The minimum supported Android API level by Titanium SDK 8.0.0 is API level 23.

  !  Android API Android 10 (Android-29) is too new and may or may not work with Titanium SDK 8.0.0.
     The maximum supported Android API level by Titanium SDK 8.0.0 is API level 28.

iOS Issues
  !  Unable to find any valid iOS development provisioning profiles.
     This will prevent you from building apps for testing on iOS devices.
     You will need to log in to http://appcelerator.com/ios-dev-certs with your Apple Developer
     account, then create, download, and install a profile.

  !  Unable to find any valid iOS adhoc provisioning profiles.
     This will prevent you from packaging apps for adhoc distribution.
     You will need to log in to http://appcelerator.com/ios-dist-certs with your Apple Developer
     account, then create, download, and install a profile.

  !  Unable to find any valid iOS distribution provisioning profiles.
     This will prevent you from packaging apps for AppStore distribution.
     You will need to log in to http://appcelerator.com/ios-dist-certs with your Apple Developer
     account, then create, download, and install a profile.

  !  Unable to find any valid iOS developer certificates.
     This will prevent you from building apps for iOS devices.
     You will need to log in to http://appcelerator.com/ios-dev-certs with your Apple Developer
     account, then create, download, and install a certificate.

  !  Unable to find any valid iOS production distribution certificates.
     This will prevent you from packaging apps for distribution.
     You will need to log in to http://appcelerator.com/ios-dist-certs with your Apple Developer
     account, then create, download, and install a certificate.
5
Nauman Ahmad

IPAまたはAPPを生成し、XCodeを使用してシミュレータに手動でインストールできる必要があります。これにより、問題を完全に回避できます。

APPファイルを作成するには、リリース用にプロジェクトをビルドするだけで、ビルドディレクトリにあるはずです。詳細はこちら: https://docs.appcelerator.com/platform/latest//#!/guide/Distributing_iOS_apps

APPファイルをインストールして実行するには

xcrun simctl install booted /path/to/Your.app xcrun simctl launch booted com.yourcompany.yourapp

IPAを作成するには、次のことを行う必要があります。

...要件が満たされていることを確認し、目的のSDKバージョンを選択します。アドホックおよび社内配布の場合、パッケージフォーマットをipaとして指定し、パッケージのコピー先のパスを指定します。 Nextをクリックします。

https://docs.appcelerator.com/platform/latest//#!/guide/Distributing_iOS_apps

IPAをインストールするには

ペイロードを抽出してシミュレーターフォルダーにコピーする必要があります

ITunesを使用したい.ipaファイルを見つけて、デスクトップにコピーしました。

その後、拡張子を.Zipに変更して抽出しました。

次に、ペイロードフォルダーを見つけて、アプリケーションをデスクトップに移動しました。

最後に、そのアプリケーションを次の場所にある私のiPhoneシミュレーターアプリケーションフォルダーに移動しました。

HD
Applications
Xcode.app (right click - Show Package Contents)
Contents
Developer
Platforms
iPhoneSimulator.platform
SDKs
iPhoneSimulator6.0.sdk
Applications

お役に立てれば! (注:一部のアプリは他のアプリよりも頻繁にクラッシュします。)

詳細はこちら: https://stackoverflow.com/a/9385507/2680506

1
Dave S

私はまだ元の問題が解決されたことを望みます(ERROR: Simulator not availableDaveSからの回答は、シミュレーターでそれをロードできる場所に到達するのに役立ちました

appcでビルドした後、正しくビルドされた.appファイルがmyproject/build/iphone/build/Products/Debug-iphonesimulatorにあったので、そのファイルをシミュレーターにドラッグアンドドロップできました(または、おそらくDaveの回答のコマンドを使用しましたが、実際にはtまだ試してください)、アプリは私のデバイスで適切に実行されています。

関連/現在のチケット

1
codeMagic

この問題は、最新のXCodeアップデートに関連している可能性があります。12.9第2世代ipadがシミュレータオプションとして削除されました。 これらは最新アップデートの現在のオプションです

0
Coby Fielding

手動でioslibを更新する必要があります。

やった:

npm install ioslib

そして、すべてをappcelerator sdkのnode_modulesディレクトリの上にコピーしました。

0
grebulon

どうやら問題は新しいバージョンのCLIに関係しており、ioslibがシミュレーターに接続するのに問題を引き起こしています。以前のバージョンのAppcelerator Command Line Interfaceに戻すとうまくいきました。

ここに私がpbを修正するために従ったステップがあります:

  • 〜/ Library/Developer&/ Library/DeveloperのxCodeとそのフォルダーを完全にアンインストールする
  • Sudo xcode-select -r xcode-selectをリセットします
  • https://developer.Apple.com/download/more/ からXcode 10.3(または必要なバージョン)をインストールする
  • appcelerator CLI 7.0.10に戻す:appc use 7.0.10
0
Lena Faure