我正在使用 Urban Airship 向 iPhone 应用程序的用户发送推送通知。
我在用:
- Xcode 4.2.1
- iOS 5 开发工具包
- libUAirship 1.1.3
- 针对 iOS 4.3 及更高版本
问题
是否需要针对 libSystem.B.dylib 的“弱”链接(即标记为可选)(仍然)?我希望这不是因为它不适用于 iOS 模拟器。
是否需要“all_load”其他链接器标志?
我没有使用其中任何一个(因为当我最近更新到 libUAirship 1.1.3 时,它们看起来好像已从说明中删除)。
我看到几个带有 iOS 5.0.1 的 iPhone 4S 与 SIGSEGV (SEGV_ACCERR) 一起崩溃:
0 libobjc.A.dylib 0x315d0fbc objc_msgSend + 15
1 Schools 0x00054d5f -[UA_ASIHTTPRequest handleStreamError] (UA_ASIHTTPRequest.m:3656)
2 Schools 0x0005518b -[UA_ASIHTTPRequest scheduleReadStream] (UA_ASIHTTPRequest.m:3713)
3 Foundation 0x31a21943 __NSFireDelayedPerform + 414
4 CoreFoundation 0x37ac4a63 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
5 CoreFoundation 0x37ac46c9 __CFRunLoopDoTimer + 364
6 CoreFoundation 0x37ac329f __CFRunLoopRun + 1206
7 CoreFoundation 0x37a464dd CFRunLoopRunSpecific + 300
8 CoreFoundation 0x37a463a5 CFRunLoopRunInMode + 104
9 GraphicsServices 0x375c4fcd GSEventRunModal + 156
10 UIKit 0x34ed6743 UIApplicationMain + 1090
11 Schools 0x0002686f -[NotificationsViewController tappedModelRowAtIndexPath:] (NotificationsViewController.m:195)
崩溃是否与库或链接器标志有关?或者对正在发生的事情有什么想法?