Closed Sam-Spencer closed 3 years ago
I'm seeing this behavior as well with manual archiving. Debug builds targeting the simulator and physical devices build fine. Have tried versions of InstantSearch from 7.6.2 up to 7.11.0 to no avail.
Environment
I just ran into the same issue as above. Building for distribution via fastlane.
Environment
Screenshot for reference
Found a temporary workaround when using fastlane or any automated xcodebuild
system:
Prior to building run the following in your project directory:
Dir.chdir("../") do
sh("xcodebuild","-resolvePackageDependencies")
end
Build and archive.
IMO, this type of workaround shouldn’t be necessary. But it might indicate an issue with SPM and Xcode rather than algolia!
Thank you for reporting this. The fix is in progress. In the meantime feel free to downgrade to 7.10 as 7.11 only introduces the SwiftUI components.
Also ran into this issue when archiving.
Downgrading to 7.10.0 have me 20 errors (instead of 5 on 7.11).
My implementation is exactly the same as Algolia SwiftUI tutorial
@alelordelo The 7.11.1 patch is available via SPM (will be available later via Cocoapods as well). Please try it and confirm if it fixes the issues.
thanks, will test now via SPM
yup, worked! thanks for the quick reply mate!
Describe the bug 🐛 Building fails with "unknown type" errors (see screenshot) that suggest the compiler doesn't realize you're referencing SwiftUI for some reason. While this seems like it might be a compiler bug, an easy fix is to add
import SwiftUI
statements to any files requiring it.To Reproduce 🔍 Steps to reproduce the behavior:
Expected behavior 💭 Builds should succeed.
Screenshots 🖥
Environment: