I am trying build a Preview
for a project that is built on SwiftUI
. At first, I created the project with the name 'VOIP'. After some development and time, I connected it to the AppStore Connect
and the name of the project was created differently, Let's say VoipApp
. I can build the project into simulator or a device without any problem, however when I try to preview a SwiftUI
View
, it says No such module VOIP
at project navigator. But as I said it just happens when I try to preview.
Here is the diagnostics;
no such module \'VOIP\'
----------------------------------------
SchemeBuildError: Failed to build the scheme "VOIP"
no such module 'VOIP'
Compile /Users/myuser/Projects/VOIP/VOIPTests/VOIPTests.swift:
/Users/myuser/Projects/VOIP/VOIPTests/VOIPTests.swift:10:18: error: no such module 'VOIP'
@testable import VOIP
^
I tried some answers from the network, but neither of them have been worked.
VOIPTests.swift
? Is it reallyimport VOIP
there? Did you try to remove some of those, or both? Preview uses pre-built caches heavily - did you try to force clean everything, physically, like DerivedData, etc? – TabithaVOIP
, on my local. However I install it to simulator or a device the is as appearing as at the app store connect name. – Taxation