输入nic.pl后提示没有发现命令

之前还能创建的…
后来就变成这样了…

你要输入nic.pl的全路径才行,因为你现在在这个目录下,直接输入

./nic.pl

就可以了。但是这个目录用普通用户权限已经应该是不可写的,所以既然nic运行成功了,应该也不能创建工程

:lol:是的…一时晕了…不过又学到个新的方法…谢谢了啊

我现在就遇到了这个问题。

$THEOS/bin/nic.pl
NIC 2.0 - New Instance Creator
------------------------------
  [1.] iphone/application
  [2.] iphone/cydget
  [3.] iphone/framework
  [4.] iphone/library
  [5.] iphone/notification_center_widget
  [6.] iphone/preference_bundle
  [7.] iphone/sbsettingstoggle
  [8.] iphone/tool
  [9.] iphone/tweak
  [10.] iphone/xpc_service
Choose a Template (required): 8
Project Name (required): rootdaemond
Package Name [com.yourcompany.rootdaemond]: com.iosre.rootdaemond
Author/Maintainer Name [0987]: diaosir
Instantiating iphone/tool in rootdaemond/...
Failed to create the directory 'rootdaemond': Permission denied

我用 sudo倒是不报错,但是根本找不到生成的文件夹。

sudo $THEOS/bin/nic.pl
Password:
NIC 2.0 - New Instance Creator
------------------------------
  [1.] iphone/application
  [2.] iphone/cydget
  [3.] iphone/framework
  [4.] iphone/library
  [5.] iphone/notification_center_widget
  [6.] iphone/preference_bundle
  [7.] iphone/sbsettingstoggle
  [8.] iphone/tool
  [9.] iphone/tweak
  [10.] iphone/xpc_service
Choose a Template (required): 8
Project Name (required): rootdaemond
Package Name [com.yourcompany.rootdaemond]: com.iosre.daemond
Author/Maintainer Name [System Administrator]: diaosir
Instantiating iphone/tool in rootdaemond/...
Done.

文件夹权限是这样的

0987dembp:theos d0987$ cd ./..
0987dembp:opt d0987$ ls -l
total 0
drwxr-xr-x   9 root  wheel  306 10 21 23:14 iOSOpenDev
drwxr-xr-x  11 root  admin  374 11 16 17:04 local
drwxr-xr-x  14 root  wheel  476 11 16 15:27 theos

你是在哪个路径下执行的nic.pl?

0987dembp:/ d0987$ $THEOS/bin/nic.pl

这0987dembp是什么?我才发现我不知道这个是什么,一直没注意。

你不应该在这个目录下操作,权限要求太高,容易出问题。改到/Users/xxx/下

我刚刚也发现了

确实是这样,感谢狗神。
这个细节应该会坑很多人,希望更多人能看到这帖子。

您好 我的目录在/Users/ttm/theos目录下 然后执行了./nic.pl 但是遇到了一个问题 如下

bin git:(master) ./nic.pl
[error] Cowardly refusing to make a project inside $THEOS (/Users/taotieming/theos/) 您有遇到过么 谢谢

执行nic.pl时的路径不能是theos的安装目录

谢谢你 :grinning:

谢谢,我的之前也是放到桌面了,按大神的说法,放到user下就好了。

theos在根目录的时候不能执行,移动到/Users/xxx/目录下还是不能执行。

普通权限下提示 No such file or directory ,root权限下提示 command not found

我跟着nic指向的路径看了一下,vendor/bin/nic/nic.pl没有

vim ~/.bash_profile
添加一下几行:
export PATH=/opt/MonkeyDev/bin:$PATH

export THEOS=/opt/theos

export PATH=/opt/theos/bin/:$PATH
这样就可以全局使用nic.pl

找到原因了,是因为git clone的策略问题冲突,导致submodule没有clone下来。

能说一下你是怎么解决的吗 我也遇到了跟你一样的问题