Post

Replies

Boosts

Views

Activity

Xcode error "Dependencies could not be resolved", but only when building via command line
I have a project that builds perfectly fine from within Xcode, but it fails when I want to run it from the command line. I get this error: error: Dependencies could not be resolved because no versions of 'pathkit' match the requirement 1.0.1..<2.0.0 and root depends on 'saga' 1.1.3..<2.0.0. 'saga' >= 1.1.3 practically depends on 'pathkit' 1.0.1..<2.0.0 because 'saga' 1.1.3 depends on 'pathkit' 1.0.1..<2.0.0 and no versions of 'saga' match the requirement 1.1.4..<2.0.0. My package depends on Saga from 1.1.3, and Saga depends on pathkit from 1.0.1. I'm not sure what's the error going on about, as pathkit 1.0.1 exist and works fine. Here's a screenshot from Xcode, where I have no problems at all: https://i.stack.imgur.com/3ESL1.png. I've already removed all derived data, that didn't help.
2
0
2.4k
Apr ’22
SwiftUI preview canvas compile error: Undefined symbols for architecture x86_64
I have a project where I am using Firebase's Firestore and Auth. When I create a SwiftUI view, the preview canvas doesn't work. I get the following error.Compiling failed: linker command failed with exit code 1 (use -v to see invocation)failedToBuildDylib: ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/SharedFrameworks-iphonesimulator'Undefined symbols for architecture x86_64: "___asan_alloca_poison", referenced from: +[GDTFLLUploader gzippedData:] in GoogleDataTransportCCTSupport(GDTFLLUploader.o) "___asan_allocas_unpoison", referenced from: +[GDTFLLUploader gzippedData:] in GoogleDataTransportCCTSupport(GDTFLLUploader.o) "___asan_handle_no_return", referenced from: -[FIRAuthCredential init] in FirebaseAuth(FIRAuthCredential.o) -[FIRAuthCredential prepareVerifyAssertionRequest:] in FirebaseAuth(FIRAuthCredential.o) -[FIREmailAuthProvider init] in FirebaseAuth(FIREmailAuthProvider.o) -[FIRCollectionReference initWithQuery:] in FirebaseFirestore(FIRCollectionReference.o)This happens even with the most basic "Hello World" View, where I don't import anything related to Firebase.Is there anything I can do about this, or can I simply not use the preview canvas in this entire project?
1
0
2.6k
Jan ’20