NativeScript / NativeScript/nativescript-cli

Project Config Cache is not updating Xcode version

オープン
#5,388 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

説明

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 7.0.8

Describe the bug
When running ns run ios --log trace the Project info that is displayed doesn't reflect the same info from ns doctor.

This is the relevant piece from ns run ios --log trace. If you compare the Xcode version shown here it doesn't match the Xcode version when I run ns doctor.

Project Config Service using legacy configuration...
Initializing analytics statuses.
Analytics statuses:  { TrackFeatureUsage: 'disabled', TrackExceptions: 'disabled' }
getInfos cacheConfig options: { forceCheck: undefined }  current info from cache:  [ { message: 'Xcode is installed and is configured properly.',
    platforms: [ 'iOS' ],
    type: 'info' },
  { message: 'xcodeproj is installed and is configured properly.',
    platforms: [ 'iOS' ],
    type: 'info' },
  { message: 'CocoaPods are installed.',
    platforms: [ 'iOS' ],
    type: 'info' },
  { message: 'CocoaPods update is not required.',
    platforms: [ 'iOS' ],
    type: 'info' },
  { message: 'CocoaPods are configured properly.',
    platforms: [ 'iOS' ],
    type: 'info' },
  { message: 'Your current CocoaPods version is newer than 1.0.0.',
    platforms: [ 'iOS' ],
    type: 'info' },
  { message: 'Python installed and configured correctly.',
    platforms: [ 'iOS' ],
    type: 'info' },
  { message: 'The Python \'six\' package is found.',
    platforms: [ 'iOS' ],
    type: 'info' },
  **{ message:
     'Xcode version 11.5.0 satisfies minimum required version 10.',
    platforms: [ 'iOS' ],
    type: 'info' }** ]
Xcode is installed and is configured properly.
xcodeproj is installed and is configured properly.
CocoaPods are installed.
CocoaPods update is not required.
CocoaPods are configured properly.
Your current CocoaPods version is newer than 1.0.0.
Python installed and configured correctly.
The Python 'six' package is found.
**Xcode version 11.5.0 satisfies minimum required version 10.**
Result from ns doctor

No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
**✔ Xcode version 12.0.0 satisfies minimum required version 10.**

I'm not sure how to clear the cache that's being picked up on ns run ios but I'm having issues with the command line starting the app on my phone with iOS 14. I can start it fine from Xcode but it won't start from ns run ios and I think it might be related to ns run ios using an old Xcode version.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず ns run ios --log tracens doctor を使って不一致を再現し、Project Config Service のキャッシュされた情報と報告された Xcode バージョンに注目します。ns run ios の実行中にキャッシュがどのように読み取られるかを追跡し、ns doctor から取得した最新の値と比較します。完了の条件は、両方のコマンドが現在の Xcode バージョンを報告することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ios, javascript
領域
cli, mobile-dev
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。