You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
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?
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).
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.
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.
Activity
ligaz commentedon Mar 10, 2015
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 younpm install -g tns-ios?bitcard commentedon Mar 11, 2015
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).
bellu commentedon Mar 12, 2015
I install a new version of Xcode Command Line Tools and this fix my problem.
PedroAnibarro1 commentedon Mar 13, 2015
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?
bitcard commentedon Mar 14, 2015
It seems access file fail, try sudo chmod 777 filename.
PedroAnibarro1 commentedon Mar 14, 2015
it didn't work... I tried to change permission to every file with not success. I don't know what more I can do
lexrus commentedon Mar 26, 2015
Same issue.
chrene commentedon Mar 30, 2015
Got it to work with the following command:
tns platform add ios --frameworkPath /usr/local/lib/node_modules/tns-iosSeems to be an issue where it can't find the
node_modules. However don't hang me up on that.rajivnarayana commentedon Apr 18, 2015
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.
Merge pull request #5 from NativeScript/feature/tab-get-view-methods
lock commentedon Aug 31, 2019
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.