iPad iPhone能创建守护进程吗? 我目前在做iPad设备上的自动化测试,编写一个Test Client,接收PC的任务,播放制定列表中的媒体文件(几百个,全部完成会持续十几个小时),但是我的test client运行一段时间后就会crash,不能完成测试。 Boss要求:test client crash之后需要再次启动,我考虑使用守护进程,但是最初开发的人告诉我,IOS不允许守护进程,我在网上搜索到有人说不放到App Store就可以。 非常谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1、越狱2、写一个守护进程3、在 /Library/LaunchDaemons放一个list文件。<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>MyScript</string> <key>ProgramArguments</key> <array> <string>/path/to/Application.app/Application</string> </array> <key>RunAtLoad</key> <true/> <key>StartInterval</key> <integer>900</integer> </dict> </plist> path/to/Application.app/Application:指定运行的程序。 请注意啊,启动的程序必须为 守护进程即是没有界面的程序了,不可能启动一个app了 1、越狱2、写一个守护进程3、在 /Library/LaunchDaemons放一个list文件。<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>MyScript</string> <key>ProgramArguments</key> <array> <string>/path/to/Application.app/Application</string> </array> <key>RunAtLoad</key> <true/> <key>StartInterval</key> <integer>900</integer> </dict> </plist> path/to/Application.app/Application:指定运行的程序。 请注意啊,启动的程序必须为 守护进程即是没有界面的程序了,不可能启动一个app了 1、越狱2、写一个守护进程3、在 /Library/LaunchDaemons放一个list文件。3Java代码 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>MyScript</string> <key>ProgramArguments</key> <array> <string>/path/to/Application.app/Application</string> </array> <key>RunAtLoad</key> <true/> <key>StartInterval</key> <integer>900</integer> </dict> </plist> path/to/Application.app/Application:指定运行的程序。 请注意啊,启动的程序必须为 守护进程即是没有界面的程序了,不可能启动一个app了 非常感谢这么详细的回答,不过我还有个疑问:"请注意啊,启动的程序必须为 守护进程即是没有界面的程序了,不可能启动一个app了".?这句话何解?PS:做为一个苦逼新人,任何意见都很宝贵,So,3Q 仅仅是自己测试的话,是可以的。把ipad,iphone越狱了,写个控制台程序在后台运行。 守护进程一定是没有界面的吗?请问WeFinder是怎么实现的后台定位的既程序杀掉了还能继续定位,如果不是开一个守护进程来操作是用什么机制呢 在mac平台上编译好的.a库文件怎么在xcode上使用? 大家好我安装虚拟机出错,提示找不到PlayerUI.cab 代码签名 请假炉石传说iPad版本如何能和pc版本数据同步 Unity3D生成的Xcode工程编译失败咨询 xcode6 empty application 微信支付 报错 not same appid with appid of access_token 关于APP图标问题 delphi xe6 怎么让iOS程序的启动画面横屏 swift 使用NSURL.fileURLWithPath()方法报错,求大神帮忙解决 uicolor 取色的问题 vmware安装mac卡logo
2、写一个守护进程
3、在 /Library/LaunchDaemons放一个list文件。<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>MyScript</string>
<key>ProgramArguments</key>
<array>
<string>/path/to/Application.app/Application</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>900</integer>
</dict>
</plist>
path/to/Application.app/Application:指定运行的程序。
请注意啊,启动的程序必须为 守护进程即是没有界面的程序了,不可能启动一个app了
2、写一个守护进程
3、在 /Library/LaunchDaemons放一个list文件。<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>MyScript</string>
<key>ProgramArguments</key>
<array>
<string>/path/to/Application.app/Application</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>900</integer>
</dict>
</plist>
path/to/Application.app/Application:指定运行的程序。
请注意啊,启动的程序必须为 守护进程即是没有界面的程序了,不可能启动一个app了
2、写一个守护进程
3、在 /Library/LaunchDaemons放一个list文件。3
Java代码
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>MyScript</string>
<key>ProgramArguments</key>
<array>
<string>/path/to/Application.app/Application</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>900</integer>
</dict>
</plist>
path/to/Application.app/Application:指定运行的程序。
请注意啊,启动的程序必须为 守护进程即是没有界面的程序了,不可能启动一个app了