0

After changing my apps name according to How to change the name of an iOS app? Cavier Cadiz answer everything was great. When I tried to update to the latest swift version I got the error below in the tests supporting file.

import XCTest
@testable import NewAppName                           ! No such module "NewAppName"

The app before the name changing updates to latest swift version without any problems. Anybody knows what I might did wrong while renaming the app? How can I fix it?

jLandis
  • 1
  • 3
  • Have you removed / re-added the product of `NewAppName` back to the test target (Target Dependencies)? Sometimes that helps – Ondrej Rafaj Jan 10 '20 at 16:10
  • if you are using podfile please update the pod and run the project again if you are not using podfile please clean the build and delete derived data and run again it worked for me. – Adarsh KC Jan 11 '20 at 04:27
  • I wrote OldAppName @testable import NewAppName – jLandis Jan 13 '20 at 08:46
  • After many trials I wrote OldAppName after the import, then I run facing the same problem. Then write the NewAppName again and run again. Unexpectedly there was no problem at all. I don't know why. Is there any recommended source (site, book) where Xcode is explained? – jLandis Jan 13 '20 at 08:53

0 Answers0