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