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

Hammer fails to build with Xcode 13 beta 4 #25

Closed
littlebobert opened this issue Jul 28, 2021 · 3 comments
Closed

Hammer fails to build with Xcode 13 beta 4 #25

littlebobert opened this issue Jul 28, 2021 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@littlebobert
Copy link

littlebobert commented Jul 28, 2021

We are bringing in Hammer via Swift PM and including it under Build Phases > Link Binary With Libraries for a test target.

Our project compiles fine under Xcode 12.5.1 but with Xcode 13 beta 4 I get a compiler error about Hammer’s use of UIApplication.shared:

'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.

I tried cloning Hammer and compiling it for an iOS 15 sim and hit the same error.

@gabriellanata gabriellanata added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jul 29, 2021
@gabriellanata
Copy link
Contributor

Are you trying to test an application extension or is it a normal application?

@littlebobert
Copy link
Author

it’s a normal application. we do have a few app extensions but those don’t bring in Hammer as far as I can tell

@gabriellanata
Copy link
Contributor

gabriellanata commented Aug 2, 2021

Closing this as I've verified it builds fine on Xcode 13 beta 4. Make sure you're not accidentally including Hammer in your app extensions or their tests to avoid getting that error.

@gabriellanata gabriellanata removed the good first issue Good for newcomers label Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants