yonaskolb / yonaskolb/XcodeGen
Error building XcodeGen
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.0.1
/home/jonas/repo/XcodeGen/.build/checkouts/ArtifactBundleGen/Plugins/ArtifactBundleGenPluginCommand/Symbolic Links/ArtifactBundleGen/Utils/LipoRunnner.swift:11:14: warning: 'launchPath' is deprecated: renamed to 'executableURL'
task.launchPath = "/bin/zsh"
^
/home/jonas/repo/XcodeGen/.build/checkouts/ArtifactBundleGen/Plugins/ArtifactBundleGenPluginCommand/Symbolic Links/ArtifactBundleGen/Utils/LipoRunnner.swift:11:14: note: use 'executableURL' instead
task.launchPath = "/bin/zsh"
^~~~~~~~~~
executableURL
/home/jonas/repo/XcodeGen/.build/checkouts/ArtifactBundleGen/Plugins/ArtifactBundleGenPluginCommand/Symbolic Links/ArtifactBundleGen/Utils/ZipComposer.swift:7:29: warning: result of call to 'run(:arguments:terminationHandler:)' is unused
try Process.run(URL(fileURLWithPath: "/usr/bin/zip"), arguments: ["-r", "(bundlePath.relativePath).zip", "(bundlePath.relativePath)"]) { _ in
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Building for production...
/home/jonas/repo/XcodeGen/.build/checkouts/XcodeProj/Sources/XcodeProj/Extensions/String+Utils.swift:25:31: error: ambiguous use of 'arc4random_uniform'
let randomValue = arc4random_uniform(UInt32(base.count))
^
/home/jonas/repo/XcodeGen/.build/checkouts/XcodeProj/Sources/XcodeProj/Extensions/String+Utils.swift:6:17: note: found this candidate
public func arc4random_uniform( max: UInt32) -> Int32 {
^
SwiftGlibc.arc4random_uniform:1:13: note: found this candidate
public func arc4random_uniform(_ __upper_bound: __uint32_t) -> __uint32_t
^
error: fatalError
[32/35] Compiling XcodeProj Errors.swift
make: *** [Makefile:23: build] Error 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with .build/checkouts/XcodeProj/Sources/XcodeProj/Extensions/String+Utils.swift at the arc4random_uniform call and reproduce the failure with make build. Check the surrounding declaration and compiler diagnostics, then verify that the production build completes without the ambiguous-use error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100