OpenStudies / OpenAppStore

AppStore
0 stars 0 forks source link

[Projects] 분리된 SwiftUI 프로젝트 내에서 Preview 보여지지 않는 문제 #7

Open tyson10 opened 1 year ago

tyson10 commented 1 year ago

현재 분리된 Project 들 내부의 SwiftUI View 의 Preview 동작이 되지 않습니다.

관련 에러메시지:

HumanReadableSwiftError

ProviderError: ProviderError: noPreviewInfos(runDestination: Simulator - iOS 16.0 | iphonesimulator | x86_64 | iPhone 14 Pro | no proxy, thunkConfiguration: <IDEBuildOperationConfiguration buildCommand: 8, buildParameters: <IDEBuildParameters:0x600071240af0:action=build:command=:config=Debug:dest=iPhone 14 Pro:arch=x86_64:workspaceArena=<IDEWorkspaceArenaSnapshot: 0x600019820e00>: overridingProperties=( { // Preview overrides (immutable) DSTROOT = 【𝗟𝗶𝘁𝗲𝗿𝗮𝗹𝗦𝘁𝗿𝗶𝗻𝗴:/Users/taeyoungson/Library/Developer/Xcode/DerivedData/OpenAppStore-dxmebljdzbsdkyewjcvtagikjklm/Build/Intermediates.noindex/Previews/App/ReleaseProducts】 ENABLE_PREVIEWS = 【YES】 OBJROOT = 【𝗟𝗶𝘁𝗲𝗿𝗮𝗹𝗦𝘁𝗿𝗶𝗻𝗴:/Users/taeyoungson/Library/Developer/Xcode/DerivedData/OpenAppStore-dxmebljdzbsdkyewjcvtagikjklm/Build/Intermediates.noindex/Previews/App/Intermediates.noindex】 SYMROOT = 【𝗟𝗶𝘁𝗲𝗿𝗮𝗹𝗦𝘁𝗿𝗶𝗻𝗴:/Users/taeyoungson/Library/Developer/Xcode/DerivedData/OpenAppStore-dxmebljdzbsdkyewjcvtagikjklm/Build/Intermediates.noindex/Previews/App/Products】 }, ): collectBuildTimeStatistics=NO collectTimelineMetrics=NO>, executionEnvironment: Optional(<IDEExecutionEnvironment: 0x7febead8e520>), singleFileToBuild: nil, buildLog: nil, parallelizeBuildables: true, dontActuallyRunCommands: false, buildImplicitDependencies: true, skipDependencies: false, buildables: Optional([<Xcode3TargetProduct:0x60002d797660:App.app blueprint:>]), subsetOfBuildables: nil, buildDescriptionID: nil, scheme: Optional(<IDEScheme:0x7febc5f41d80:'App'>), schemeTask: 0, clientInfo: nil>, blueprintName: Library, sourceFilePath: /Users/taeyoungson/Desktop/OpenAppStore/Projects/Library/Sources/LibraryView.swift, thunkVariantSuffix: __XCPREVIEW_THUNKSUFFIX__)

tyson10 commented 1 year ago

해결이 어려울 것 같기도.. https://developer.apple.com/forums/thread/661263

product 가 app 이 아니라 static framework 라서 그런것 같기도 합니다

좀 더 확인 해볼게요.

@butter-free 정보 있으면 공유 부탁드려요 ㅋㅋ