我正在使用Jailbreak + Appsync + iOS5.0.1设备(没有开发人员许可证但有一些技巧我可以在设备上运行我的应用程序)
现在我想使用私有API launchApplicationWithIdentifier:suspended:.所以我需要补充一下
<key>com.apple.springboard.launchapplications</key>
<true/>
Run Code Online (Sandbox Code Playgroud)
到myApp.entitlements.plist文件.然后它应该工作但我仍然得到错误
'Receiver type 'UIApplication' for instance message does not declare a method
with selector 'launchApplicationWithIdentifier:suspended:''
Run Code Online (Sandbox Code Playgroud)
然后我发现有人说,如果我想使用Entitlements.plist,必须启用代码签名.这是真的吗?我必须拥有开发者许可证吗?
或者有没有其他方法来使用这种方法?我读了一些关于如何使用私有API的方法.这似乎很难.我是iOS开发的新手.
谢谢.
jailbreak iphone-privateapi entitlements code-signing-entitlements
[EDIT]我已将我的设备装上。我在Github上找到了最新的私有API iOS-Runtime-Headers。
我想在我的应用中使用私有API。
我在github上找到了kennytm / iphone-private-frameworks,但它仅支持iOS3.x。当我在iOS 5.0.1上工作时。
我还在Google iPhone开发工具上找到了一些代码。但这确实让我感到困惑。我是iPhone开发的新手。
我应该怎么用
[[UIApplication sharedApplication] launchApplicationWithIdentifier:@"com.a.b" suspended:NO];
Run Code Online (Sandbox Code Playgroud)
有人可以给我一个方向或一些例子。非常感谢。
我找到了这个类PSCellularDataSettingsDetail及其方法+(void)setEnabled:(BOOL)enabled;,我认为它会给我我需要的东西,即访问移动数据设置.
我通过打开编译Preferences.framework使用找到了这个方法class-dump-z.
现在我找到了这个答案并尝试以这种方式访问类和方法,但该类也是私有的.如何打开这个类到Xcode?