Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"export reports" crashes #300

Open
wants to merge 236 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
236 commits
Select commit Hold shift + click to select a range
fb14f9b
Corrected Fiscal Calendar thanks to AlessandroPappalardo. Issue #225
Nov 4, 2012
62f79fc
Fixed the download of payments thanks to AlessandroPappalardo. Issue …
Apr 7, 2013
4a33846
Added the iOS 7 display fix, The reload App Icon fix by @jjochen and …
Sep 27, 2013
c5bd4da
Fixed 10/10/13 unit of sales bug thanks to @ktakayama
Oct 12, 2013
b683ef0
Fixed download of new app icons
Jun 5, 2014
85a8949
Fixed compiler warnings
Oct 9, 2014
7f1ad2a
Totally updated for iOS 8 and iPhone 6's
Oct 9, 2014
fd24f9e
Fixed account deletion
Dec 11, 2014
db7ade9
Fixed Payments retrieval
Dec 11, 2014
5e4aec0
Fixed Payments YearView footer
Dec 11, 2014
37a066e
Show refunds in detail view. Thanks to @futuretap
Jan 30, 2015
fa638cf
zero dollars fix from danielchong
Mar 10, 2015
9d9fa5a
Set minimum target to iOS 7 and changed all deprecated methods.
Mar 26, 2015
f4327fa
Added 64bit support and corrected some view layouts
Mar 26, 2015
4fa166f
Fix report download failure on iOS 9
Jun 15, 2015
10e71ba
Paul Fowler's fix for duplicate apps.
ddaddy Oct 29, 2015
42ae062
Xcode 7.0.1 update
ddaddy Oct 29, 2015
f078387
Added Redownloads view
ddaddy Nov 3, 2015
3719174
Only show products in list view if units != 0
ddaddy Nov 8, 2015
08a1ed1
Added alert for any errors (Thanks to nicolasgomollon)
ddaddy Nov 16, 2015
c4e133a
Removed RegexKitLite. Disabled PromoCodeOperation.
nicolasgomollon Dec 3, 2015
51f3a11
Converted project to use ARC.
nicolasgomollon Dec 3, 2015
3f53ff8
Converted space indentation to tabs.
nicolasgomollon Dec 3, 2015
eecc522
Updated curly brace position.
nicolasgomollon Dec 3, 2015
af32da9
Attempted to standardize code styling.
nicolasgomollon Dec 3, 2015
227044a
Added Two-Step Verification support.
nicolasgomollon Dec 3, 2015
a246ad7
Fixed Payments currency formatting.
nicolasgomollon Dec 3, 2015
e904f8a
Added missing app icons.
nicolasgomollon Dec 3, 2015
aee5b87
Updated launch images and storyboard.
nicolasgomollon Dec 3, 2015
b73e78a
Relabeled Back button.
nicolasgomollon Dec 3, 2015
2aa7801
Fixed sorting by Product ID in Sales and Trends.
nicolasgomollon Dec 3, 2015
5292f00
Fixed sorting by Product ID in Manage Apps.
nicolasgomollon Dec 3, 2015
cbf95ef
Fixed clipped label in sales view.
nicolasgomollon Dec 3, 2015
e2e0d2e
Increased maximum number of available reports.
nicolasgomollon Dec 3, 2015
a269209
Fixed improper year separator.
nicolasgomollon Dec 3, 2015
6b43155
Improved styling. Locked orientation in some views
nicolasgomollon Dec 3, 2015
cb6bf4e
Fixed incorrect date labels in sales view.
nicolasgomollon Dec 3, 2015
48305d4
Fixed small lettering in Sales and Trends.
nicolasgomollon Dec 3, 2015
00fbe71
Removed Boxcar references, since it doesn't work.
nicolasgomollon Dec 3, 2015
e0d9de3
Fixed missing screenshot in README.
nicolasgomollon Dec 3, 2015
7d388d3
Added abbreviated weekday to daily reports graph.
nicolasgomollon Dec 3, 2015
621d31f
Moved login & vendor ID code to background thread.
nicolasgomollon Dec 4, 2015
e348c4c
Fixed review downloads.
nicolasgomollon Dec 4, 2015
b2d7b41
Updated the Yahoo! Finance API URL.
nicolasgomollon Dec 4, 2015
1c9a6a7
Fixed misplaced orientation method.
nicolasgomollon Dec 4, 2015
948ab29
Fixed bug where Promo Codes section would be empty
nicolasgomollon Dec 4, 2015
1133df0
Made passcode lock screen less annoying.
nicolasgomollon Dec 4, 2015
fd62f1a
Fixed layout issues.
nicolasgomollon Dec 4, 2015
3e8e0bd
Added Touch ID authentication to unlock app.
nicolasgomollon Dec 4, 2015
b961586
Added Total Revenue and Total Sales options.
nicolasgomollon Dec 4, 2015
8dddb64
Fixed missing disclosure indicator in Settings.
nicolasgomollon Dec 4, 2015
4825daa
Moved Done buttons to the left side.
nicolasgomollon Dec 4, 2015
e3a4466
Fixed missing app icon in About view.
nicolasgomollon Dec 4, 2015
3ed37f9
Changed thread behavior of LoginManager.
nicolasgomollon Dec 4, 2015
37e9c97
Fixed minor layout bugs.
nicolasgomollon Dec 4, 2015
7f08a9b
Filtered list of apps for Promo Codes.
nicolasgomollon Dec 4, 2015
738c111
Fixed minor layout bug.
nicolasgomollon Dec 4, 2015
6a70a95
Updated About view.
nicolasgomollon Dec 4, 2015
d173f40
Fixed bug where Payments status would disappear.
nicolasgomollon Dec 4, 2015
3c0f751
Updated README.
nicolasgomollon Dec 4, 2015
a09383c
Updated export functionality.
nicolasgomollon Dec 5, 2015
96be25c
Added MBProgressHUD as a submodule.
nicolasgomollon Dec 5, 2015
63ea66b
Removed unused code.
nicolasgomollon Dec 5, 2015
2950cb6
Updated target deployment target to match project.
nicolasgomollon Dec 5, 2015
3839374
Fixed bug related to IAPs in Manage Apps.
nicolasgomollon Dec 5, 2015
a469566
Adopted modern Objective-C syntax.
nicolasgomollon Dec 5, 2015
f5f7dd9
Added SSKeychain as a submodule.
nicolasgomollon Dec 5, 2015
2d393d1
Fixed bug with payments saved without a vendor ID.
nicolasgomollon Dec 5, 2015
d0b014b
Updated country list. Improved report detail sort.
nicolasgomollon Dec 7, 2015
00262e9
Updated UI for iOS 7+, but not quite there yet.
nicolasgomollon Dec 8, 2015
8523402
Fixed bug with accounts with a single vendor ID.
nicolasgomollon Dec 16, 2015
90ff93b
Tweaked edit product section. Added iPad Pro icon.
nicolasgomollon Dec 16, 2015
37fa75a
Fixed empty toolbar space in PromoCodesVC.
nicolasgomollon Dec 17, 2015
af1db9d
Revamped Customer Reviews section.
nicolasgomollon Dec 17, 2015
31340f6
Improved BadgedCell.
nicolasgomollon Dec 17, 2015
541c0e4
Added ability to mark reviews read/unread.
nicolasgomollon Dec 18, 2015
af5e9e1
Fixed race condition when downloading reviews.
nicolasgomollon Dec 18, 2015
394f910
Fixed ReviewDetailVC layout.
nicolasgomollon Dec 18, 2015
978a20d
Added country info to ReviewDetailVC.
nicolasgomollon Dec 18, 2015
4876567
Updated README. nicolasgomollon/AppSales-Mobile#2
nicolasgomollon Dec 29, 2015
b77c2ad
Fixed bug with misplaced “All Apps” label.
nicolasgomollon Dec 29, 2015
c2d0bd8
Updated README. nicolasgomollon/AppSales-Mobile#3
nicolasgomollon Dec 29, 2015
2b99273
Added Turkish Lira (TRY) currency.
ddaddy Feb 8, 2016
2498a15
Updated base currencies.
ddaddy Feb 8, 2016
349dbe7
Updated app build number.
nicolasgomollon Feb 8, 2016
e87140c
Fixed AppleFiscalCalendar to extend through the current fiscal period
sirnacnud Mar 9, 2016
32a36ab
Replace spaces with tabs
sirnacnud Mar 9, 2016
a8b12ce
Merge pull request #9 from sirnacnud/fiscal
nicolasgomollon Mar 9, 2016
99f4e6d
Fixed some HTML entities in two-step action sheet.
nicolasgomollon Mar 9, 2016
c642994
Added support to download reviews for Mac Apps
sirnacnud Mar 24, 2016
b38ffb0
Merge pull request #11 from sirnacnud/reviews
nicolasgomollon May 11, 2016
07fc0b3
Fixed more HTML entities in two-step action sheet.
nicolasgomollon May 11, 2016
2648391
Updated LoginManager to use new & stable JSON API.
nicolasgomollon May 12, 2016
a8dce4b
Fixed Payments. nicolasgomollon/AppSales-Mobile#10
nicolasgomollon May 13, 2016
ec4b7e1
Fix Reviews Not Downloading
sirnacnud May 14, 2016
a6a46b7
Merge pull request #13 from sirnacnud/reviews
nicolasgomollon May 14, 2016
a159fa6
Updated app build number.
nicolasgomollon May 14, 2016
d792560
Fixed Payments. nicolasgomollon/AppSales-Mobile#14
nicolasgomollon May 17, 2016
944ec30
Added Two-Factor Authentication support.
nicolasgomollon Aug 3, 2016
05b482d
Moved misplaced files to correct location.
nicolasgomollon Oct 16, 2016
9f7dd81
Replaced obsolete SSKeychain with SAMKeychain.
nicolasgomollon Oct 16, 2016
b8aeff7
Improved code styling.
nicolasgomollon Oct 16, 2016
1acfe22
Updated to support new Reporter API.
nicolasgomollon Dec 14, 2016
006b096
Added new currencies.
nicolasgomollon Dec 14, 2016
89dc553
Fixed Xcode project warnings.
nicolasgomollon Dec 14, 2016
f674342
Fixed broken Reporter API.
nicolasgomollon Dec 18, 2016
7309370
Fixed bug where cookies needed to be deleted.
nicolasgomollon Dec 19, 2016
8fcd3dd
Payments: fixed for locales with "," as decimalSeparator
futuretap Dec 19, 2016
aefa7ab
Merge PR #24 from futuretap/master. Fixes #19.
nicolasgomollon Dec 19, 2016
5bf2985
Updated app build number.
nicolasgomollon Dec 19, 2016
599a594
Remove .gitattributes allowing project.pbxproj to be diffed
sirnacnud Jan 21, 2017
dbb96c9
Download and store all payment report data
sirnacnud Jan 21, 2017
be6efd5
Update PaymentsViewController to use new detailed payment data
sirnacnud Jan 21, 2017
4bc8370
Added ability to sort payments by month paid in addition to month earned
sirnacnud Jan 21, 2017
6f2b170
Fixed crash in Payments when core data object was being used across t…
sirnacnud Jan 21, 2017
ccd8724
Delete and redownload report when pending payment is past the expecte…
sirnacnud Jan 21, 2017
65ac013
Make pending payments show up as red
sirnacnud Feb 2, 2017
e50990e
Convert spaces to tabs
sirnacnud Feb 18, 2017
bb95eda
Merge pull request #26 from sirnacnud/payments. Fixes #15.
nicolasgomollon Feb 18, 2017
fd97e16
Updated app build number. Fixed bugs.
nicolasgomollon Feb 18, 2017
0085428
Fixed #25 with incorrect fiscal dates.
nicolasgomollon Feb 18, 2017
0983173
Fixed bug where table does not update.
nicolasgomollon Feb 18, 2017
c49f9f9
Improve ReviewDownloader error handling
sirnacnud Mar 14, 2017
d149e69
Re-download payment reports which have no payment summaries
sirnacnud May 30, 2017
ebf0716
Merge pull request #27 from sirnacnud/review-errors
nicolasgomollon Jun 10, 2017
7c3c7f9
Merge pull request #28 from sirnacnud/payment
nicolasgomollon Jun 10, 2017
d4a0da6
Refined app icon. Added missing app icons.
nicolasgomollon Jun 10, 2017
a8be61b
Updated and added missing passcode assets.
nicolasgomollon Jun 10, 2017
a2e26f0
Updated Reviews API. Refactored ReviewDownloader.
nicolasgomollon Jun 11, 2017
0d60a28
Added app version check to About view.
nicolasgomollon Jun 11, 2017
1eb63c9
Laid foundation for replying to reviews.
nicolasgomollon Jun 15, 2017
61f1742
Cleaned up country names.
nicolasgomollon Jun 21, 2017
3194a5b
Revamped Customer Reviews section WIP.
nicolasgomollon Jun 21, 2017
f2b5c33
Improved performance of reviews list.
nicolasgomollon Jun 22, 2017
4fb02ba
Fixed bug with KVO in ReportDownloadCoordinator.
nicolasgomollon Jun 22, 2017
bdcfc6f
Refactored reviews downloader.
nicolasgomollon Jun 22, 2017
44308a1
Fixed crash caused by leftover code.
nicolasgomollon Jun 22, 2017
388176b
Replaced Filter icons with editable Fireworks ones
nicolasgomollon Jun 22, 2017
d9f8536
Fixed bug with filters.
nicolasgomollon Jun 22, 2017
21f75c9
Added reviews filter comparators.
nicolasgomollon Jun 23, 2017
d5f1413
Added update check label to main screen.
nicolasgomollon Jun 23, 2017
e339693
Fixed minor interface bugs.
nicolasgomollon Jun 23, 2017
3af6fa0
Added ReviewListHeaderView.
nicolasgomollon Jun 23, 2017
52b21d4
Updated to support access tokens for Reporter API.
nicolasgomollon Aug 9, 2017
4b65955
Fixed payments download crash if more than one VendorID
ddaddy Aug 11, 2017
07eb495
Added support for iPhone X.
nicolasgomollon Nov 7, 2017
9650882
Added support for Face ID.
nicolasgomollon Nov 7, 2017
66f88d2
Update MBProgressHUD to 1.1.0
sirnacnud Feb 19, 2018
9433ea0
Merge pull request #34 from sirnacnud/mbprogresshud
nicolasgomollon Feb 20, 2018
58fdb7b
Added MBProgressHUD subclass for custom styling.
nicolasgomollon Feb 20, 2018
7fe5ec6
Added missing asset to fix Xcode warning.
nicolasgomollon Feb 20, 2018
9ac9cc7
Fix for empty iTunesStorePage
cxa Oct 28, 2018
0956084
small fixes and minor improvements
Nov 9, 2018
9220c92
Improved Icon downloads
Nov 9, 2018
bb9a7f9
review download fixes
Nov 9, 2018
2e4920d
fixed cancelling review download
Nov 9, 2018
25c7196
removed all text shadows
Nov 9, 2018
0990dd9
fix promo codes downloading text color
Nov 9, 2018
55327e7
added app icons to Manage Apps View
Nov 9, 2018
98163b1
fixed Show in App Store links
Nov 9, 2018
85b7820
Added setting to sort Apps by Name
Nov 9, 2018
588b159
added review reponses & disabled promo codes
Nov 11, 2018
789c78a
fixed reviews with no response
Nov 12, 2018
f19b334
Fixed bug with `gzip` decompression code.
nicolasgomollon Dec 16, 2018
d5c6d62
Merge branch 'master' into master
nicolasgomollon Dec 16, 2018
acb5fb6
Merge pull request #32 from ddaddy/master
nicolasgomollon Dec 16, 2018
a1130a4
Merge pull request #36 from cxa/master
nicolasgomollon Dec 16, 2018
108a736
Minor code fix.
nicolasgomollon Dec 16, 2018
aa1e06a
Merge branch 'sweetppro-master' into develop
nicolasgomollon Dec 16, 2018
a11c0de
Fixed code styling.
nicolasgomollon Dec 16, 2018
a73243d
Reverted Promo Codes removal.
nicolasgomollon Dec 16, 2018
2228494
Reverted Reviews Reply button removal.
nicolasgomollon Dec 16, 2018
96bb367
Updated ReviewTemplate design.
nicolasgomollon Dec 16, 2018
b2299ff
Merge branch 'develop'
nicolasgomollon Dec 16, 2018
4faa3bc
Added Mac In-App Renewable Subscription
ddaddy Apr 24, 2019
b3a3fa8
Identify Renewable subscriptions
ddaddy Apr 24, 2019
45a18a7
Fixed Generating and Getting Access Token...
ddaddy May 1, 2019
79af5d8
Merge pull request #40 from ddaddy/master
nicolasgomollon May 1, 2019
f0c6959
Fixed Exchange Rates refresh and added missing currencies.
ddaddy May 22, 2019
b0538e0
Merge pull request #42 from ddaddy/master
nicolasgomollon May 22, 2019
eb2e3e2
Fixed CSRFToken for Fetching/Generating Access Tokens
ddaddy Jun 14, 2019
7a6b2dd
Bumped Version & Build number
ddaddy Jun 14, 2019
9a3041e
Merge pull request #44 from ddaddy/master
nicolasgomollon Jun 18, 2019
cf69aae
Added missing transaction type
ddaddy Aug 30, 2019
95a70ba
Revert "Merge pull request #44 from ddaddy/master"
nicolasgomollon Sep 15, 2019
20fa0ea
Fix AccountsViewController doExport to only access UI on main thread
sirnacnud Nov 30, 2019
c9edbfe
Fixed localization warning
ddaddy Dec 13, 2019
a7bdafc
iOS13 DarkMode support
Jan 16, 2020
b0689cd
5star review truncate
Jan 16, 2020
b8ef6d7
ReportCSVViewController Dark mode theme
Jan 16, 2020
b94d769
csv Dark mode
Jan 16, 2020
ab068b1
fixed a potential crash when updating reviews
Feb 29, 2020
c872a83
Fixed CSRF token generation.
nicolasgomollon Apr 26, 2020
5cfa543
Merge branch 'master' into master
ddaddy Apr 28, 2020
edd47bf
Merge remote-tracking branch 'upstream/master'
Apr 28, 2020
0c32ab4
fixed macOS bundle icons
Apr 30, 2020
81a62ff
Increased maximum number of available reports.
nicolasgomollon May 3, 2020
95c026a
Added support for Apple IDs with multiple accounts
nicolasgomollon May 3, 2020
3527e37
Merge branch 'master' into master
nicolasgomollon May 3, 2020
6666b2d
Merge pull request #47 from ddaddy/master
nicolasgomollon May 3, 2020
d93f952
Fixed code styling.
nicolasgomollon May 3, 2020
ea61e51
Merge pull request #48 from sirnacnud/ui-on-main-thread
nicolasgomollon May 4, 2020
40702e4
Updated README.
nicolasgomollon May 4, 2020
1208296
merge upstream
May 4, 2020
fe9e29a
Update project.pbxproj
May 4, 2020
f7af272
Update KKPasscodeSettingsViewController.m
May 4, 2020
9fe1c22
Fixed Review download crash
ddaddy May 4, 2020
91120db
Updated product identifiers
ddaddy May 4, 2020
1eecb87
Update project.pbxproj
May 4, 2020
5a55d2d
Merge pull request #54 from ddaddy/master
nicolasgomollon May 5, 2020
c6c1ee6
Merge branch 'master' into master
nicolasgomollon May 5, 2020
d0a793f
Merge pull request #50 from sweetppro/master
nicolasgomollon May 5, 2020
2902ef3
Fixed code styling.
nicolasgomollon May 5, 2020
a3dc611
Updated for iOS 13. Tweaked dark mode.
nicolasgomollon May 5, 2020
4b77b9f
Updated for Xcode 12 and boosted minimum target to iOS 9.0
ddaddy Oct 10, 2020
30ff0e9
[Warnings] Fixed number format warnings
ddaddy Oct 10, 2020
a7bb5aa
[Warnings] Fixed implicitly state self-> capture
ddaddy Oct 10, 2020
ca3e40f
[Warnings] Fixed LaunchImage warning
ddaddy Oct 10, 2020
4b4973c
Removed VALID_ARCHS
ddaddy Oct 10, 2020
67dd975
[Warnings] Replaced deprecated UIAlertView and UIActionSheet
ddaddy Oct 10, 2020
6372cf4
[Warnings] Replaced deprecated NSManagedObjectContext init
ddaddy Oct 10, 2020
1164833
Add Payment Details
sirnacnud Oct 10, 2020
8006163
[Warnings] Replaced deprecated UIAlertView in App Delegate
ddaddy Oct 10, 2020
33478d4
[IconManager] Prompt for country code if no app found when loading icon.
ddaddy Oct 10, 2020
43dd0d4
[Warnings] handleOpenURL deprecated
ddaddy Oct 10, 2020
0a1d6fd
[Warnings] viewDidUnload deprecated
ddaddy Oct 10, 2020
ad84f81
[Warnings] shouldAutorotateToInterfaceOrientation deprecated
ddaddy Oct 10, 2020
1cd434e
[Warnings] Replaced some sendSynchronousRequest deprecations
ddaddy Oct 10, 2020
dd5fa43
[Warnings] Replaced CFURLCreateStringByAddingPercentEscapes deprecation
ddaddy Oct 10, 2020
0c8a6a7
Fixed displayAlert when a navController presents a navController
ddaddy Oct 10, 2020
b57b3ee
Merge pull request #58 from ddaddy/master
nicolasgomollon Jul 22, 2021
3563403
Merge branch 'master' into payment-details-upstream
nicolasgomollon Jul 22, 2021
a7b96e1
Merge pull request #57 from sirnacnud/payment-details-upstream
nicolasgomollon Jul 22, 2021
ab86cfb
Bumped version and build number.
nicolasgomollon Jul 22, 2021
a0eead2
Fixed CSRF token generation.
nicolasgomollon May 31, 2022
fb29164
Updated error message for access token failure.
nicolasgomollon May 31, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Warnings] Fixed number format warnings
ddaddy committed Oct 10, 2020
commit 30ff0e960d3f7f2c02eb55d7b42891e4ab6f1fa5
4 changes: 2 additions & 2 deletions Classes/ReportDownloadOperation.m
Original file line number Diff line number Diff line change
@@ -147,11 +147,11 @@ - (void)main {
} else {
if ([dateType isEqualToString:@"Daily"]) {
CGFloat progress = 0.5f * ((CGFloat)i / (CGFloat)numberOfReportsAvailable);
NSString *status = [NSString stringWithFormat:NSLocalizedString(@"Loading daily report %i / %i", nil), i + 1, numberOfReportsAvailable];
NSString *status = [NSString stringWithFormat:NSLocalizedString(@"Loading daily report %i / %lu", nil), i + 1, (unsigned long)numberOfReportsAvailable];
[self downloadProgress:progress withStatus:status];
} else {
CGFloat progress = 0.5f + 0.4f * ((CGFloat)i / (CGFloat)numberOfReportsAvailable);
NSString *status = [NSString stringWithFormat:NSLocalizedString(@"Loading weekly report %i / %i", nil), i + 1, numberOfReportsAvailable];
NSString *status = [NSString stringWithFormat:NSLocalizedString(@"Loading weekly report %i / %lu", nil), i + 1, (unsigned long)numberOfReportsAvailable];
[self downloadProgress:progress withStatus:status];
}
}
6 changes: 3 additions & 3 deletions Classes/ReportImportOperation.m
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ - (void)main {
NSArray *fileNames = [fm contentsOfDirectoryAtPath:docPath error:nil];

dispatch_async(dispatch_get_main_queue(), ^{
_account.downloadStatus = [NSString stringWithFormat:NSLocalizedString(@"Processing files (0/%i)...", nil), [fileNames count]];
_account.downloadStatus = [NSString stringWithFormat:NSLocalizedString(@"Processing files (0/%lu)...", nil), (unsigned long)[fileNames count]];
_account.downloadProgress = 0.0;
});

@@ -142,7 +142,7 @@ - (void)main {

dispatch_async(dispatch_get_main_queue(), ^{
float progress = (float)i / (float)[fileNames count];
_account.downloadStatus = [NSString stringWithFormat:NSLocalizedString(@"Processing files (%i/%i)...", nil), i, [fileNames count]];
_account.downloadStatus = [NSString stringWithFormat:NSLocalizedString(@"Processing files (%li/%lu)...", nil), (long)i, (unsigned long)[fileNames count]];
_account.downloadProgress = progress;
});

@@ -151,7 +151,7 @@ - (void)main {
}

dispatch_async(dispatch_get_main_queue(), ^{
_account.downloadStatus = [NSString stringWithFormat:NSLocalizedString(@"Finished (%i imported)", nil), numberOfReportsImported];
_account.downloadStatus = [NSString stringWithFormat:NSLocalizedString(@"Finished (%li imported)", nil), (long)numberOfReportsImported];
_account.downloadProgress = 1.0;
});
}