

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Memecahkan masalah pengujian XCTest UI di AWS Device Farm
<a name="troubleshooting-xctest-ui"></a>

Topik berikut mencantumkan pesan galat yang terjadi selama pengunggahan pengujian XCTest UI dan merekomendasikan solusi untuk mengatasi setiap kesalahan.

**catatan**  
Petunjuk di bawah ini didasarkan pada Linux x86\_64 dan Mac.

## XCTEST\_UI\_TEST\_PACKAGE\_UNZIP\_FAILED
<a name="XCTEST_UI_TEST_PACKAGE_UNZIP_FAILED"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not open your test IPA file. Please verify that the file is valid and try again.`

Pastikan Anda dapat unzip paket aplikasi tanpa kesalahan. Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Paket aplikasi iOS yang valid harus menghasilkan output seperti berikut:

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- Info.plist
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_PAYLOAD\_DIR\_MISSING
<a name="XCTEST_UI_TEST_PACKAGE_PAYLOAD_DIR_MISSING"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not find the Payload directory inside your test package. Please unzip your test package, verify that the Payload directory is inside the package, and try again. `

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Jika paket XCTest UI valid, Anda akan menemukan {{Payload}} direktori di dalam direktori kerja.

   ```
   .
   `-- {{Payload}} (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- Info.plist
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_APP\_DIR\_MISSING
<a name="XCTEST_UI_TEST_PACKAGE_APP_DIR_MISSING"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not find the .app directory inside the Payload directory. Please unzip your test package and then open the Payload directory, verify that the .app directory is inside the directory, and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Jika paket XCTest UI valid, Anda akan menemukan {{.app}} direktori seperti {{swift-sampleUITests-Runner.app}} dalam contoh kita di dalam {{Payload}} direktori.

   ```
   .
   `-- Payload (directory)
           `-- {{swift-sampleUITests-Runner.app}} (directory)
                         |-- Info.plist
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_PLUGINS\_DIR\_MISSING
<a name="XCTEST_UI_TEST_PACKAGE_PLUGINS_DIR_MISSING"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not find the Plugins directory inside the .app directory. Please unzip your test package and then open the .app directory, verify that the Plugins directory is inside the directory, and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Jika paket XCTest UI valid, Anda akan menemukan {{Plugins}} direktori di dalam {{.app}} direktori. Dalam contoh kita, direktori disebut{{swift-sampleUITests-Runner.app}}.

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- Info.plist
                         |-- {{Plugins}} (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_XCTEST\_DIR\_MISSING\_IN\_PLUGINS\_DIR
<a name="XCTEST_UI_TEST_PACKAGE_XCTEST_DIR_MISSING_IN_PLUGINS_DIR"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not find the .xctest directory inside the plugins directory. Please unzip your test package and then open the plugins directory, verify that the .xctest directory is inside the directory, and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Jika paket XCTest UI valid, Anda akan menemukan {{.xctest}} direktori di dalam {{Plugins}} direktori. Dalam contoh kita, direktori disebut{{swift-sampleUITests.xctest}}.

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- Info.plist
                         |-- Plugins (directory)
                         |       `{{swift-sampleUITests.xctest}} (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_PLIST\_FILE\_MISSING
<a name="XCTEST_UI_TEST_PACKAGE_PLIST_FILE_MISSING"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not find the Info.plist file inside the .app directory. Please unzip your test package and then open the .app directory, verify that the Info.plist file is inside the directory, and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Jika paket XCTest UI valid, Anda akan menemukan {{Info.plist}} file di dalam {{.app}} direktori. Dalam contoh kita di bawah ini, direktori disebut{{swift-sampleUITests-Runner.app}}.

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- {{Info.plist}}
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_PLIST\_FILE\_MISSING\_IN\_XCTEST\_DIR
<a name="XCTEST_UI_TEST_PACKAGE_PLIST_FILE_MISSING_IN_XCTEST_DIR"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not find the Info.plist file inside the .xctest directory. Please unzip your test package and then open the .xctest directory, verify that the Info.plist file is inside the directory, and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Jika paket XCTest UI valid, Anda akan menemukan {{Info.plist}} file di dalam {{.xctest}} direktori. Dalam contoh kita di bawah ini, direktori disebut{{swift-sampleUITests.xctest}}.

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- Info.plist
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- {{Info.plist}}
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_CPU\_ARCHITECTURE\_VALUE\_MISSING
<a name="XCTEST_UI_TEST_PACKAGE_CPU_ARCHITECTURE_VALUE_MISSING"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not the CPU architecture value in the Info.plist file. Please unzip your test package and then open the Info.plist file inside the .app directory, verify that the key "UIRequiredDeviceCapabilities" is specified, and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Anda harus menemukan {{Info.plist}} file di dalam {{.app}} direktori seperti {{swift-sampleUITests-Runner.app}} dalam contoh kita:

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- {{Info.plist}}
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

1. Untuk menemukan nilai arsitektur CPU, Anda dapat membuka Info.plist menggunakan Xcode atau Python.

   Untuk Python, Anda dapat menginstal modul biplist dengan menjalankan perintah berikut:

   ```
   $ pip install biplist
   ```

1. Selanjutnya, buka Python dan jalankan perintah berikut:

   ```
   import biplist
   info_plist = biplist.readPlist('Payload/swift-sampleUITests-Runner.app/Info.plist') 
   print info_plist['UIRequiredDeviceCapabilities']
   ```

   Paket XCtest UI yang valid harus menghasilkan output seperti berikut:

   ```
   ['armv7']
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_PLATFORM\_VALUE\_MISSING
<a name="XCTEST_UI_TEST_PACKAGE_PLATFORM_VALUE_MISSING"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not find the platform value in the Info.plist. Please unzip your test package and then open the Info.plist file inside the .app directory, verify that the key "CFBundleSupportedPlatforms" is specified, and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Anda harus menemukan {{Info.plist}} file di dalam {{.app}} direktori seperti {{swift-sampleUITests-Runner.app}} dalam contoh kita:

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- {{Info.plist}}
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

1. Untuk menemukan nilai platform, Anda dapat membuka Info.plist menggunakan Xcode atau Python.

   Untuk Python, Anda dapat menginstal modul biplist dengan menjalankan perintah berikut:

   ```
   $ pip install biplist
   ```

1. Selanjutnya, buka Python dan jalankan perintah berikut:

   ```
   import biplist
   info_plist = biplist.readPlist('Payload/swift-sampleUITests-Runner.app/Info.plist')
   print info_plist['CFBundleSupportedPlatforms']
   ```

   Paket XCtest UI yang valid harus menghasilkan output seperti berikut:

   ```
   ['iPhoneOS']
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_WRONG\_PLATFORM\_DEVICE\_VALUE
<a name="XCTEST_UI_TEST_PACKAGE_WRONG_PLATFORM_DEVICE_VALUE"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We found the platform device value was wrong in the Info.plist file. Please unzip your test package and then open the Info.plist file inside the .app directory, verify that the value of the key "CFBundleSupportedPlatforms" does not contain the keyword "simulator", and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Anda harus menemukan {{Info.plist}} file di dalam {{.app}} direktori seperti {{swift-sampleUITests-Runner.app}} dalam contoh kita:

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- {{Info.plist}}
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

1. Untuk menemukan nilai platform, Anda dapat membuka Info.plist menggunakan Xcode atau Python.

   Untuk Python, Anda dapat menginstal modul biplist dengan menjalankan perintah berikut:

   ```
   $ pip install biplist
   ```

1. Selanjutnya, buka Python dan jalankan perintah berikut:

   ```
   import biplist
   info_plist = biplist.readPlist('Payload/swift-sampleUITests-Runner.app/Info.plist')
   print info_plist['CFBundleSupportedPlatforms']
   ```

   Paket XCtest UI yang valid harus menghasilkan output seperti berikut:

   ```
   ['iPhoneOS']
   ```

   Jika paket XCTest UI valid, nilainya tidak boleh berisi kata kunci`simulator`.

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_FORM\_FACTOR\_VALUE\_MISSING
<a name="XCTEST_UI_TEST_PACKAGE_FORM_FACTOR_VALUE_MISSING"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not the form factor value in the Info.plist. Please unzip your test package and then open the Info.plist file inside the .app directory, verify that the key "UIDeviceFamily" is specified, and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Anda harus menemukan {{Info.plist}} file di dalam {{.app}} direktori seperti {{swift-sampleUITests-Runner.app}} dalam contoh kita:

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- {{Info.plist}}
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

1. Untuk menemukan nilai faktor bentuk, Anda dapat membuka Info.plist menggunakan Xcode atau Python.

   Untuk Python, Anda dapat menginstal modul biplist dengan menjalankan perintah berikut:

   ```
   $ pip install biplist
   ```

1. Selanjutnya, buka Python dan jalankan perintah berikut:

   ```
   import biplist
   info_plist = biplist.readPlist('Payload/swift-sampleUITests-Runner.app/Info.plist')
   print info_plist['UIDeviceFamily']
   ```

   Paket XCtest UI yang valid harus menghasilkan output seperti berikut:

   ```
   [1, 2]
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_PACKAGE\_NAME\_VALUE\_MISSING
<a name="XCTEST_UI_TEST_PACKAGE_PACKAGE_NAME_VALUE_MISSING"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not find the package name value in the Info.plist file. Please unzip your test package and then open the Info.plist file inside the .app directory, verify that the key "CFBundleIdentifier" is specified, and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Anda harus menemukan {{Info.plist}} file di dalam {{.app}} direktori seperti {{swift-sampleUITests-Runner.app}} dalam contoh kita:

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- {{Info.plist}}
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

1. Untuk menemukan nilai nama paket, Anda dapat membuka Info.plist menggunakan Xcode atau Python.

   Untuk Python, Anda dapat menginstal modul biplist dengan menjalankan perintah berikut:

   ```
   $ pip install biplist
   ```

1. Selanjutnya, buka Python dan jalankan perintah berikut:

   ```
   import biplist
   info_plist = biplist.readPlist('Payload/swift-sampleUITests-Runner.app/Info.plist')
   print info_plist['CFBundleIdentifier']
   ```

   Paket XCtest UI yang valid harus menghasilkan output seperti berikut:

   ```
   com.apple.test.swift-sampleUITests-Runner
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_EXECUTABLE\_VALUE\_MISSING
<a name="XCTEST_UI_TEST_PACKAGE_EXECUTABLE_VALUE_MISSING"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not find the executable value in the Info.plist file. Please unzip your test package and then open the Info.plist file inside the .app directory, verify that the key "CFBundleExecutable" is specified, and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Anda harus menemukan {{Info.plist}} file di dalam {{.app}} direktori seperti {{swift-sampleUITests-Runner.app}} dalam contoh kita:

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- {{Info.plist}}
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

1. Untuk menemukan nilai yang dapat dieksekusi, Anda dapat membuka Info.plist menggunakan Xcode atau Python.

   Untuk Python, Anda dapat menginstal modul biplist dengan menjalankan perintah berikut:

   ```
   $ pip install biplist
   ```

1. Selanjutnya, buka Python dan jalankan perintah berikut:

   ```
   import biplist
   info_plist = biplist.readPlist('Payload/swift-sampleUITests-Runner.app/Info.plist')
   print info_plist['CFBundleExecutable']
   ```

   Paket XCtest UI yang valid harus menghasilkan output seperti berikut:

   ```
   XCTRunner
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_TEST\_PACKAGE\_NAME\_VALUE\_MISSING
<a name="XCTEST_UI_TEST_PACKAGE_TEST_PACKAGE_NAME_VALUE_MISSING"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not find the package name value in the Info.plist file inside the .xctest directory. Please unzip your test package and then open the Info.plist file inside the .xctest directory, verify that the key "CFBundleIdentifier" is specified, and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Anda harus menemukan {{Info.plist}} file di dalam {{.app}} direktori seperti {{swift-sampleUITests-Runner.app}} dalam contoh kita:

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- {{Info.plist}}
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

1. Untuk menemukan nilai nama paket, Anda dapat membuka Info.plist menggunakan Xcode atau Python.

   Untuk Python, Anda dapat menginstal modul biplist dengan menjalankan perintah berikut:

   ```
   $ pip install biplist
   ```

1. Selanjutnya, buka Python dan jalankan perintah berikut:

   ```
   import biplist
   info_plist = biplist.readPlist('Payload/swift-sampleUITests-Runner.app/Plugins/swift-sampleUITests.xctest/Info.plist')
   print info_plist['CFBundleIdentifier']
   ```

   Paket XCtest UI yang valid harus menghasilkan output seperti berikut:

   ```
   com.amazon.swift-sampleUITests
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_TEST\_EXECUTABLE\_VALUE\_MISSING
<a name="XCTEST_UI_TEST_PACKAGE_TEST_EXECUTABLE_VALUE_MISSING"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We could not find the executable value in the Info.plist file inside the .xctest directory. Please unzip your test package and then open the Info.plist file inside the .xctest directory, verify that the key "CFBundleExecutable" is specified, and try again.`

Dalam contoh berikut, nama paket adalah **Swift-sample-ui.ipa**.

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.ipa
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Anda harus menemukan {{Info.plist}} file di dalam {{.app}} direktori seperti {{swift-sampleUITests-Runner.app}} dalam contoh kita:

   ```
   .
   `-- Payload (directory)
           `-- swift-sampleUITests-Runner.app (directory)
                         |-- {{Info.plist}}
                         |-- Plugins (directory)
                         |       `swift-sampleUITests.xctest (directory)
                         |                       |-- Info.plist
                         |                       `-- (any other files)
                         `-- (any other files)
   ```

1. Untuk menemukan nilai yang dapat dieksekusi, Anda dapat membuka Info.plist menggunakan Xcode atau Python.

   Untuk Python, Anda dapat menginstal modul biplist dengan menjalankan perintah berikut:

   ```
   $ pip install biplist
   ```

1. Selanjutnya, buka Python dan jalankan perintah berikut:

   ```
   import biplist
   info_plist = biplist.readPlist('Payload/swift-sampleUITests-Runner.app/Plugins/swift-sampleUITests.xctest/Info.plist')
   print info_plist['CFBundleExecutable']
   ```

   Paket XCtest UI yang valid harus menghasilkan output seperti berikut:

   ```
   swift-sampleUITests
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_MULTIPLE\_APP\_DIRS
<a name="XCTEST_UI_TEST_PACKAGE_MULTIPLE_APP_DIRS"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We found multiple .app directories inside your test package. Please unzip your test package, verify that only a single .app directory is present inside the package, then try again.`

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.zip
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Jika paket XCTest UI valid, Anda harus menemukan hanya satu `.app` direktori seperti `swift-sampleUITests-Runner.app` dalam contoh kita di dalam paket tes.zip. 

   ```
   .
   `--swift-sample-UI.zip--(directory)
       `-- {{swift-sampleUITests-Runner.app}} (directory)
               |-- Info.plist
               |-- Plugins (directory)
               |       `swift-sampleUITests.xctest (directory)
              |            |-- Info.plist
              |            `-- (any other files)
               `-- (any other files)
       `-- (any other files)
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_MULTIPLE\_IPA\_DIRS
<a name="XCTEST_UI_TEST_PACKAGE_MULTIPLE_IPA_DIRS"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We found multiple .ipa directories inside your test package. Please unzip your test package, verify that only a single .ipa directory is present inside the package, then try again.`

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.zip
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Jika paket XCTest UI valid, Anda harus menemukan hanya satu `.ipa` direktori seperti `sampleUITests.ipa` dalam contoh kita di dalam paket tes.zip. 

   ```
   .
   `--swift-sample-UI.zip--(directory)
       `-- {{sampleUITests.ipa}} (directory)
               `-- Payload (directory)
                   `-- swift-sampleUITests-Runner.app (directory)
       `-- (any other files)
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_BOTH\_APP\_AND\_IPA\_DIR\_PRESENT
<a name="XCTEST_UI_TEST_PACKAGE_BOTH_APP_AND_IPA_DIR_PRESENT"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We found both .app and .ipa files inside your test package. Please unzip your test package, verify that only a single .app or .ipa file is present inside the package, then try again.`

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.zip
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Jika paket XCTest UI valid, Anda harus menemukan `.ipa` direktori seperti `sampleUITests.ipa` atau `.app` direktori seperti `swift-sampleUITests-Runner.app` dalam contoh kita di dalam paket tes.zip. Anda dapat merujuk ke contoh paket Uji XCTEST\_UI yang valid dalam dokumentasi kami di. [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md) 

   ```
   .
   `--swift-sample-UI.zip--(directory)
       `-- {{sampleUITests.ipa}} (directory)
               `-- Payload (directory)
                   `-- swift-sampleUITests-Runner.app (directory)
      `-- (any other files)
   ```

    atau 

   ```
   .
   `--swift-sample-UI.zip--(directory)
       `-- {{swift-sampleUITests-Runner.app}} (directory)
               |-- Info.plist
               |-- Plugins (directory)
               `-- (any other files)
      `-- (any other files)
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).

## XCTEST\_UI\_TEST\_PACKAGE\_PAYLOAD\_DIR\_PRESENT\_IN\_ZIP
<a name="XCTEST_UI_TEST_PACKAGE_PAYLOAD_DIR_PRESENT_IN_ZIP"></a>

Jika Anda melihat pesan berikut, ikuti langkah-langkah berikut untuk memperbaiki masalah.

`We found a Payload directory inside your .zip test package. Please unzip your test package, ensure that a Payload directory is not present in the package, then try again.`

1. Salin paket pengujian Anda ke direktori kerja Anda, lalu jalankan perintah berikut:

   ```
   $ unzip swift-sample-UI.zip
   ```

1. Setelah Anda berhasil unzip paket, Anda dapat menemukan struktur pohon direktori kerja dengan menjalankan perintah berikut:

   ```
   $ tree .
   ```

   Jika paket XCTest UI valid, Anda seharusnya tidak menemukan Direktori Payload di dalam paket pengujian Anda.

   ```
   .
   `--swift-sample-UI.zip--(directory)
       `-- swift-sampleUITests-Runner.app (directory)
               |-- Info.plist
               |-- Plugins (directory)
               `-- (any other files)
      `-- {{Payload (directory) [This directory should not be present]}}
               |-- (any other files)
      `-- (any other files)
   ```

   Untuk informasi selengkapnya, lihat [Mengintegrasikan XCTest UI untuk iOS dengan Device Farm](test-types-ios-xctest-ui.md).