Closed krlbsk closed 3 years ago
Does it work for you when you call swiftlint
from terminal in project's directory?
should get msg like Done linting! Found 1 violation, 0 serious in 608 files.
Yeah, I have
Done linting! Found 8 violations, 0 serious in 608 files.
Interesting, really all this script do is call the same command, see https://github.com/brave/brave-ios/blob/development/swiftlint.sh
As a workaround you can remove Run swiftlint
build phase
After deleting lint script I have another error:
/Users/x/Documents/Open Source/test/brave-ios/Client/Application/Client-Bridging-Header.h:18:9: error: 'YubiKit/YubiKit.h' file not found
import <YubiKit/YubiKit.h>
^ 1 error generated.
:0: error: failed to emit precompiled header '/Users/x/Library/Developer/Xcode/DerivedData/Client-csfqllblbguoilbwyaisaahkykui/Build/Intermediates.noindex/PrecompiledHeaders/Client-Bridging-Header-swift_181VTNEQLNHIL-clang_3VKA04DFLWPGR.pch' for bridging header '/Users/x/Documents/Open Source/test/brave-ios/Client/Application/Client-Bridging-Header.h'
Maybe something wrong with some of the configs on my machine?
Can you please try cleaning Carthage Cache and also Carthage Temporary Items and give another try?
rm -rf ~/Library/Caches/org.carthage.CarthageKit
rm -rf ${TMPDIR}/TemporaryItems/*carthage*
Unfortunately that didn't help.
@krlbsk If you are getting a YubiKit error then your bootstrap must have not completed.
Checking your previous comments it looks like it did fail on the copy:
~/Documents/Open Source/Brave/brave-ios/Carthage/Checkouts/yubikit-ios/YubiKit ~/Documents/Open Source/Brave/brave-ios
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
My guess is it doesn't like the space you have in your directory ("Open Source"), for now maybe try moving it to a directory without spaces and try again :)
@kylehickinson Yes, it was problem with directory named "Open Source". Changing that to "Open-Source" solved the case.
Thanks everyone, I am closing the issue.
Description:
I followed the instructions from README but failed to build the project because of SwiftLint script error.
Steps to reproduce
Debug
scheme and iPhone 12 simulator.Actual result:
Expected result: Running the app.
Reproduces how often: [Easily reproduced, Intermittent Issue] Every build attempt.
Brave Version:
development
branch.Additional information
Versions
bootstrap.sh log