profile
viewpoint
Eimantas eimantas @trafi Vilnius, Lithuania https://vaiciunas.info/ Engineering Manager @ Trafi.

eimantas/Boop 0

A scriptable scratchpad for developers. In slow yet steady progress.

eimantas/fuse-swift 0

A lightweight fuzzy-search library, with zero dependencies

eimantas/JazSharp 0

Jasmine inspired mocking and unit testing framework for C#.

eimantas/RxSwift 0

Reactive Programming in Swift

eimantas/savannakit 0

A high-performance, protocol oriented, framework for creating native IDEs for iOS and macOS, written in Swift

trafi/AFNetworking 0

A delightful networking framework for iOS, OS X, watchOS, and tvOS.

trafi/Buglife-iOS 0

Awesome bug reporting for iOS apps

trafi/FXBlurView 0

UIView subclass that replicates the iOS 7 realtime background blur effect, but works on iOS 5 and above.

trafi/GoogleMaps-Carthage-Old 0

GoogleMaps Carthage Support

trafi/LayoutKit 0

LayoutKit is a fast view layout library for iOS, macOS, and tvOS.

push eventeimantas/savannakit

Eimantas Vaičiūnas

commit sha 9d6bdc1152c910e50022215b1c8373e4b3e7e342

Match indentation

view details

push time in 19 days

push eventeimantas/savannakit

Eimantas Vaičiūnas

commit sha f01a6f5dbf525e66f56ec7b3882c47ffa6c71db8

Revert useless change

view details

push time in 19 days

PR opened IvanMathy/Boop

Use SPM instead of Carthage dependencies
+95 -24

0 comment

4 changed files

pr created time in 19 days

push eventeimantas/Boop

Eimantas Vaičiūnas

commit sha 0042f9136803115caeb95d222f4d79ea90fba8a2

Use SPM instead of Carthage dependencies

view details

push time in 19 days

push eventeimantas/savannakit

Eimantas Vaičiūnas

commit sha 361f09b7fe3cd4f95cabe8528a44609bdb368eec

Remove iOS Scheme

view details

push time in 19 days

PR opened IvanMathy/savannakit

add more stuff to `Package.swift`

This will basically allow use this library as SPM dependency for (Boop)[https://github.com/IvanMathy/Boop].

+22 -11

0 comment

6 changed files

pr created time in 19 days

push eventeimantas/savannakit

Eimantas Vaičiūnas

commit sha c5f2119c95a2be3dfcbdf7320a90ff7e3be7a7f0

Reduce macOS deployment version

view details

push time in 19 days

push eventeimantas/savannakit

Eimantas Vaičiūnas

commit sha fed4b7ddfcc50180dcd914288b3c481b2dff8369

Create proper Package.swift

view details

push time in 19 days

fork eimantas/Boop

A scriptable scratchpad for developers. In slow yet steady progress.

https://boop.okat.best

fork in 19 days

fork eimantas/fuse-swift

A lightweight fuzzy-search library, with zero dependencies

fork in 19 days

fork eimantas/savannakit

A high-performance, protocol oriented, framework for creating native IDEs for iOS and macOS, written in Swift

fork in 19 days

PR opened trafi/StoryFlow

Fix a typo
+1 -1

0 comment

1 changed file

pr created time in a month

create barnchtrafi/StoryFlow

branch : fix-fatal-error-typo

created branch time in a month

issue commentpointfreeco/swift-composable-architecture

module 'ComposableArchitecture' was not compiled for testing

So I found the answer to the issue. I found it in this thread from Apple's Developer forums.

Long story short - Xcode can only build Debug configuration of Swift packages. So be sure that the thing you're building is actually using Debug scheme and not some other (like I after renaming Debug to Develop) 🤦

eimantas

comment created time in 2 months

issue commentpointfreeco/swift-composable-architecture

module 'ComposableArchitecture' was not compiled for testing

So I went the easy path with lots of work - setup an empty project and moved all the files to it as well as readded all the Swift packages and updated all the custom project settings.

It now builds, runs tests and I can see the previews.

eimantas

comment created time in 2 months

push eventeimantas/swift-composable-architecture

Eimantas

commit sha 751aa9680d05ba109ce5eb0ecb4bbb42b5666622

Update Package.swift

view details

push time in 2 months

fork eimantas/swift-composable-architecture-1

A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.

https://www.pointfree.co/

fork in 2 months

issue commentpointfreeco/swift-composable-architecture

module 'ComposableArchitecture' was not compiled for testing

Thanks, as long as I'm able at least to run the app with CTA I'll keep updating and trying :)

eimantas

comment created time in 2 months

issue commentpointfreeco/swift-composable-architecture

module 'ComposableArchitecture' was not compiled for testing

I appreciate the effort!

I've pointed the SPM to the branch, however it doesn't fix my issue. I still get the same broken build when trying to preview the views.

I wonder if I'm writing some funky UI view 🤔

eimantas

comment created time in 2 months

issue openedpointfreeco/swift-composable-architecture

module 'ComposableArchitecture' was not compiled for testing

I added TCA to my application (without adding TCA test support). I can't seem to get the SwiftUI previews working anymore. After pressing "Resume" on the canvas I get the "Build Failed" HUD. Tapping "Diagnostics" gives me this error:

SchemeBuildError: Failed to build the scheme "App"

Build target ComposableArchitectureTestSupport:
note: Set ENABLE_PREVIEWS=NO because SWIFT_OPTIMIZATION_LEVEL=-Owholemodule, expected -Onone (in target 'ComposableArchitectureTestSupport' from project 'swift-composable-architecture')


Compile Swift source files:
/Users/eimantas/Development/DerivedData/App-cvsbxwitwserczdehyykapbndqjo/SourcePackages/checkouts/swift-composable-architecture/Sources/ComposableArchitectureTestSupport/TestStore.swift:4:18: error: module 'ComposableArchitecture' was not compiled for testing
@testable import ComposableArchitecture

I understand this is not the problem with TCA itself, but with either Xcode or my project settings.

I turned off -Owholemodule optimisation in ALL of the targets (the app has a watch app counterpart). The project builds and I can run tests, but when it comes to getting the previews - for some reason I can't get it to build.

It's also strange that tests run just fine (because they don't have dependency on TCA's Test Support library) and the app builds. But previews for some reason just don't show up.

created time in 2 months

startedpointfreeco/swift-composable-architecture

started time in 2 months

push eventtrafi/nimble-feedback

Eimantas Vaičiūnas

commit sha a7e0e6c147dc0524d7fe08173b43e33e19916d69

Fix references in the project

view details

push time in 2 months

created tagtrafi/LayoutKit

tag10.2.0

LayoutKit is a fast view layout library for iOS, macOS, and tvOS.

created time in 2 months

push eventtrafi/LayoutKit

Eimantas Vaičiūnas

commit sha 713c50e9e291b8c3fa10f7fbcdf4e80330e6bb98

Remove .swiftpm folder

view details

push time in 2 months

push eventtrafi/LayoutKit

Eimantas Vaičiūnas

commit sha a45964e68a2e61564a38ff3492859a1d7a9de12e

Continue trimming library

view details

push time in 2 months

push eventtrafi/LayoutKit

Eimantas Vaičiūnas

commit sha 73f56a7e495049861714a2415c979506da1d3253

Remove unrelated tests

view details

push time in 2 months

push eventtrafi/LayoutKit

Eimantas Vaičiūnas

commit sha 6f1dfbd5986c4258557ca99a71618b76690a65d2

Trim framework and update Package.swift

view details

push time in 2 months

push eventtrafi/nimble-feedback

Eimantas Vaičiūnas

commit sha d086eb859cfebde53bec3c5778b49bc1a6456586

Downgrade deployment version

view details

push time in 2 months

create barnchtrafi/nimble-feedback

branch : spm

created branch time in 2 months

Pull request review commenttrafi/TextStyle

Swift Package Manager support

+// swift-tools-version:5.0

One line as in only that comment with rest of package description :D

domasn

comment created time in 2 months

Pull request review commenttrafi/TextStyle

Swift Package Manager support

+// swift-tools-version:5.0

Probably only this comment is needed 🧹

domasn

comment created time in 2 months

push eventtrafi/nimble-feedback

Eimantas Vaičiūnas

commit sha d5dbe988e1e07b929b569e2214ebd4569ede7ead

Link XCTest

view details

push time in 3 months

Pull request review commenttrafi/TextStyle

Attributes

 import Foundation public protocol TextStylable {     func set(textStyle: TextStyle) }++extension TextStylable {++    func validateAttributes(of textStyle: TextStyle) {++        if textStyle.paragraphAttributes.contains(where: { $0[\.alignment] != nil }) {+            print("Setting `paragraphAttributes` directly on `\(type(of: self))` not supported, use `String().with(textStyle: TextStyle) -> NSAttributedString`")

How about just fatalError?

domasn

comment created time in 3 months

push eventtrafi/nimble-feedback

Eimantas Vaičiūnas

commit sha d915d3014b1f307e6bd3e4bde4487c79a625deb7

Remove XCTest linkage. Again.

view details

push time in 3 months

push eventtrafi/nimble-feedback

Eimantas Vaičiūnas

commit sha f5f5190a57e1ec625328bd5ec42b0808768bba39

Link XCTest when building framework

view details

push time in 3 months

more