element-hq / element-ios

A glossy Matrix collaboration client for iOS
https://element.io
GNU Affero General Public License v3.0
1.74k stars 498 forks source link

unable to find utility "mint", not a developer tool or in PATH #7079

Closed abhinarigara closed 1 year ago

abhinarigara commented 2 years ago

Steps to reproduce

  1. Where are you starting? What can you see?
  2. What do you click?
  3. More steps… I have clone latest repository and trying to build in my MacBook M1 Pro but failed. I have installed necessary dependency as per installation guide. I have also install Mint and Xcodegen to generate project file and run pod install.

Outcome

What did you expect?

Expected to build project

What happened instead?

I got following errors while building project: 1) /xcrun:1:1 sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -find mint 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory) 2) /xcrun:1:1 unable to find utility "mint", not a developer tool or in PATH

Errors_SS

Your phone model

iPhone 7

Operating system version

Mac OS 13.0, Xcode 14.1

Application version

1.9.11

Homeserver

matrix.org

Will you send logs?

No

pixlwave commented 2 years ago

@abhinarigara What happens if you run which mint in a terminal?

abhinarigara commented 1 year ago

@abhinarigara What happens if you run which mint in a terminal?

/opt/homebrew/bin/mint

pixlwave commented 1 year ago

And to double check, are you running on an Apple Silicon mac?

abhinarigara commented 1 year ago

And to double check, are you running on an Apple Silicon mac?

Yes, i have Apple Silicon mac (MacBook M1 Pro), and Mac os (13.0) and Xcode (14.1)

xavieaihh commented 1 year ago

Hi there, I had the same problem and solved it by :

I set the setting the deployment target and the project format. Then Clean build folder and that solved it

Screenshot 2022-11-25 at 09 08 58

Screenshot 2022-11-25 at 09 08 45

Hope it can helps you

aarizhov commented 1 year ago

I have same problem. Nothing help... Any ideas ?

abhinarigara commented 1 year ago

I have same problem. Nothing help... Any ideas ?

I also tried everything but nothing work expect xcode. Please degrade your xcode version, i am able to run on xcode 14.0

Air7Y commented 1 year ago

I have same problem. Nothing help... Any ideas ?

I also tried everything but nothing work expect xcode. Please degrade your xcode version, i am able to run on xcode 14.0

see if your mint is in $PATH and try to add to your run script in Xcode export PATH=${HOME}/.mint/bin:${PATH}

abhinarigara commented 1 year ago

After spending 15 days i am able to run master branch on my machine. Problem is mainly with M1 architecture. Here are the steps that we have to follow.

pixlwave commented 1 year ago

Ohhh, was the issue that you were running some tools under Rosetta? That would never have occurred to me to be a cause for the unable to find utility message.

Please close this issue if you're happy that everything is working :)

IsmoilXolmatov commented 11 months ago

Hi every one i have solved this problem by installing mint through homebrew here is link to guidline how to istall it https://mint-lang.com/install and after istaling mint please delete Podlock and Pod files and reistall it and clean built then run the project i hope it will work

DaniilDavidovich commented 7 months ago

Hi every one i have solved this problem by installing mint through homebrew here is link to guidline how to istall it https://mint-lang.com/install and after istaling mint please delete Podlock and Pod files and reistall it and clean built then run the project i hope it will work

This is the solution for me, I installed using brew