Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Run Xcode static analyzer on CircleCI for iOS builds #1549

Closed
1ec5 opened this issue May 13, 2015 · 6 comments
Closed

Run Xcode static analyzer on CircleCI for iOS builds #1549

1ec5 opened this issue May 13, 2015 · 6 comments
Assignees
Labels
build iOS Mapbox Maps SDK for iOS

Comments

@1ec5
Copy link
Contributor

1ec5 commented May 13, 2015

#1538 would’ve been caught like crazy by Xcode’s static analyzer. We should run the static analyzer on Travis since we apparently aren’t great about running it manually ourselves (#1425). From what I’ve seen, the analyzer doesn’t take all that long on our entire project. Note that we’ll need to whitelist some warnings in upstream libraries, which are tracked in memononen/libtess2#19 and angusj/polyclipping#134.

/cc @incanus

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS build labels May 13, 2015
@incanus incanus added this to the iOS Beta 2 milestone May 13, 2015
@1ec5 1ec5 added in progress and removed ready labels May 14, 2015
@incanus
Copy link
Contributor

incanus commented Jun 15, 2015

@1ec5 What's the state of this?

@1ec5
Copy link
Contributor Author

1ec5 commented Jun 15, 2015

@incanus Further discussion in #1562. I believe the next step is to split the analysis into a separate target that can run in parallel with the others. But it still takes some 225 seconds for make analyze, which is just too high a penalty.

At this point, I’d be fine with a cron job on one of our local machines that analyzes the project every time we scrum.

@1ec5 1ec5 modified the milestones: iOS Beta 3, iOS Beta 2 Jun 15, 2015
@incanus incanus modified the milestone: iOS Beta 3 Jul 7, 2015
@1ec5 1ec5 removed their assignment Jan 6, 2016
@1ec5 1ec5 changed the title Run Xcode static analyzer on Travis for iOS builds Run Xcode static analyzer on Bitrise for iOS builds Apr 15, 2016
@1ec5 1ec5 self-assigned this Apr 15, 2016
@1ec5
Copy link
Contributor Author

1ec5 commented Apr 15, 2016

Added an Xcode Analyze step to the nightly Bitrise workflow.

@1ec5 1ec5 closed this as completed Apr 15, 2016
@1ec5 1ec5 reopened this Apr 15, 2016
@1ec5
Copy link
Contributor Author

1ec5 commented Apr 15, 2016

The Analyze step only works with schemes, not individual targets as gyp sets up. We’ll need to fix up the workflow after #4641 lands. In the meantime, I’ve removed the Analyze step to fix nightly builds.

@1ec5 1ec5 removed their assignment Aug 15, 2016
@1ec5 1ec5 changed the title Run Xcode static analyzer on Bitrise for iOS builds Run Xcode static analyzer on CircleCI for iOS builds Dec 18, 2017
@1ec5
Copy link
Contributor Author

1ec5 commented Dec 18, 2017

Since #1549 (comment), #4641 did land, making it possible to analyze a checked-in scheme. We also moved the iOS builds from Bitrise to CircleCI in #10257.

@friedbunny
Copy link
Contributor

Done in release-boba via #11529.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants