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

XCode Beta 4 Build Error #162

Closed
1 task done
michaelgmcd opened this issue Jul 20, 2019 · 8 comments
Closed
1 task done

XCode Beta 4 Build Error #162

michaelgmcd opened this issue Jul 20, 2019 · 8 comments
Labels
stack-overflow workaround-available There is a workaround available

Comments

@michaelgmcd
Copy link

Please help prevent duplicate issues before submitting a new one:

  • I've searched other open/closed issues for duplicates before opening up this new issue.

When building with XCode Beta 4, Down (installed via CocoaPods) fails to build with the following error:

<unknown>:0: error: unknown argument: '-Wno-shorten-64-to-32'
Command CompileSwiftSources failed with a nonzero exit code

This issue was also posted by someone else on Stack Overflow

@mglass
Copy link

mglass commented Jul 22, 2019

Commenting out this line in the Down.podspec file: spec.compiler_flags = '-Wno-shorten-64-to-32' worked for me, at least for now. No promises that there aren't any side effects though. I have a local version of the pod for various reasons, so this was fairly simple for me to do; your results may vary, but it will get you up and running again for the time being.

@barrypress
Copy link

I verified this happens with a clean iOS project, no content other than pod install of Down. I filed a bugrep with Apple.

I lack the understanding to know how to use the info of commenting out the link in the podspec, as I can't find a podspec file on the computer (did find podspec.json), and even then don't know how to make an edit take effect, so I can't verify the comment above works.

I do have pod --version 1.7.5, so the other input I found via google on pod vs. Xcode incompatibilities didn't help either.

@iwasrobbed
Copy link
Collaborator

Thanks for filing an issue, but this is best for StackOverflow since it's not specific to Down. There is already an existing answer that's linked to the original StackOverflow question: https://stackoverflow.com/questions/57085119/xcode-11-beta-4-error-command-compileswiftsources-failed-with-a-nonzero-exit-co

@iwasrobbed iwasrobbed added stack-overflow workaround-available There is a workaround available labels Jul 23, 2019
@barrypress
Copy link

barrypress commented Jul 24, 2019 via email

@mglass
Copy link

mglass commented Jul 24, 2019

Thanks for filing an issue, but this is best for StackOverflow since it's not specific to Down. There is already an existing answer that's linked to the original StackOverflow question: https://stackoverflow.com/questions/57085119/xcode-11-beta-4-error-command-compileswiftsources-failed-with-a-nonzero-exit-co

The linked SO post does not actually apply here; I tried it before digging in further and it didn't resolve the issue.

@lilyball
Copy link

It's not that it's not legal anymore, it's that it was never legal for Swift files but Xcode prior to Xcode 11 beta 4 didn't pass per-file compilation flags to swiftc (and per-file compilation flags is apparently how CocoaPods was defining these flags).

@iwasrobbed
Copy link
Collaborator

Happy to accept a PR for this; it will likely just introduce a few warnings in the underlying c code

@ykphuah
Copy link
Contributor

ykphuah commented Aug 3, 2019

The workaround is not working, created a pull request:
#170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stack-overflow workaround-available There is a workaround available
Projects
None yet
Development

No branches or pull requests

6 participants