NativeScript / NativeScript/nativescript-cli
Project Config Cache is not updating Xcode version
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 204
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 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.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先使用 ns run ios --log trace 和 ns doctor 重現這項差異,重點關注 Project Config Service 的快取資訊以及回報的 Xcode 版本。追蹤 ns run ios 執行期間如何讀取快取,並將其與 ns doctor 提供的最新值進行比較;完成的標準是兩個命令都回報目前的 Xcode 版本。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- ios, javascript
- 領域
- cli, mobile-dev
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100