-
Notifications
You must be signed in to change notification settings - Fork 821
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
Error building XcodeGen #1495
Comments
Did you try to build this product on Linux? |
yes i did i use Fedora 40 currently |
I'm having the same issue trying to build on Ubuntu 24.04 with swift 5.10.1 installed
|
Fixed the issue locally, it looks like an extension for xcodeproj is using some outdated syntax to try and fix a random number generation bug on Linux. I updated the the random number syntax to a more modern standard and deleted the linux if conditional and am having no more problems. going to do some more testing then try and get the fix pulled into xcodeproj and then update the xcodeproj version for xcodegen |
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
The text was updated successfully, but these errors were encountered: