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

73 warnings when installed via Carthage #213

Closed
mxcl opened this issue Sep 25, 2017 · 14 comments
Closed

73 warnings when installed via Carthage #213

mxcl opened this issue Sep 25, 2017 · 14 comments
Assignees

Comments

@mxcl
Copy link
Contributor

mxcl commented Sep 25, 2017

Platform: iOS
Swift: 4.0
sentry-cocoa installed with: Carthage
Version of sentry-cocoa: 3.7.1


With Xcode 9 GM, when installing via Carthage and following your instructions the framework causes 73 issues to generate:

screen shot 2017-09-25 at 5 28 39 pm

I would use CocoaPods, but having switched to Carthage I am getting huge increases in compile times, so it just comes down to not having to ignore warnings.

@HazAT
Copy link
Member

HazAT commented Sep 26, 2017

Hey, I will look into this.

@HazAT HazAT self-assigned this Sep 26, 2017
@HazAT
Copy link
Member

HazAT commented Sep 26, 2017

@mxcl I've just created a basic carthage example and do not have a single build warning.
https://github.com/getsentry/examples/tree/master/cocoa/sentry-ios-carthage
If you run carthage update and build the project, do you get any warnings?
Running Xcode 9

@HazAT
Copy link
Member

HazAT commented Sep 26, 2017

Btw. also make sure you are using the prebuilt framework from Github releases (which should be the default when using Carthage)

@mxcl
Copy link
Contributor Author

mxcl commented Sep 26, 2017

I see, well I guess not due to this Carthage error:

*** Skipped installing sentry-cocoa.framework binary due to the error:
	"GitHub API request failed: jsonDecodingError(Multiple(TypeMismatch(Expected Object, got Null), TypeMismatch(Expected Object, got Null), TypeMismatch(Expected Object, got Null), TypeMismatch(Expected Object, got Null), TypeMismatch(Expected Object, got Null), TypeMismatch(Expected Object, got Null)))"

Seems to be the latest Carthage:

$ carthage version
0.25.0

I've been getting these errors for a week. I'll check out their docs.

@mxcl
Copy link
Contributor Author

mxcl commented Sep 26, 2017

Referencing Carthage/Carthage#2157

@HazAT
Copy link
Member

HazAT commented Sep 26, 2017

Right, I was using Carthage 0.24.0
Edit: also having this error when using 0.25.0 🙄

@HazAT
Copy link
Member

HazAT commented Oct 2, 2017

I will close this for now since there shouldn't be any warnings when using the pre-built version from Github.
Otherwise, if you want to build it yourself you need to build the project in the KSCrash folder since this project has all the necessary header files.
See : https://github.com/getsentry/sentry-cocoa/blob/master/Makefile#L9-L12

@HazAT HazAT closed this as completed Oct 2, 2017
@mxcl
Copy link
Contributor Author

mxcl commented Oct 5, 2017

Carthage fetched the prebuilt binary today, but I still get the warnings.

I'm using the preview build system, in case that matters.

@mxcl
Copy link
Contributor Author

mxcl commented Oct 5, 2017

Actually, now they are gone. I don't know what's going on. Maybe Xcode 9 is sucking.

@danj-stripe
Copy link

I'm getting this intermittently. Sometimes a full clean makes them go away.

From what I understand, the public headers folder of Sentry.framework includes all of the KSCrash public headers. The Sentry.h umbrella header file does not include the KSCrash headers. This triggers the -Wincomplete-umbrella warnings.

Solutions seem to be to remove the KSCrash headers from the public headers directory, add the KSCrash headers to the umbrella header, or turn off the warning.

I'm experimenting with adding -Wno-incomplete-umbrella to my build settings, but the fact these warnings aren't 100% reproducible means I'm not positive it's the right change to make.

https://stackoverflow.com/a/45107213/1196205

@hannseman
Copy link

Platform: iOS
Swift: 4.0
Xcode: 9.0
sentry-cocoa installed with: Carthage
Version of sentry-cocoa: 3.8.2

I'm also getting these warnings. Both when using the pre-build version and one built with Carthage. I've tried both the new build system and the old with no difference.

@mxcl
Copy link
Contributor Author

mxcl commented Oct 31, 2017

This needs reopening.

@HazAT HazAT reopened this Nov 1, 2017
@HazAT HazAT closed this as completed in 249b64a Nov 2, 2017
@mxcl
Copy link
Contributor Author

mxcl commented Nov 2, 2017

Confirmed: works!

Clearing these warnings also revealed 9 other warnings in my own code I had been overlooking, so much appreciated!

💋

@HazAT
Copy link
Member

HazAT commented Nov 2, 2017

Sorry for that fiasco, I am not really sure what caused this in the first place.
But 3.9.1 should resolve.

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

No branches or pull requests

4 participants