0

I am trying to convert my app from swift 3 to swift 4.2 through Xcode version 10.1

However, I am encountering this error, as shown in the screenshot

Error Screen

What am I missing here? I researched other posts but still haven't found an answer.

What should I do to solve the problem? Am I supposed to generate the header file? Any help would be appreciated.

ChamCham
  • 484
  • 1
  • 8
  • 19
Pavan Vasan
  • 391
  • 1
  • 9
  • 28
  • I had a ton of 'does not exist' or 'can't find' errors converting from swift 3 to 4. For me the answer was to remove the implicated file references from the project and then add the files in again. Clean, rebuild and repeat until everything compiles and links. – FryAnEgg Apr 12 '19 at 16:55
  • Hey @FryAnEgg, what would you mean by implicated file references from the project? Do you mean the dependencies in the podfile? – Pavan Vasan Apr 12 '19 at 17:28
  • For your case, I would find the bridging header in the project tree view, ctrl-click and 'Show in Finder', then go back to file in project tree, press 'delete', select 'Remove Reference Only', then drag file from finder back into tree to add file back in. – FryAnEgg Apr 12 '19 at 18:00
  • Then clean and rebuild. – FryAnEgg Apr 12 '19 at 18:01

1 Answers1

0

It seem path issue of your the "PetterUITests-Bridging-Header.h" file. May you can try redefined the Bridging-Header file path. Seek the Target -> Build setting -> SWIFT_OBJC_BRIDGING_HEADER

enter image description here

Joshpy
  • 560
  • 8
  • 21