Waleed Asif
Waleed Asif

Reputation: 199

Xcode workspace file is empty

My xcode workspace show no files and no editor, previously it was working completely fine and I used it to build my code. Now as workspace is empty I tried to build by using xcodeproj I am getting following error.

"apple mach-o linker error linker command failed with exit code 1"

It will be great to have any ideas to make the Xcode workspace work again.

From Comment:

Initially I made a zip file of my project and uploaded it to google drive. Now I downloaded this file to access my project on a different Mac machine

Upvotes: 4

Views: 6689

Answers (2)

dinesh sharma
dinesh sharma

Reputation: 617

If anybody is facing this problem after pod install, please check below solution:

 pod deintegrate 
 pod install

This commands remove all Cocoapods dependencies from the project, then add it again.

For me, all the files came back this way.

Upvotes: 0

user9749232
user9749232

Reputation:

Now as workspace is empty I tried to build by using xcodeproj I am getting following error.

If you are using cocoapods, you should open the .xcworkspace file every time.

Initially I made a zip file of my project and uploaded it to google drive. Now I downloaded this file to access my project on a different Mac machine

Ensure you have zipped it correctly and the project can be opened in the old machine.

Run pod install in your directory and open the .xcworkspace file again.

Upvotes: 7

Related Questions