Liquidsoul / homebrew-formulae

0 stars 0 forks source link

l10nconverter installation error #2

Open sumitsanchit opened 4 years ago

sumitsanchit commented 4 years ago

Below is the error i get when installing, please let me know how to resolve this

==> Installing l10nconverter from liquidsoul/formulae Warning: Your Xcode (11.2.1) is outdated. Please update to Xcode 11.3 (or delete it). Xcode can be updated from the App Store.

==> Cloning https://github.com/Liquidsoul/LocalizationConverter.git Updating /Users/Sumit/Library/Caches/Homebrew/l10nconverter--git ==> Checking out tag 0.1.0 HEAD is now at f6873e3 Bump version to 0.1.0 HEAD is now at f6873e3 Bump version to 0.1.0 ==> unset CC; make release Last 15 lines from /Users/Sumit/Library/Logs/Homebrew/l10nconverter/01.unset: 2020-04-03 17:42:19 +0530

unset CC; make release

swift package clean Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) Target: x86_64-apple-darwin18.5.0 swift build --disable-sandbox --configuration release -Xswiftc -static-stdlib /private/tmp/l10nconverter-20200403-5830-1i3hgxs: error: package at '/private/tmp/l10nconverter-20200403-5830-1i3hgxs' is using Swift tools version 3.1.0 which is no longer supported; consider using '// swift-tools-version:5.1' to specify the current tools version make: *** [.build/release/l10nconverter] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): https://github.com/liquidsoul/homebrew-formulae/issues

Error: Your Xcode (11.2.1) is outdated. Please update to Xcode 11.3 (or delete it). Xcode can be updated from the App Store.

yccheok commented 3 years ago

Similar build error with different cause

yccheok@Yans-MacBook-Pro ~ % brew install liquidsoul/formulae/l10nconverter     
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
at-spi2-atk
==> Updated Casks
Updated 1 cask.

==> Installing l10nconverter from liquidsoul/formulae
==> Cloning https://github.com/Liquidsoul/LocalizationConverter.git
Updating /Users/yccheok/Library/Caches/Homebrew/l10nconverter--git
==> Checking out tag 0.1.0
HEAD is now at f6873e3 Bump version to 0.1.0
HEAD is now at f6873e3 Bump version to 0.1.0
==> unset CC; make release
Last 15 lines from /Users/yccheok/Library/Logs/Homebrew/l10nconverter/01.unset:
2021-06-07 14:25:58 +0800

unset CC; make release

swift package clean
Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
Target: arm64-apple-darwin20.4.0
swift build --disable-sandbox --configuration release -Xswiftc -static-stdlib
warning: Failed creating default cache locations, Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “cache” in the folder “.swiftpm”." UserInfo={NSFilePath=/Users/yccheok/.swiftpm/cache, NSUnderlyingError=0x14361f900 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
warning: Failed creating default cache locations, Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “cache” in the folder “.swiftpm”." UserInfo={NSFilePath=/Users/yccheok/.swiftpm/cache, NSUnderlyingError=0x143631ea0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
warning: Failed creating default cache locations, Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “cache” in the folder “.swiftpm”." UserInfo={NSFilePath=/Users/yccheok/.swiftpm/cache, NSUnderlyingError=0x13b907f00 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
warning: Failed creating default cache locations, Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “cache” in the folder “.swiftpm”." UserInfo={NSFilePath=/Users/yccheok/.swiftpm/cache, NSUnderlyingError=0x13a71c510 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
/private/tmp/l10nconverter-20210607-8734-1uhxpxb: error: the manifest is missing a Swift tools version specification; consider prepending to the manifest '// swift-tools-version:5.4.0' to specify the current Swift toolchain version as the lowest Swift version supported by the project; if such a specification already exists, consider moving it to the top of the manifest, or prepending it with '//' to help Swift Package Manager find it
make: *** [.build/release/l10nconverter] Error 1

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
l10nconverter installation error https://github.com/Liquidsoul/homebrew-formulae/issues/2

I create the folder /Users/yccheok/.swiftpm/ explicitly with permission 777

drwxrwxrwx 2 yccheok staff 64 Jun 7 14:14 .swiftpm

But still doesn't work.

I am using MacBook M1

yccheok@Yans-MacBook-Pro ~ % uname -a
Darwin Yans-MacBook-Pro.local 20.4.0 Darwin Kernel Version 20.4.0: Thu Apr 22 21:46:41 PDT 2021; root:xnu-7195.101.2~1/RELEASE_ARM64_T8101 arm64