Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Build failed on M1, MacBook Pro (XCode 14.2) #4

Open
maxistar opened this issue Apr 16, 2023 · 0 comments
Open

Build failed on M1, MacBook Pro (XCode 14.2) #4

maxistar opened this issue Apr 16, 2023 · 0 comments

Comments

@maxistar
Copy link

Build is failed with following error:

➜  tonlib-xcframework git:(main) swift run builder --output ./build --clean
Fetching https://github.com/apple/swift-argument-parser from cache
Fetching https://github.com/apple/swift-tools-support-core from cache
Fetched https://github.com/apple/swift-argument-parser (2.96s)
Fetched https://github.com/apple/swift-tools-support-core (2.97s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.0.2 (0.62s)
Computing version for https://github.com/apple/swift-tools-support-core
Computed https://github.com/apple/swift-tools-support-core at 0.2.4 (0.62s)
Computed https://github.com/apple/swift-argument-parser at 1.0.2 (0.00s)
Computed https://github.com/apple/swift-tools-support-core at 0.2.4 (0.00s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-tools-support-core
Working copy of https://github.com/apple/swift-tools-support-core resolved at 0.2.4
Building for debugging...
/Users/mstarikov/projects/maxim/ton/tonlib-xcframework/.build/checkouts/swift-tools-support-core/Sources/TSCUtility/FSWatch.swift:848:15: error: cannot assign value of type 'Thread' to type 'Thread?'
                self.thread = thread
                            ^
/Users/mstarikov/projects/maxim/ton/tonlib-xcframework/.build/checkouts/swift-tools-support-core/Sources/TSCUtility/FSWatch.swift:848:15: error: cannot assign value of type 'Thread' to type 'Thread?'
                self.thread = thread
                            ^
/Users/mstarikov/projects/maxim/ton/tonlib-xcframework/.build/checkouts/swift-tools-support-core/Sources/TSCUtility/FSWatch.swift:848:15: error: cannot assign value of type 'Thread' to type 'Thread?'
                self.thread = thread
                            ^
/Users/mstarikov/projects/maxim/ton/tonlib-xcframework/.build/checkouts/swift-tools-support-core/Sources/TSCUtility/FSWatch.swift:848:15: error: cannot assign value of type 'Thread' to type 'Thread?'
                self.thread = thread
                            ^
[130/131] Compiling TSCUtility misc.swift

I am not quite understand what "build using Rosetta" means, I tried to set checkbox "Open with Rosetta" in "Get Info" section on Terminal application when calling swift run builder --output ./build --clean but it brings me to the same result, maybe with the the little longer execution time.
Do I do something wrong?

@maxistar maxistar changed the title Build failed on Mac M1 (XCode 14.2) Build failed on Mac M1 (M1, MacBook Pro, XCode 14.2) Apr 16, 2023
@maxistar maxistar changed the title Build failed on Mac M1 (M1, MacBook Pro, XCode 14.2) Build failed on M1, MacBook Pro (XCode 14.2) Apr 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant