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

fix: error: ambiguous use of 'arc4random_uniform' on Linux distros #846

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

Howler4695
Copy link
Contributor

Resolves #845

Short description 📝

To fix bug when compiling xcodegen on linux distros using swift 5.10.1

Solution 📦

I got rid of the arc4random_uniform method and used the TYPE.random method (Int.random(in: 0..<base.count)

I also got rid of the overwrite on arc4random_uniform that would happen when linux distros were being used as the TYPE.random method works with linux distros

Implementation 👩‍💻👨‍💻

  • Made Changes
  • Pulled Changes into XcodeGen branch
  • Tested Changes in XcodeGen branch on linux distro and confirmed it could now compile and work correctly

@pepicrft pepicrft changed the title Apply Fix for error: ambiguous use of 'arc4random_uniform' on Linux distros when compliling XcodeGen fix: apply Fix for error: ambiguous use of 'arc4random_uniform' on Linux distros when compliling XcodeGen Sep 26, 2024
@pepicrft pepicrft changed the title fix: apply Fix for error: ambiguous use of 'arc4random_uniform' on Linux distros when compliling XcodeGen fix: error: ambiguous use of 'arc4random_uniform' on Linux distros Sep 26, 2024
@pepicrft pepicrft merged commit fe420c4 into tuist:main Sep 26, 2024
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

XcodeGen: error: ambiguous use of 'arc4random_uniform' on Linux distros
3 participants