2015-05-02 5 views
0

Я отправил свое приложение в первый раз в App Store. Он был отклонен, потому что он разбился при запуске.Не удалось реплицировать обзор приложений Crash

Я прочесал журнал аварий, но мне непонятно, почему приложение разбилось. Я также развернул свой двоичный файл с помощью Ad Hoc, и я не смог выполнить репликацию сбоя. Из 511 строк на трассе появляется только один из моих методов. Ниже приведен код из метода, который появляется в журнале сбоев. Для меня нет ничего очевидного, почему он сбой, и он отлично работает на устройстве при использовании Ad Hoc.

- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error { 
    // NSLog(@"error in loading banner"); 
    self.csBannerViewToolbarVerticalSpace.constant = - self.csToolbarHeight.constant - self.bannerView.frame.size.height; 
    [UIView animateWithDuration:0.25 
       animations:^{ 
        [self.view layoutIfNeeded]; // Called on parent view 
       }]; 
    self.adLoaded = NO; 
} 

Вот журнал аварий, который прислал мне яблоко. Я включаю только первые 180 строк основной трассировки потока. Это продолжается еще 331 строчка.

Incident Identifier: BEE5DBAE-78AA-4B7A-A00E-8FD2EC491E4E 
CrashReporter Key: 45e776ed0586d581aba248bf3f23eaf42a231f2c 
Hardware Model:  xxx 
Process:    MyApp [5844] 
Path:    /private/var/mobile/Containers/Bundle/Application/9A5F7578-CAB5-460D-A24E-F33646E3177D/MyApp.app/MyApp 
Identifier:   com.MyCompany.MyApp 
Version:    1.1 (1.0) 
Code Type:   ARM-64 (Native) 
Parent Process:  launchd [1] 

Date/Time:   2015-04-29 10:54:14.160 -0700 
Launch Time:   2015-04-29 10:54:08.513 -0700 
OS Version:   iOS 8.3 (12F69) 
Report Version:  105 

Exception Type: EXC_BAD_ACCESS (SIGILL) 
Exception Subtype: KERN_PROTECTION_FAILURE at 0x000000016fcdffb0 
Triggered by Thread: 0 

Thread 0 name: Dispatch queue: com.apple.main-thread 
Thread 0 Crashed: 
0 libsystem_malloc.dylib   0x000000019426e3e4 0x19425c000 + 74724 
1 libsystem_malloc.dylib   0x000000019426d060 0x19425c000 + 69728 
2 libsystem_malloc.dylib   0x000000019425d3e0 0x19425c000 + 5088 
3 libsystem_malloc.dylib   0x0000000194261a00 0x19425c000 + 23040 
4 CoreGraphics     0x000000018260ae94 0x1825b4000 + 355988 
5 CoreGraphics     0x00000001825c55f0 0x1825b4000 + 71152 
6 CoreGraphics     0x00000001825c1730 0x1825b4000 + 55088 
7 CoreGraphics     0x00000001825c0708 0x1825b4000 + 50952 
8 libRIP.A.dylib     0x000000018297972c 0x182970000 + 38700 
9 libRIP.A.dylib     0x0000000182978b00 0x182970000 + 35584 
10 CoreGraphics     0x00000001825c0438 0x1825b4000 + 50232 
11 UIKit       0x0000000186dcd610 0x186dac000 + 136720 
12 UIKit       0x0000000186dcb5d0 0x186dac000 + 128464 
13 UIKit       0x0000000186dcab68 0x186dac000 + 125800 
14 UIKit       0x000000018710333c 0x186dac000 + 3502908 
15 UIKit       0x0000000186dca58c 0x186dac000 + 124300 
16 UIKit       0x00000001871d2d1c 0x186dac000 + 4353308 
17 UIKit       0x0000000186e13854 0x186dac000 + 424020 
18 UIKit       0x0000000186e79d7c 0x186dac000 + 843132 
19 UIKit       0x0000000186db975c 0x186dac000 + 55132 
20 QuartzCore      0x0000000186701e18 0x1866f4000 + 56856 
21 QuartzCore      0x00000001866fc880 0x1866f4000 + 34944 
22 UIKit       0x0000000186dcdf90 0x186dac000 + 139152 
23 UIKit       0x0000000186f25658 0x186dac000 + 1545816 
24 UIKit       0x0000000186f1d9f8 0x186dac000 + 1513976 
25 UIKit       0x0000000186f1bb30 0x186dac000 + 1506096 
26 UIKit       0x0000000186f168d4 0x186dac000 + 1485012 
27 UIKit       0x000000018711476c 0x186dac000 + 3573612 
28 UIKit       0x00000001872a76b4 0x186dac000 + 5224116 
29 UIKit       0x00000001872a7370 0x186dac000 + 5223280 
30 Foundation      0x000000018335c394 0x183188000 + 1917844 
31 UIKit       0x00000001872a76b4 0x186dac000 + 5224116 
32 UIKit       0x00000001872a7370 0x186dac000 + 5223280 
33 UIKit       0x00000001871dd144 0x186dac000 + 4395332 
34 UIKit       0x00000001872a76b4 0x186dac000 + 5224116 
35 UIKit       0x00000001872a7654 0x186dac000 + 5224020 
36 UIKit       0x00000001872a7370 0x186dac000 + 5223280 
37 UIKit       0x00000001871dc5a4 0x186dac000 + 4392356 
38 UIKit       0x00000001870d8380 0x186dac000 + 3326848 
39 UIKit       0x0000000186dbca24 0x186dac000 + 68132 
40 UIKit       0x0000000186dbc990 0x186dac000 + 67984 
41 MyApp      0x00000001000537f0 __63-[EBMainViewController bannerView:didFailToReceiveAdWithError:]_block_invoke (EBMainViewController.m:596) 
42 UIKit       0x0000000186df176c 0x186dac000 + 284524 
43 UIKit       0x0000000186df1564 0x186dac000 + 284004 
44 MyApp      0x0000000100053798 -[EBMainViewController bannerView:didFailToReceiveAdWithError:] (EBMainViewController.m:594) 
45 iAd        0x0000000187a500dc 0x187a4c000 + 16604 
46 iAd        0x0000000187a4fc00 0x187a4c000 + 15360 
47 Foundation      0x00000001831b547c 0x183188000 + 185468 
48 UIKit       0x00000001870906fc 0x186dac000 + 3032828 
49 CoreFoundation     0x00000001822a751c 0x182254000 + 341276 
50 UIKit       0x00000001871dc79c 0x186dac000 + 4392860 
51 UIKit       0x00000001870d8380 0x186dac000 + 3326848 
52 UIKit       0x0000000186dbca24 0x186dac000 + 68132 
53 UIKit       0x0000000186dbc990 0x186dac000 + 67984 
54 MyApp      0x00000001000537f0 __63-[EBMainViewController bannerView:didFailToReceiveAdWithError:]_block_invoke (EBMainViewController.m:596) 
55 UIKit       0x0000000186df176c 0x186dac000 + 284524 
56 UIKit       0x0000000186df1564 0x186dac000 + 284004 
57 MyApp      0x0000000100053798 -[EBMainViewController bannerView:didFailToReceiveAdWithError:] (EBMainViewController.m:594) 
58 iAd        0x0000000187a500dc 0x187a4c000 + 16604 
59 iAd        0x0000000187a4fc00 0x187a4c000 + 15360 
60 Foundation      0x00000001831b547c 0x183188000 + 185468 
61 UIKit       0x00000001870906fc 0x186dac000 + 3032828 
62 CoreFoundation     0x00000001822a751c 0x182254000 + 341276 
63 UIKit       0x00000001871dc79c 0x186dac000 + 4392860 
64 UIKit       0x00000001870d8380 0x186dac000 + 3326848 
65 UIKit       0x0000000186dbca24 0x186dac000 + 68132 
66 UIKit       0x0000000186dbc990 0x186dac000 + 67984 
67 MyApp      0x00000001000537f0 __63-[EBMainViewController bannerView:didFailToReceiveAdWithError:]_block_invoke (EBMainViewController.m:596) 
68 UIKit       0x0000000186df176c 0x186dac000 + 284524 
69 UIKit       0x0000000186df1564 0x186dac000 + 284004 
70 MyApp      0x0000000100053798 -[EBMainViewController bannerView:didFailToReceiveAdWithError:] (EBMainViewController.m:594) 
71 iAd        0x0000000187a500dc 0x187a4c000 + 16604 
72 iAd        0x0000000187a4fc00 0x187a4c000 + 15360 
73 Foundation      0x00000001831b547c 0x183188000 + 185468 
74 UIKit       0x00000001870906fc 0x186dac000 + 3032828 
75 CoreFoundation     0x00000001822a751c 0x182254000 + 341276 
76 UIKit       0x00000001871dc79c 0x186dac000 + 4392860 
77 UIKit       0x00000001870d8380 0x186dac000 + 3326848 
78 UIKit       0x0000000186dbca24 0x186dac000 + 68132 
79 UIKit       0x0000000186dbc990 0x186dac000 + 67984 
80 MyApp      0x00000001000537f0 __63-[EBMainViewController bannerView:didFailToReceiveAdWithError:]_block_invoke (EBMainViewController.m:596) 
81 UIKit       0x0000000186df176c 0x186dac000 + 284524 
82 UIKit       0x0000000186df1564 0x186dac000 + 284004 
83 MyApp      0x0000000100053798 -[EBMainViewController bannerView:didFailToReceiveAdWithError:] (EBMainViewController.m:594) 
84 iAd        0x0000000187a500dc 0x187a4c000 + 16604 
85 iAd        0x0000000187a4fc00 0x187a4c000 + 15360 
86 Foundation      0x00000001831b547c 0x183188000 + 185468 
87 UIKit       0x00000001870906fc 0x186dac000 + 3032828 
88 CoreFoundation     0x00000001822a751c 0x182254000 + 341276 
89 UIKit       0x00000001871dc79c 0x186dac000 + 4392860 
90 UIKit       0x00000001870d8380 0x186dac000 + 3326848 
91 UIKit       0x0000000186dbca24 0x186dac000 + 68132 
92 UIKit       0x0000000186dbc990 0x186dac000 + 67984 
93 MyApp      0x00000001000537f0 __63-[EBMainViewController bannerView:didFailToReceiveAdWithError:]_block_invoke (EBMainViewController.m:596) 
94 UIKit       0x0000000186df176c 0x186dac000 + 284524 
95 UIKit       0x0000000186df1564 0x186dac000 + 284004 
96 MyApp      0x0000000100053798 -[EBMainViewController bannerView:didFailToReceiveAdWithError:] (EBMainViewController.m:594) 
97 iAd        0x0000000187a500dc 0x187a4c000 + 16604 
98 iAd        0x0000000187a4fc00 0x187a4c000 + 15360 
99 Foundation      0x00000001831b547c 0x183188000 + 185468 
100 UIKit       0x00000001870906fc 0x186dac000 + 3032828 
101 CoreFoundation     0x00000001822a751c 0x182254000 + 341276 
102 UIKit       0x00000001871dc79c 0x186dac000 + 4392860 
103 UIKit       0x00000001870d8380 0x186dac000 + 3326848 
104 UIKit       0x0000000186dbca24 0x186dac000 + 68132 
105 UIKit       0x0000000186dbc990 0x186dac000 + 67984 
106 MyApp      0x00000001000537f0 __63-[EBMainViewController bannerView:didFailToReceiveAdWithError:]_block_invoke (EBMainViewController.m:596) 
107 UIKit       0x0000000186df176c 0x186dac000 + 284524 
108 UIKit       0x0000000186df1564 0x186dac000 + 284004 
109 MyApp      0x0000000100053798 -[EBMainViewController bannerView:didFailToReceiveAdWithError:] (EBMainViewController.m:594) 
110 iAd        0x0000000187a500dc 0x187a4c000 + 16604 
111 iAd        0x0000000187a4fc00 0x187a4c000 + 15360 
112 Foundation      0x00000001831b547c 0x183188000 + 185468 
113 UIKit       0x00000001870906fc 0x186dac000 + 3032828 
114 CoreFoundation     0x00000001822a751c 0x182254000 + 341276 
115 UIKit       0x00000001871dc79c 0x186dac000 + 4392860 
116 UIKit       0x00000001870d8380 0x186dac000 + 3326848 
117 UIKit       0x0000000186dbca24 0x186dac000 + 68132 
118 UIKit       0x0000000186dbc990 0x186dac000 + 67984 
119 MyApp      0x00000001000537f0 __63-[EBMainViewController bannerView:didFailToReceiveAdWithError:]_block_invoke (EBMainViewController.m:596) 
120 UIKit       0x0000000186df176c 0x186dac000 + 284524 
121 UIKit       0x0000000186df1564 0x186dac000 + 284004 
122 MyApp      0x0000000100053798 -[EBMainViewController bannerView:didFailToReceiveAdWithError:] (EBMainViewController.m:594) 
123 iAd        0x0000000187a500dc 0x187a4c000 + 16604 
124 iAd        0x0000000187a4fc00 0x187a4c000 + 15360 
125 Foundation      0x00000001831b547c 0x183188000 + 185468 
126 UIKit       0x00000001870906fc 0x186dac000 + 3032828 
127 CoreFoundation     0x00000001822a751c 0x182254000 + 341276 
128 UIKit       0x00000001871dc79c 0x186dac000 + 4392860 
129 UIKit       0x00000001870d8380 0x186dac000 + 3326848 
130 UIKit       0x0000000186dbca24 0x186dac000 + 68132 
131 UIKit       0x0000000186dbc990 0x186dac000 + 67984 
132 MyApp      0x00000001000537f0 __63-[EBMainViewController bannerView:didFailToReceiveAdWithError:]_block_invoke (EBMainViewController.m:596) 
133 UIKit       0x0000000186df176c 0x186dac000 + 284524 
134 UIKit       0x0000000186df1564 0x186dac000 + 284004 
135 MyApp      0x0000000100053798 -[EBMainViewController bannerView:didFailToReceiveAdWithError:] (EBMainViewController.m:594) 
136 iAd        0x0000000187a500dc 0x187a4c000 + 16604 
137 iAd        0x0000000187a4fc00 0x187a4c000 + 15360 
138 Foundation      0x00000001831b547c 0x183188000 + 185468 
139 UIKit       0x00000001870906fc 0x186dac000 + 3032828 
140 CoreFoundation     0x00000001822a751c 0x182254000 + 341276 
141 UIKit       0x00000001871dc79c 0x186dac000 + 4392860 
142 UIKit       0x00000001870d8380 0x186dac000 + 3326848 
143 UIKit       0x0000000186dbca24 0x186dac000 + 68132 
144 UIKit       0x0000000186dbc990 0x186dac000 + 67984 
145 MyApp      0x00000001000537f0 __63-[EBMainViewController bannerView:didFailToReceiveAdWithError:]_block_invoke (EBMainViewController.m:596) 
146 UIKit       0x0000000186df176c 0x186dac000 + 284524 
147 UIKit       0x0000000186df1564 0x186dac000 + 284004 
148 MyApp      0x0000000100053798 -[EBMainViewController bannerView:didFailToReceiveAdWithError:] (EBMainViewController.m:594) 
149 iAd        0x0000000187a500dc 0x187a4c000 + 16604 
150 iAd        0x0000000187a4fc00 0x187a4c000 + 15360 
151 Foundation      0x00000001831b547c 0x183188000 + 185468 
152 UIKit       0x00000001870906fc 0x186dac000 + 3032828 
153 CoreFoundation     0x00000001822a751c 0x182254000 + 341276 
154 UIKit       0x00000001871dc79c 0x186dac000 + 4392860 
155 UIKit       0x00000001870d8380 0x186dac000 + 3326848 
156 UIKit       0x0000000186dbca24 0x186dac000 + 68132 
157 UIKit       0x0000000186dbc990 0x186dac000 + 67984 
158 MyApp      0x00000001000537f0 __63-[EBMainViewController bannerView:didFailToReceiveAdWithError:]_block_invoke (EBMainViewController.m:596) 
159 UIKit       0x0000000186df176c 0x186dac000 + 284524 
160 UIKit       0x0000000186df1564 0x186dac000 + 284004 
161 MyApp      0x0000000100053798 -[EBMainViewController bannerView:didFailToReceiveAdWithError:] (EBMainViewController.m:594) 
162 iAd        0x0000000187a500dc 0x187a4c000 + 16604 
163 iAd        0x0000000187a4fc00 0x187a4c000 + 15360 
164 Foundation      0x00000001831b547c 0x183188000 + 185468 
165 UIKit       0x00000001870906fc 0x186dac000 + 3032828 
166 CoreFoundation     0x00000001822a751c 0x182254000 + 341276 
167 UIKit       0x00000001871dc79c 0x186dac000 + 4392860 
168 UIKit       0x00000001870d8380 0x186dac000 + 3326848 
169 UIKit       0x0000000186dbca24 0x186dac000 + 68132 
170 UIKit       0x0000000186dbc990 0x186dac000 + 67984 
171 MyApp      0x00000001000537f0 __63-[EBMainViewController bannerView:didFailToReceiveAdWithError:]_block_invoke (EBMainViewController.m:596) 
172 UIKit       0x0000000186df176c 0x186dac000 + 284524 
173 UIKit       0x0000000186df1564 0x186dac000 + 284004 
174 MyApp      0x0000000100053798 -[EBMainViewController bannerView:didFailToReceiveAdWithError:] (EBMainViewController.m:594) 
175 iAd        0x0000000187a500dc 0x187a4c000 + 16604 
176 iAd        0x0000000187a4fc00 0x187a4c000 + 15360 
177 Foundation      0x00000001831b547c 0x183188000 + 185468 
178 UIKit       0x00000001870906fc 0x186dac000 + 3032828 
179 CoreFoundation     0x00000001822a751c 0x182254000 + 341276 
180 UIKit       0x00000001871dc79c 0x186dac000 + 4392860 

Я был бы признателен за любые предложения о том, как интерпретировать мой журнал сбоев и/или, как повторить аварии на моем устройстве. Заранее спасибо.

+0

Похож на рекурсию или безусловный цикл для меня. Вы уже выполнили следующие шаги: https://developer.apple.com/library/ios/qa/qa1764/_index.html? –

+0

Вы получаете рекурсию в свой метод. Это вызвано анимацией для макета 'self.view'. Я бы предложил символизировать отчет о сбое, чтобы узнать больше о том, что происходит. Я также предлагаю проверить это в процессе разработки, чтобы узнать, что происходит, когда в тестовую среду не загружается ни одно объявление. – rmaddy

+0

@BradBrighton Я последовал этим шагам и не смог воспроизвести крах. – WeekendCodeWarrior

ответ

0

Это определенно бесконечная рекурсия. Попытайтесь не загружать объявления, я бы начал с чего-то простого, например, отключить Wi-Fi/сотовые данные. Или вы можете заменить логику загрузки объявлений ручным сбоем - просто вызовите свой собственный блок отказов вместо загрузки объявлений.

+0

Я не понимаю ваш второй комментарий. Я использую и «AdBannerView», который, согласно яблочным документам, говорит, что он автоматически загружает объявление в фоновом режиме. Я не думаю, что я сам что-то делаю, чтобы реализовать загрузку объявлений за пределы того, что делает api. – WeekendCodeWarrior

+0

Извините, я испортил. Но скажите мне, что вы делаете в 'bannerView: didFailToReceiveAdWithError:'? Похоже на добавление нового AdBannerView – ReDetection

+0

Я меняю ограничение автоматического макета, а затем анимирую, чтобы переместить экран «AdBannerView», когда объявление не загружается. – WeekendCodeWarrior

Смежные вопросы