iphone ios 3.0.1,设备无法获取设备令牌也无法报告错误?
好的,我有一部 ios 3.0.1 的 iPhone 我已打开 wifi,但没有蜂窝网络。
我已经正确创建了我的配置文件和证书。为什么?...一会儿告诉你 无论如何,当我运行应用程序时,我已经放入了 NSLog,
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
- (void)application:(UIApplication *)app didFailToRegisterForRemoteNotificationsWithError:(NSError *)err
但是当我运行应用程序时,我没有得到任何东西,没有成功也没有错误。
无论如何,我尝试了相同的应用程序并在带有 ios 4.0 的 iphone 上运行它,它确实有效并且打印了设备令牌。 哦,他们都使用相同的 wifi 网络。
可能是设备的原因? ios?或者wifi连接的安全性? 在这种情况下至少不应该给我一个错误吗?
可能是缺少库文件造成的,
warning: Unable to read symbols for "/Library/MobileSubstrate/MobileSubstrate.dylib" (file not found).
谢谢
ok i have an iphone with ios 3.0.1
i have wifi turned on, no cellular network.
I have created my provisioning profile, my certificate correctly. why?... gonna tell you in a while
anyway, when i run the application, i have put NSLog in
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
- (void)application:(UIApplication *)app didFailToRegisterForRemoteNotificationsWithError:(NSError *)err
but when i run the application i don't get anything, no success nor error.
anyway i tried the SAME APPLICATION and run it on iphone with ios 4.0 and it did work and it printed the device token.
Oh and they are both using the same wifi network.
could it be the device? the ios ? or the security of the wifi connection?
and shouldn't at least give me an error in that case?
could that be caused by the missing library file
warning: Unable to read symbols for "/Library/MobileSubstrate/MobileSubstrate.dylib" (file not found).
thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 Apple 文档:
关于你问题的第二部分,
MobileSubstrate
不是罪魁祸首,这是一条正常的日志消息......来自越狱的 iPhone :)According to Apple Documentation :
About second part of your question,
MobileSubstrate
is not the culprit, this is a normal log message... from a jailbroken iPhone :)