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

[PLAT-6536] Disable Cocoapods prefix header and enable additional warnings #1094

Merged
merged 3 commits into from
May 13, 2021

Conversation

nickdowell
Copy link
Contributor

Goal

Disable the prefix header created by Cocoapods. Sometimes different warnings would appear in Cocoapods builds because of the prefix header force-including UIKit on iOS, so removing it makes the builds more consistent.

Enable additional warnings when building the iOS fixture app (which uses Cocoapods to integrate Bugsnag) so that we are alerted of any build warnings that only appear there.

Changeset

The main Bugsnag.xcconfig is included by the test fixture when building Bugsnag so that the same warnings settings are applied.

A build warning was fixed that was only appearing when BSG_LOG_LEVEL was set to BSG_LOGLEVEL_DEBUG

Testing

Tested via unit and E2E tests.

@nickdowell nickdowell requested a review from kattrali May 13, 2021 15:17
# Include all our build warning settings without needing to duplicate them here
xcconfig = "Pods/Target Support Files/#{target.name}/#{target.name}.#{config.name.downcase}.xcconfig"
File.open(xcconfig, 'a') do |file|
file << '#include "../../../../../../Bugsnag.xcconfig"'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😬 lol

@github-actions
Copy link

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size did not change - 1,128,272 bytes

Generated by 🚫 Danger

@nickdowell nickdowell merged commit 97f74dc into next May 13, 2021
@nickdowell nickdowell deleted the nickdowell/cocoapods-warnings branch May 13, 2021 19:04
@nickdowell nickdowell mentioned this pull request May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants