1
如何为theos控制台应用程序(工具)设置套件ID?如何为theos控制台应用程序设置套件ID
在我的代码,这
NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
NSLog(@"MYBid: %@", bundleIdentifier");
总是打印(null)
要创建我的工具,我做这个
$ ./theos/bin/nic.pl
NIC 2.0 - New Instance Creator
------------------------------
[1.] iphone/application
[2.] iphone/library
[3.] iphone/preference_bundle
[4.] iphone/tool
[5.] iphone/tweak
Choose a Template (required): 4
Project Name (required): tst
Package Name [com.yourcompany.tst]:
Author/Maintainer Name [tst]: tst
为什么不是我的包ID“com.yourcompany.tst “?
看起来您正在制作一个“工具”,即i。即一个命令行非Cocoa应用程序。那些没有任何捆绑ID。 – 2013-08-23 11:13:16
其实他们可以有捆绑ID。例如,如果您查看iOS 6中的映像,您可以看到它是一个在系统启动时作为守护进程启动的命令行应用程序,它具有捆绑ID - com.apple.imagent – creker