Skip to content

Commit 7f90bf3

Browse files
committed
v3.6
1 parent 6e7d5a5 commit 7f90bf3

File tree

191 files changed

+195
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+195
-61
lines changed
-16.2 KB
230 Bytes
93 Bytes
49 Bytes
6 Bytes

Instabug.bundle/IBG-T@2x~ipad.png

88 Bytes

Instabug.bundle/IBG-T@2x~iphone.png

93 Bytes

Instabug.bundle/IBG-T~ipad.png

2 Bytes

Instabug.bundle/IBG-T~iphone.png

7 Bytes
337 Bytes
314 Bytes

Instabug.bundle/IBG-color1~ipad.png

201 Bytes

Instabug.bundle/IBG-color1~iphone.png

207 Bytes
243 Bytes
242 Bytes

Instabug.bundle/IBG-color2~ipad.png

184 Bytes

Instabug.bundle/IBG-color2~iphone.png

152 Bytes
242 Bytes
215 Bytes

Instabug.bundle/IBG-color3~ipad.png

152 Bytes

Instabug.bundle/IBG-color3~iphone.png

146 Bytes
245 Bytes
224 Bytes

Instabug.bundle/IBG-color4~ipad.png

149 Bytes

Instabug.bundle/IBG-color4~iphone.png

137 Bytes
215 Bytes
219 Bytes

Instabug.bundle/IBG-color5~ipad.png

155 Bytes

Instabug.bundle/IBG-color5~iphone.png

132 Bytes
414 Bytes
322 Bytes

Instabug.bundle/IBG-color6~ipad.png

231 Bytes

Instabug.bundle/IBG-color6~iphone.png

172 Bytes
55 Bytes
56 Bytes
89 Bytes
69 Bytes
179 Bytes
91 Bytes

Instabug.bundle/IBG-delete~ipad.png

88 Bytes

Instabug.bundle/IBG-delete~iphone.png

30 Bytes

Instabug.bundle/IBG-pen@2x~ipad.png

652 Bytes

Instabug.bundle/IBG-pen@2x~iphone.png

619 Bytes

Instabug.bundle/IBG-pen~ipad.png

298 Bytes

Instabug.bundle/IBG-pen~iphone.png

300 Bytes
45 Bytes
45 Bytes
22 Bytes
22 Bytes
33 Bytes
33 Bytes
21 Bytes
21 Bytes
34 Bytes
34 Bytes
18 Bytes
18 Bytes
34 Bytes
34 Bytes
21 Bytes
21 Bytes
29 Bytes
29 Bytes
19 Bytes
19 Bytes
39 Bytes
39 Bytes
25 Bytes
25 Bytes

Instabug.bundle/IBG-tick@2x~ipad.png

145 Bytes
163 Bytes

Instabug.bundle/IBG-tick~ipad.png

-23 Bytes

Instabug.bundle/IBG-tick~iphone.png

81 Bytes

Instabug.bundle/IBGEdgeSwipe-1.png

264 Bytes

Instabug.bundle/IBGEdgeSwipe-10.png

260 Bytes

Instabug.bundle/IBGEdgeSwipe-11.png

272 Bytes

Instabug.bundle/IBGEdgeSwipe-12.png

276 Bytes

Instabug.bundle/IBGEdgeSwipe-13.png

279 Bytes

Instabug.bundle/IBGEdgeSwipe-14.png

288 Bytes

Instabug.bundle/IBGEdgeSwipe-15.png

272 Bytes

Instabug.bundle/IBGEdgeSwipe-16.png

263 Bytes

Instabug.bundle/IBGEdgeSwipe-17.png

256 Bytes

Instabug.bundle/IBGEdgeSwipe-18.png

269 Bytes

Instabug.bundle/IBGEdgeSwipe-19.png

269 Bytes

Instabug.bundle/IBGEdgeSwipe-2.png

259 Bytes

Instabug.bundle/IBGEdgeSwipe-20.png

269 Bytes

Instabug.bundle/IBGEdgeSwipe-21.png

269 Bytes

Instabug.bundle/IBGEdgeSwipe-22.png

269 Bytes

Instabug.bundle/IBGEdgeSwipe-3.png

247 Bytes

Instabug.bundle/IBGEdgeSwipe-4.png

245 Bytes

Instabug.bundle/IBGEdgeSwipe-5.png

251 Bytes

Instabug.bundle/IBGEdgeSwipe-6.png

277 Bytes

Instabug.bundle/IBGEdgeSwipe-7.png

276 Bytes

Instabug.bundle/IBGEdgeSwipe-8.png

274 Bytes

Instabug.bundle/IBGEdgeSwipe-9.png

276 Bytes

Instabug.bundle/IBGScreenshot-1.png

285 Bytes

Instabug.bundle/IBGScreenshot-10.png

285 Bytes

Instabug.bundle/IBGScreenshot-11.png

285 Bytes

Instabug.bundle/IBGScreenshot-12.png

285 Bytes

Instabug.bundle/IBGScreenshot-13.png

285 Bytes

Instabug.bundle/IBGScreenshot-14.png

285 Bytes

Instabug.bundle/IBGScreenshot-15.png

285 Bytes

Instabug.bundle/IBGScreenshot-16.png

285 Bytes

Instabug.bundle/IBGScreenshot-17.png

285 Bytes

Instabug.bundle/IBGScreenshot-18.png

285 Bytes

Instabug.bundle/IBGScreenshot-19.png

285 Bytes

Instabug.bundle/IBGScreenshot-2.png

225 Bytes

Instabug.bundle/IBGScreenshot-20.png

285 Bytes

Instabug.bundle/IBGScreenshot-21.png

285 Bytes

Instabug.bundle/IBGScreenshot-22.png

285 Bytes

Instabug.bundle/IBGScreenshot-23.png

285 Bytes

Instabug.bundle/IBGScreenshot-3.png

222 Bytes

Instabug.bundle/IBGScreenshot-4.png

234 Bytes

Instabug.bundle/IBGScreenshot-5.png

226 Bytes

Instabug.bundle/IBGScreenshot-6.png

220 Bytes

Instabug.bundle/IBGScreenshot-7.png

226 Bytes

Instabug.bundle/IBGScreenshot-8.png

227 Bytes

Instabug.bundle/IBGScreenshot-9.png

285 Bytes

Instabug.bundle/IBGShake-1.png

529 Bytes

Instabug.bundle/IBGShake-10.png

537 Bytes

Instabug.bundle/IBGShake-11.png

466 Bytes

Instabug.bundle/IBGShake-12.png

528 Bytes

Instabug.bundle/IBGShake-13.png

467 Bytes

Instabug.bundle/IBGShake-14.png

450 Bytes

Instabug.bundle/IBGShake-15.png

470 Bytes

Instabug.bundle/IBGShake-16.png

497 Bytes

Instabug.bundle/IBGShake-17.png

462 Bytes

Instabug.bundle/IBGShake-18.png

454 Bytes

Instabug.bundle/IBGShake-19.png

453 Bytes

Instabug.bundle/IBGShake-2.png

472 Bytes

Instabug.bundle/IBGShake-20.png

523 Bytes

Instabug.bundle/IBGShake-21.png

529 Bytes

Instabug.bundle/IBGShake-22.png

528 Bytes

Instabug.bundle/IBGShake-3.png

536 Bytes

Instabug.bundle/IBGShake-4.png

448 Bytes

Instabug.bundle/IBGShake-5.png

445 Bytes

Instabug.bundle/IBGShake-6.png

425 Bytes

Instabug.bundle/IBGShake-7.png

408 Bytes

Instabug.bundle/IBGShake-8.png

429 Bytes

Instabug.bundle/IBGShake-9.png

438 Bytes

Instabug.bundle/IBGSwipe-1.png

275 Bytes

Instabug.bundle/IBGSwipe-10.png

258 Bytes

Instabug.bundle/IBGSwipe-11.png

265 Bytes

Instabug.bundle/IBGSwipe-12.png

269 Bytes

Instabug.bundle/IBGSwipe-13.png

260 Bytes

Instabug.bundle/IBGSwipe-14.png

264 Bytes

Instabug.bundle/IBGSwipe-15.png

253 Bytes

Instabug.bundle/IBGSwipe-16.png

251 Bytes

Instabug.bundle/IBGSwipe-17.png

253 Bytes

Instabug.bundle/IBGSwipe-18.png

223 Bytes

Instabug.bundle/IBGSwipe-19.png

224 Bytes

Instabug.bundle/IBGSwipe-2.png

275 Bytes

Instabug.bundle/IBGSwipe-20.png

215 Bytes

Instabug.bundle/IBGSwipe-21.png

227 Bytes

Instabug.bundle/IBGSwipe-22.png

211 Bytes

Instabug.bundle/IBGSwipe-3.png

260 Bytes

Instabug.bundle/IBGSwipe-4.png

269 Bytes

Instabug.bundle/IBGSwipe-5.png

261 Bytes

Instabug.bundle/IBGSwipe-6.png

272 Bytes

Instabug.bundle/IBGSwipe-7.png

263 Bytes

Instabug.bundle/IBGSwipe-8.png

284 Bytes

Instabug.bundle/IBGSwipe-9.png

270 Bytes

Instabug.bundle/IBGTutorial-1.png

242 Bytes

Instabug.bundle/IBGTutorial-10.png

256 Bytes

Instabug.bundle/IBGTutorial-11.png

228 Bytes

Instabug.bundle/IBGTutorial-12.png

221 Bytes

Instabug.bundle/IBGTutorial-13.png

209 Bytes

Instabug.bundle/IBGTutorial-14.png

186 Bytes

Instabug.bundle/IBGTutorial-15.png

192 Bytes

Instabug.bundle/IBGTutorial-16.png

185 Bytes

Instabug.bundle/IBGTutorial-17.png

162 Bytes

Instabug.bundle/IBGTutorial-18.png

159 Bytes

Instabug.bundle/IBGTutorial-19.png

158 Bytes

Instabug.bundle/IBGTutorial-2.png

263 Bytes

Instabug.bundle/IBGTutorial-20.png

148 Bytes

Instabug.bundle/IBGTutorial-21.png

157 Bytes

Instabug.bundle/IBGTutorial-22.png

161 Bytes

Instabug.bundle/IBGTutorial-23.png

128 Bytes

Instabug.bundle/IBGTutorial-3.png

255 Bytes

Instabug.bundle/IBGTutorial-4.png

268 Bytes

Instabug.bundle/IBGTutorial-5.png

275 Bytes

Instabug.bundle/IBGTutorial-6.png

269 Bytes

Instabug.bundle/IBGTutorial-7.png

268 Bytes

Instabug.bundle/IBGTutorial-8.png

261 Bytes

Instabug.bundle/IBGTutorial-9.png

252 Bytes

Instabug.bundle/Info.plist

220 Bytes
Binary file not shown.

Instabug.bundle/Instabug_dsym_upload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ echo "Instabug: Started uploading dSYM"
2121

2222
# Check to make sure the app token exists
2323
if [ ! "${APP_TOKEN}" ]; then
24-
APP_TOKEN=$(grep -r 'Instabug startWithToken:@\"[0-9a-zA-Z]*\"' ./ | grep -o '\"[0-9a-zA-Z]*\"' | cut -d "\"" -f 2)
24+
APP_TOKEN=$(grep -r 'Instabug startWithToken:@\"[0-9a-zA-Z]*\"' ./ -m 1 | grep -o '\"[0-9a-zA-Z]*\"' | cut -d "\"" -f 2)
2525
fi
2626

2727
if [ ! "${APP_TOKEN}" ] || [ -z "${APP_TOKEN}" ];then

Instabug.framework/Versions/A/Headers/Instabug.h

Lines changed: 182 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Copyright: (c) 2014 by Instabug, Inc., all rights reserved.
77
8-
Version: 3.5
8+
Version: 3.6
99
*/
1010

1111
//===========================================================================================================================================
@@ -38,6 +38,14 @@
3838
//===========================================================================================================================================
3939
/** @name SDK Pro Features */
4040
//===========================================================================================================================================
41+
/**
42+
* Adds custom logs that will be sent with each report
43+
*
44+
* @param format format
45+
* @param ... ...
46+
*/
47+
void IBGLog(NSString *format, ...);
48+
4149
/**
4250
* Sets the user data that's attached with each bug report sent. Maximum size of the string is 1000 characters
4351
* @param userData userData
@@ -79,7 +87,7 @@
7987
//===========================================================================================================================================
8088

8189
//===========================================================================================================================================
82-
/** @name SDK Parameters' Initialization */
90+
/** @name SDK Functions Customization */
8391
//===========================================================================================================================================
8492
/**
8593
* Sets the event that invocates the feedback form
@@ -89,14 +97,6 @@
8997
*/
9098
+ (void)setInvocationEvent:(IBGInvocationEvent)invocationEvent;
9199

92-
/**
93-
* Sets the locale used to display the strings in the correct language
94-
*
95-
* Default is fetched from the device locale
96-
* @param locale locale
97-
*/
98-
+ (void)setLocale:(IBGLocale)locale;
99-
100100
/**
101101
* Sets whether to track the crashes in the app or not
102102
*
@@ -122,13 +122,25 @@
122122
+ (void)setIsTrackingUserSteps:(BOOL)isTrackingUserSteps;
123123

124124
/**
125-
* Sets whether to show a screenshot to be annotated or not
125+
* Sets whether to send the crash report immediatly on crash or not. When set to NO, the crash report is sent on the next app launch.
126126
*
127-
* Default = YES for bug reports, NO for feedback reports
128-
* @param willShowScreenshotAnnotation willShowScreenshotAnnotation
127+
* Default = NO
128+
* @param sendCrashReportsImmendiatly sendCrashReportsImmendiatly
129129
*/
130-
+ (void)setWillShowScreenshotAnnotation:(BOOL)willShowScreenshotAnnotation;
130+
+ (void)setWillSendCrashReportsImmendiatly:(BOOL)sendCrashReportsImmendiatly;
131131

132+
/**
133+
* Sets the default value of the email field
134+
*
135+
* Default = @""
136+
* @param defaultEmail defaultEmail
137+
*/
138+
+ (void)setDefaultEmail:(NSString *)defaultEmail;
139+
//===========================================================================================================================================
140+
141+
//===========================================================================================================================================
142+
/** @name SDK Experience Customization */
143+
//===========================================================================================================================================
132144
/**
133145
* Sets the default SDK mode upon invocation
134146
*
@@ -137,6 +149,14 @@
137149
*/
138150
+ (void)setDefaultInvocationMode:(IBGInvocationMode)invocationMode;
139151

152+
/**
153+
* Sets whether to show a screenshot to be annotated or not
154+
*
155+
* Default = YES for bug reports, NO for feedback reports
156+
* @param willShowScreenshotAnnotation willShowScreenshotAnnotation
157+
*/
158+
+ (void)setWillShowScreenshotAnnotation:(BOOL)willShowScreenshotAnnotation;
159+
140160
/**
141161
* Sets the default value of whether to ask the user for an email or not
142162
*
@@ -161,30 +181,6 @@
161181
*/
162182
+ (void)setCommentIsRequired:(BOOL)commentIsRequired;
163183

164-
/**
165-
* Sets the default value of the email field
166-
*
167-
* Default = @""
168-
* @param defaultEmail defaultEmail
169-
*/
170-
+ (void)setDefaultEmail:(NSString *)defaultEmail;
171-
172-
/**
173-
* Sets the placeholder text of the email field
174-
*
175-
* Default = @"Enter your email..."
176-
* @param emailPlaceholder emailPlaceholder
177-
*/
178-
+ (void)setEmailPlaceholder:(NSString *)emailPlaceholder;
179-
180-
/**
181-
* Sets the placeholder text of the comment field
182-
*
183-
* Default = @"Enter your feedback..."
184-
* @param commentPlaceholder commentPlaceholder
185-
*/
186-
+ (void)setCommentPlaceholder:(NSString *)commentPlaceholder;
187-
188184
/**
189185
* Sets the default value of the tutorial alert, that gets shown on launching the first bug report
190186
*
@@ -209,6 +205,22 @@
209205
*/
210206
+ (void)setWillShowFeedbackSentAlert:(BOOL)willShowFeedbackSentAlert;
211207

208+
/**
209+
* Sets the default offset of the floating button from the top of the screen. Different orientations are already handled
210+
*
211+
* Default = 50
212+
* @param floatingButtonOffsetFromTop floatingButtonOffsetFromTop
213+
*/
214+
+ (void)setFloatingButtonOffsetFromTop:(double)floatingButtonOffsetFromTop;
215+
216+
/**
217+
* Sets the default edge at which the floating button will be shown. Use CGRectMaxXEdge(right) or CGRectMinXEdge(left). Different orientations are already handled
218+
*
219+
* Default = CGRectMaxXEdge
220+
* @param floatingButtonEdge floatingButtonEdge
221+
*/
222+
+ (void)setFloatingButtonEdge:(CGRectEdge)floatingButtonEdge;
223+
212224
/**
213225
* Sets the threshold value of the shake gesture on iPhone/iPod Touch
214226
*
@@ -232,22 +244,6 @@
232244
* @param willVibrateOnInvocation willVibrateOnInvocation
233245
*/
234246
+ (void)setWillVibrateOnInvocation:(BOOL)willVibrateOnInvocation;
235-
236-
/**
237-
* Sets the default offset of the floating button from the top of the screen. Different orientations are already handled
238-
*
239-
* Default = 50
240-
* @param floatingButtonOffsetFromTop floatingButtonOffsetFromTop
241-
*/
242-
+ (void)setFloatingButtonOffsetFromTop:(double)floatingButtonOffsetFromTop;
243-
244-
/**
245-
* Sets the default edge at which the floating button will be shown. Use CGRectMaxXEdge(right) or CGRectMinXEdge(left). Different orientations are already handled
246-
*
247-
* Default = CGRectMaxXEdge
248-
* @param floatingButtonEdge floatingButtonEdge
249-
*/
250-
+ (void)setFloatingButtonEdge:(CGRectEdge)floatingButtonEdge;
251247
//===========================================================================================================================================
252248

253249
//===========================================================================================================================================
@@ -316,4 +312,136 @@
316312
*/
317313
+ (void)setFloatingButtonBackColor:(UIColor *)color;
318314
//===========================================================================================================================================
315+
316+
//===========================================================================================================================================
317+
/** @name SDK Strings Customization */
318+
//===========================================================================================================================================
319+
/**
320+
* Sets the locale used to display the strings in the correct language
321+
*
322+
* Default is fetched from the device locale
323+
* @param locale locale
324+
*/
325+
+ (void)setLocale:(IBGLocale)locale;
326+
327+
/**
328+
* Sets the text displayed in the header and the action sheet representing bug reports
329+
*
330+
* Default = @"Report a bug"
331+
* @param bugHeaderText bugHeaderText
332+
*/
333+
+ (void)setBugHeaderText:(NSString *)bugHeaderText;
334+
335+
/**
336+
* Sets the text displayed in the header and the action sheet representing feedback reports
337+
*
338+
* Default = @"Send Feedback"
339+
* @param feedbackHeaderText feedbackHeaderText
340+
*/
341+
+ (void)setFeedbackHeaderText:(NSString *)feedbackHeaderText;
342+
343+
/**
344+
* Sets the placeholder text of the email field
345+
*
346+
* Default = @"Enter your email..."
347+
* @param emailPlaceholder emailPlaceholder
348+
*/
349+
+ (void)setEmailPlaceholder:(NSString *)emailPlaceholder;
350+
351+
/**
352+
* Sets the placeholder text of the comment field
353+
*
354+
* Default = @"Enter your feedback..."
355+
* @param commentPlaceholder commentPlaceholder
356+
*/
357+
+ (void)setCommentPlaceholder:(NSString *)commentPlaceholder;
358+
359+
/**
360+
* Sets the text displayed in the alert shown on startup
361+
*
362+
* Default = @"Shake to send feedback"
363+
* @param startAlertText startAlertText
364+
*/
365+
+ (void)setStartAlertText:(NSString *)startAlertText;
366+
367+
/**
368+
* Sets the text displayed in the alert shown on sending the first report
369+
*
370+
* Default = @"Draw on screenshot then add text"
371+
* @param tutorialAlertText tutorialAlertText
372+
*/
373+
+ (void)setTutorialAlertText:(NSString *)tutorialAlertText;
374+
375+
/**
376+
* Sets the title displayed in the alert shown after sending reports
377+
*
378+
* Default = @"Feedback Sent"
379+
* @param feedbackSentAlertTitle feedbackSentAlertTitle
380+
*/
381+
+ (void)setFeedbackSentAlertTitle:(NSString *)feedbackSentAlertTitle;
382+
383+
/**
384+
* Sets the text displayed in the alert shown after sending reports
385+
*
386+
* Default = @"Thank you for helping us improve <App Name>!"
387+
* @param feedbackSentAlertText feedbackSentAlertText
388+
*/
389+
+ (void)setFeedbackSentAlertText:(NSString *)feedbackSentAlertText;
390+
391+
/**
392+
* Sets the title displayed in the alert shown when an invalid email is entered, and the email field is required
393+
*
394+
* Default = @"Invalid Email"
395+
* @param invalidEmailAlertTitle invalidEmailAlertTitle
396+
*/
397+
+ (void)setInvalidEmailAlertTitle:(NSString *)invalidEmailAlertTitle;
398+
399+
/**
400+
* Sets the text displayed in the alert shown when an invalid email is entered, and the email field is required
401+
*
402+
* Default = @"Please enter a valid email"
403+
* @param invalidEmailAlertText invalidEmailAlertText
404+
*/
405+
+ (void)setInvalidEmailAlertText:(NSString *)invalidEmailAlertText;
406+
407+
/**
408+
* Sets the title displayed in the alert shown when no comment is entered, and the comment field is required
409+
*
410+
* Default = @"Invalid Comment"
411+
* @param invalidCommentAlertTitle invalidCommentAlertTitle
412+
*/
413+
+ (void)setInvalidCommentAlertTitle:(NSString *)invalidCommentAlertTitle;
414+
415+
/**
416+
* Sets the text displayed in the alert shown when no comment is entered, and the comment field is required
417+
*
418+
* Default = @"Please enter a valid comment"
419+
* @param invalidCommentAlertText invalidCommentAlertText
420+
*/
421+
+ (void)setInvalidCommentAlertText:(NSString *)invalidCommentAlertText;
422+
423+
/**
424+
* Sets the text of the OK button that dismisses alerts
425+
*
426+
* Default = @"OK"
427+
* @param okButtonText okButtonText
428+
*/
429+
+ (void)setOkButtonText:(NSString *)okButtonText;
430+
431+
/**
432+
* Sets the text of the submit button that sends reports
433+
*
434+
* Default = @"Send"
435+
* @param submitButtonText submitButtonText
436+
*/
437+
+ (void)setSubmitButtonText:(NSString *)submitButtonText;
438+
439+
/**
440+
* Sets the text of the cancel button that dismisses sending reports
441+
*
442+
* Default = @"Cancel"
443+
* @param cancelButtonText cancelButtonText
444+
*/
445+
+ (void)setCancelButtonText:(NSString *)cancelButtonText;
446+
//===========================================================================================================================================
319447
@end
378 KB
Binary file not shown.

Instabug.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Instabug"
3-
s.version = "3.5"
3+
s.version = "3.6"
44
s.summary = "Bug reporting for mobile apps. Learn more at http://instabug.com"
55
s.homepage = "http://instabug.com"
66
s.license = {
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323
}
2424
s.author = { "Instabug" => "[email protected]" }
2525
s.platform = :ios, '5.0'
26-
s.source = { :git => "https://github.com/Instabug/Instabug-iOS.git", :tag => "3.5" }
26+
s.source = { :git => "https://github.com/Instabug/Instabug-iOS.git", :tag => "3.6" }
2727
s.source_files = 'Instabug.framework/Versions/A/Headers/*.{h}'
2828
s.resources = 'Instabug.bundle'
2929
s.preserve_paths = 'Instabug.framework/*', 'Instabug.bundle'

add_instabug_build_script.rb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@
1818

1919
unless project_path.first.nil?
2020
project = Xcodeproj::Project.open(project_path.first)
21-
main_target = project.targets.first
22-
phase = main_target.new_shell_script_build_phase(INSTABUG_PHASE_NAME)
23-
phase.shell_script = INSTABUG_PHASE_SCRIPT
24-
project.save()
21+
targets = project.targets
22+
23+
targets.each do |target|
24+
if target.product_type == "com.apple.product-type.application" or target.product_type == "com.apple.product-type.app-extension"
25+
phase = target.new_shell_script_build_phase(INSTABUG_PHASE_NAME)
26+
phase.shell_script = INSTABUG_PHASE_SCRIPT
27+
project.save()
28+
end
29+
end
30+
2531
break
2632
end
2733

0 commit comments

Comments
 (0)