Skip to content

Platform update ios command does not update the iOS runtime #772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vchimev opened this issue Aug 11, 2015 · 5 comments
Closed

Platform update ios command does not update the iOS runtime #772

vchimev opened this issue Aug 11, 2015 · 5 comments

Comments

@vchimev
Copy link

vchimev commented Aug 11, 2015

It seems like tns platform update ios does not download the iOS runtime requested version to the npm cache, therefore the project could not be updated to it.

Output:

vchimevmac:issueApp vchimev$ tns platform update ios
ENOENT, open '/Users/vchimev/.npm/tns-ios/1.2.1/package/framework/__PROJECT_NAME__.xcodeproj/project.pbxproj'

Workaround:

tns platform remove ios
tns platform add ios
@vchimev vchimev added the bug label Aug 11, 2015
@vchimev vchimev added this to the 1.3.0 milestone Aug 11, 2015
@NickBranstein
Copy link

Related to this - I've updated to NativeScript 1.2.2

tns --version
1.2.2

After removing and adding the ios platform

tns platform remove ios
tns platform add ios

My package.json now reports the tns-ios package is 1.2.1 - is this normal - I would expect it to say 1.2.2?

{
    "nativescript": {
        "id": "org.nativescript.navigation",
        "tns-ios": {
            "version": "1.2.1"
        }
    }
}

@Fatme
Copy link
Contributor

Fatme commented Aug 13, 2015

@NickBranstein this is expected behavior.
tns platform add ios downloads the latest available version. Currently the latest available version for tns-ios is 1.2.1

@maknz
Copy link

maknz commented Aug 19, 2015

I had this issue after upgrading the CLI to 1.2.3 today, and with a new 1.2.2 release (we were on 1.2.1 prior). tns platform update ios failed with the above error. Removing the platform, bumping the package.json version manually and tns install worked.

@vchimev
Copy link
Author

vchimev commented Aug 19, 2015

Output of replication with tns platform update ios --log trace:
https://gist.github.com/vchimev/31d3fe6ba028ff5ca57b

Fatme pushed a commit that referenced this issue Aug 27, 2015
If the new version of runtime is not cached, tns platform update throws an error
Fixes #772
Fatme pushed a commit that referenced this issue Aug 27, 2015
If the new version of runtime is not cached, tns platform update throws an error
Fixes #772
Fatme pushed a commit that referenced this issue Aug 27, 2015
If the new version of runtime is not cached, tns platform update throws an error
Fixes #772
@vchimev
Copy link
Author

vchimev commented Sep 2, 2015

I tried to update ios runtime from 1.2.2 to the forthcoming 1.3.0.

It looked like the platform update was successful itself, but after that I failed to build the app.
Output: https://gist.github.com/vchimev/e054b8d10139cfc8c2c8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants