Skip to content

tns platform add ios doesn't work #5

Closed

Description

@bellu

I'm trying to add iOS platform to my project, but without success.
I have no problem using the command "tns platform add android" in the terminal, but when i try to add iOS platform, it returns this error:

ENOENT, open '/Users/myuserfolder/.npm/tns-ios/0.9.1/package/package.json'

PS: I'm using a Mac.

Activity

  1. ligaz commented on Mar 10, 2015

    @ligaz
    Contributor

    It looks like the iOS runtime package (tns-ios) has not been installed correctly (this happens the first time when you issue tns platform add ios, the package is quite large and there might have been some connectivity issues). Can you share the output that you get if you npm install -g tns-ios?

  2. bitcard commented on Mar 11, 2015

    @bitcard

    same issue, sudo chmod 777 /Users/myuserfolder/.npm/tns-ios/0.9.1/package/package.json, it's ok.
    but I met another problem, run tns platform add ios, it always waiting.
    Copying template files...
    |

    the dir platforms has nothing(should create ios directory).

  3. bellu commented on Mar 12, 2015

    @bellu
    Author

    I install a new version of Xcode Command Line Tools and this fix my problem.

  4. reopened this on Mar 12, 2015
  5. PedroAnibarro1 commented on Mar 13, 2015

    @PedroAnibarro1

    I did have the same problem ENOENT, open '/Users/myuserfolder/.npm/tns-ios/0.9.1/package/package.json'..... I fixed by using npm install -g tns-ios. Now when I try to add the platform of iOS a new message appear.

    ENOENT, rename '/Users/username/Desktop/demo/platforms/ios/PROJECT_NAME/PROJECT_NAME-Info.plist'

    any fix or idea?

  6. bitcard commented on Mar 14, 2015

    @bitcard

    It seems access file fail, try sudo chmod 777 filename.

  7. PedroAnibarro1 commented on Mar 14, 2015

    @PedroAnibarro1

    it didn't work... I tried to change permission to every file with not success. I don't know what more I can do

  8. lexrus commented on Mar 26, 2015

    @lexrus

    Same issue.

  9. chrene commented on Mar 30, 2015

    @chrene

    Got it to work with the following command:
    tns platform add ios --frameworkPath /usr/local/lib/node_modules/tns-ios

    Seems to be an issue where it can't find the node_modules. However don't hang me up on that.

  10. rajivnarayana commented on Apr 18, 2015

    @rajivnarayana

    I see a '/Users/myuserfolder/.npm/tns-ios/0.9.1/package.tgz' and that it was unable to extract properly. I backed up existing '/Users/myuserfolder/.npm/tns-ios/0.9.1/package' and extracted '/Users/myuserfolder/.npm/tns-ios/0.9.1/package.tgz' manually. Everything works and runs now.

  11. added a commit that references this issue on Mar 20, 2019
  12. lock commented on Aug 31, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  13. locked and limited conversation to collaborators on Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions