Closed Stp155906 closed 3 months ago
Hi @Stp155906 please always use a stable version of Xcode.
If you're seeing this on a stable version, please paste the logs for the build failure you're getting.
Thanks.
Logging Error: Failed to initialize logging system. Log messages may be missing. If this issue persists, try setting IDEPreferLogStreaming=YES in the active scheme actions environment variables. Message from debugger: killed
That log message is an Xcode issue, unrelated to Supabase, you can check how to fix it in https://stackoverflow.com/questions/78129981/logging-error-failed-to-initialize-logging-system-log-messages-may-be-missing.
Regarding the No such module Supabase
error, make sure you added Supabase target as dependency to your app, not only adding the package.
Use https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app as a guide.
Yes, I did follow the stack overflow previously, which is why I opened the ticket, because its not going away and only occurs in this particular project after adding the package. I did add the target, but I can do it again, and screenshot to show its possibly related to the package because it only appears to happens when I add supabase. Let me know if this is what you mean.
Here is the result from following the tips
Let me know if I am doing what you suggested correctly from the images provided.
Here is the info:
SwiftCompile normal arm64 Compiling\ EventEmitter.swift /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/SourcePackages/checkouts/supabase-swift/Sources/_Helpers/EventEmitter.swift (in target '_Helpers' from project 'Supabase') cd /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/SourcePackages builtin-swiftTaskExecution -- /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/SourcePackages/checkouts/supabase-swift/Sources/_Helpers/AnyJSON/AnyJSON+Codable.swift /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/SourcePackages/checkouts/supabase-swift/Sources/_Helpers/AnyJSON/AnyJSON.swift /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/SourcePackages/checkouts/supabase-swift/Sources/_Helpers/DateFormatter.swift -primary-file /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/SourcePackages/checkouts/supabase-swift/Sources/_Helpers/EventEmitter.swift /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/SourcePackages/checkouts/supabase-swift/Sources/_Helpers/Request.swift /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/SourcePackages/checkouts/supabase-swift/Sources/_Helpers/SharedModels/PostgrestError.swift /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/SourcePackages/checkouts/supabase-swift/Sources/_Helpers/SupabaseLogger.swift /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/SourcePackages/checkouts/supabase-swift/Sources/_Helpers/URLSession+AsyncAwait.swift /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/SourcePackages/checkouts/supabase-swift/Sources/_Helpers/Version.swift -emit-dependencies-path /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Intermediates.noindex/Supabase.build/Debug-iphonesimulator/_Helpers.build/Objects-normal/arm64/EventEmitter.d -emit-const-values-path /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Intermediates.noindex/Supabase.build/Debug-iphonesimulator/_Helpers.build/Objects-normal/arm64/EventEmitter.swiftconstvalues -emit-reference-dependencies-path /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Intermediates.noindex/Supabase.build/Debug-iphonesimulator/_Helpers.build/Objects-normal/arm64/EventEmitter.swiftdeps -serialize-diagnostics-path /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Intermediates.noindex/Supabase.build/Debug-iphonesimulator/_Helpers.build/Objects-normal/arm64/EventEmitter.dia -target arm64-apple-ios13.0-simulator -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -I /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Products/Debug-iphonesimulator -I /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib -F /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Products/Debug-iphonesimulator -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/Developer/Library/Frameworks -no-color-diagnostics -enable-testing -g -module-cache-path /Users/shantaliaz/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -package-name supabase_swift -const-gather-protocols-file /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Intermediates.noindex/Supabase.build/Debug-iphonesimulator/_Helpers.build/Objects-normal/arm64/_Helpers_const_extract_protocols.json -enable-implicit-dynamic -enable-private-imports -enable-dynamic-replacement-chaining -disable-previous-implementation-calls-in-dynamic-replacements -enable-experimental-feature StrictConcurrency -enable-upcoming-feature ExistentialAny -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/shantaliaz/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/SourcePackages -resource-dir /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -ivfsstatcache -Xcc /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.0-21A5291f-8b774628d4cb8bd0ff5480fb70320368.sdkstatcache -Xcc -I/Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Intermediates.noindex/Supabase.build/Debug-iphonesimulator/_Helpers.build/swift-overrides.hmap -Xcc -I/Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Products/Debug-iphonesimulator/include -Xcc -I/Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Intermediates.noindex/Supabase.build/Debug-iphonesimulator/_Helpers.build/DerivedSources-normal/arm64 -Xcc -I/Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Intermediates.noindex/Supabase.build/Debug-iphonesimulator/_Helpers.build/DerivedSources/arm64 -Xcc -I/Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Intermediates.noindex/Supabase.build/Debug-iphonesimulator/_Helpers.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -module-name _Helpers -frontend-parseable-output -disable-clang-spi -target-sdk-version 17.0 -target-sdk-name iphonesimulator17.0 -external-plugin-path /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/usr/lib/swift/host/plugins#/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/usr/local/lib/swift/host/plugins#/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -o /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Build/Intermediates.noindex/Previews/SupabaseDemoTwo/Intermediates.noindex/Supabase.build/Debug-iphonesimulator/_Helpers.build/Objects-normal/arm64/EventEmitter.o -index-unit-output-path /Supabase.build/Debug-iphonesimulator/_Helpers.build/Objects-normal/arm64/EventEmitter.o -index-store-path /Users/shantaliaz/Library/Developer/Xcode/DerivedData/SupabaseDemoTwo-arjvyxxexudwpibuafncjnoyzlgg/Index.noindex/DataStore -index-system-modules
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace. Stack dump:
LLVM_SYMBOLIZER_PATH
to point to it):
0 swift-frontend 0x00000001043cba94 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 swift-frontend 0x00000001043ccb84 llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x00000001043cb9a4 SignalHandler(int) + 352
3 libsystem_platform.dylib 0x000000019c14b584 _sigtramp + 56
4 libsystem_pthread.dylib 0x000000019c11ac20 pthread_kill + 288
5 libsystem_c.dylib 0x000000019c027a30 abort + 180
6 swift-frontend 0x0000000106ee1674 bool llvm::function_ref<bool (swift::fine_grained_dependencies::SourceFileDepGraph&&)>::callback_fn<emitReferenceDependencies(swift::CompilerInstance&, swift::SourceFile, llvm::StringRef)::$_13>(long, swift::fine_grained_dependencies::SourceFileDepGraph&&) + 0
7 swift-frontend 0x000000010995511c llvm::report_fatal_error(llvm::Twine const&, bool) + 280
8 swift-frontend 0x00000001099a8d4c report_at_maximum_capacity(unsigned long) (.llvm.11698295089078531448) + 0
9 swift-frontend 0x00000001099a8a48 llvm::SmallVectorBaseLast ditch effort was to paste into chatgpt for debugging and this is what it suggested, i already did the first step
Not sure if this helps, but I had a very similar issue. It seems like the Supabase is not added as a dependency automatically by default, you need to manually add it. I'm using Xcode 15.2
Hi all, this isn't an issue with the library, but a misconfiguration of Xcode, and/or the linkage of Supabase lib and the application module.
I'll be closing this issue.
Any solution to this ?
@Val0007 which issue are you facing?
Make sure to:
supabase-swift
package as a dependencySupabase
target as a dependencyLet me know if you still have issues after following the above steps.
I deleted the project and created a new one and added the packages and included as a dependency but still getting the same error.
Bug report
Describe the bug
i am experiencing a compatibility issue with the supabase swift package when using xcode 15.0 beta 5. the swiftui preview for contentview.swift is not compiling, and i am receiving a swiftcompile error related to eventemitter.swift within the supabase package. this specific issue does not occur in other projects that use other packages using a stable version of xcode..but when using this package the issue pops up.
To Reproduce
steps to reproduce the behavior:
open the project in xcode 15.0 beta 5 or newer xcode version attempt to run swiftui preview for contentview.swift. observe that the preview fails to build, with a compiler error pointing to files within the supabase swift package
Expected Behavior
The package should compile without errors, allowing the project to build successfully or previews to generate.
Actual Behavior
The build process fails during the SwiftCompile phase for
EventEmitter.swift
with a nonzero exit code.Screenshots
If applicable, add screenshots to help explain your problem.
System information
os: [e.g., macos] version of supabase-swift: [e.g., 2.6.0] xcode version: 15.0 beta 5 (15a5209g) or higher
Additional context
troubleshooting steps i have already attempted include:
cleaning the build folder and deleting derived data. removing and re-adding the supabase swift package. checking for updates on the supabase swift package. simplifying the contentview to contain just a text view.
Issue Summary
I am encountering a build failure when compiling
EventEmitter.swift
from the Supabase Swift SDK. This issue arises both when using the stable release of Xcode and Xcode 15.0 beta 5. The error occurs during the SwiftCompile task and results in a nonzero exit code, suggesting a compatibility issue with both versions of XcodeI have encountered this in both the stable release and the beta version of Xcode, as this could be a broader compatibility issue