是城市飞艇1.1.3版本所需的libSystem.B.dylib和/或-all_load标志



我正在使用Urban Airship向iPhone应用程序的用户发送推送通知。

我正在使用:

  • Xcode 4.2.1
  • iOS 5 SDK
  • 利比亚1.1.3
  • 针对iOS 4.3&以上

问题

  1. 是否仍然需要针对libSystem.B.dylib的"弱"链接(即标记为可选)?我希望这不是因为它不适用于iOS模拟器。

  2. 是否需要"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)

崩溃是否与库或链接器标志有关?或者有什么想法吗

在CHANGELOG for urbanairship/ios库中找到了这个:

  • 删除了对额外链接器标志(all_load和对libSystem.B的弱引用)的需要

最新更新