-force_load

Crash Log:

Last Exception Backtrace:

0   CoreFoundation                 0x2f087f06 __exceptionPreprocess + 126
1   libobjc.A.dylib               0x3981ece2 objc_exception_throw + 34
2   CoreFoundation                 0x2f08b832 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
3   CoreFoundation                 0x2f08a132 ___forwarding___ + 702
4   CoreFoundation                 0x2efd9094 _CF_forwarding_prep_0 + 20
5   AmazingBOX                     0x0036cebe -[RHAddressBookSharedServices init] (RHAddressBookSharedServices.m:124)

6   AmazingBOX                     0x0036cc62 +[RHAddressBookSharedServices sharedInstance] (RHAddressBookSharedServices.m:98)


原因:

Project引用了RHAddressBook库,当中有catagory类NSThread+RHBlockAdditions.h。

因此,须要在other linker flag里面使用-ObjC、-force_load或者-all_load。


解决:改动链接參数(Other Linker Flag)

1.去掉-ObjC、 -all_load參数(这个參数会强制全部的静态链接库都载入当中的category);

2.改为逐一载入Three20的各个静态库,即改动链接參数(Other Linker Flag)为例如以下形式:
-force_load $(SRCROOT)/RHAddressBook/libRHAddressBook.a

set_level_shifter strategy_name -domain domain_name [-elements port_pin_list] [-exclude_elements exclude_list] [-applies_to inputs | outputs | both] [-applies_to_boundary upper | lower | both] [-threshold float] [-rule low_to_high | high_to_low | both] [-location self | parent | fanout | automatic] [-no_shift] [-force_shift] [-name_prefix prefix_string] [-name_suffix suffix_string] [-update] set_level_shifter –domain domain_name –elements ... [–applies_to ...] set_level_shifter –domain domain_name –applies_to [inputs | outputs] set_level_shifter –domain domain_name map_level_shifter_cell strategy_name -domain power_domain_name -lib_cells list use_interface_cell interface_implementation_name -domain domain_name -lib_cells lib_cell_list -strategy list_of_one_level_shifter_and_or_one_isolation set_isolation isolation_strategy_name -domain power_domain [-elements objects] [-exclude_elements exclude_list] [-applies_to inputs | outputs | both] [-applies_to_boundary upper | lower | both] [-clamp_value 0 | 1 | latch] [-isolation_power_net isolation_power_net] [-isolation_ground_net isolation_ground_net] [-isolation_supply isolation_supply_set] [-source source_supply_set_name] [-sink sink_supply_set_name] [-diff_supply_only true | false] [-no_isolation] [-force_isolation] [-name_prefix prefix_string] set_isolation_control isolation_strategy_name -domain power_domain -isolation_signal isolation_signal load_upf upf_file_name [-supplemental supf_file_name] [-scope string] [-noecho] save_upf upf_file_name [-supplemental supf_file_name] [-include_supply_exceptions] [-full_upf] 解释每一句命令什么意思
最新发布
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值