79393820

Date: 2025-01-28 12:36:35
Score: 0.5
Natty:
Report link

The solution provided by @jatin works fine for me but after following solution i was unable to access the swift class in the project navigator as shown in the following screenshot.

Xcode screenshot

If its the same case for you, follow the steps mentioned below:

  1. Right Click on YOUR_PROJECT_NAME.xcodeproj Show Package Contents then open project.pbxproj in text editor.

  2. Do cmd + f and remove the following lines from the project.pbxproj file

minimizedProjectReferenceProxies = 1;
preferredProjectObjectVersion = 77;

  1. Do cmd + f and replace all PBXFileSystemSynchronizedRootGroup to PBXGroup in project.pbxproj file.

  2. Finally, find and update objectVersion = 77; to objectVersion = 56; in project.pbxprojfile and save it.

  3. Now, close Xcode and run pod init. Your all swift files will be present in the project navigator and your PodFile will be created without any issue.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jatin
  • Low reputation (0.5):
Posted by: Sandeep Sahani