Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Files missing warning after upgrading to Xcode 8 and converting syntax from swift 2.3 to swift 3.0

I upgraded from Xcode 7.3 to Xcode 8.0 and changed syntax from swift 2.3 to swift 3.0. I am able to build the project and run fine but I got some 233 warnings all about images I used in Assets.xcassets.

I realized that the path is wrong as I changed the name of my project from projectA to projectB and the path is referring to an invalid path which is

/Users/name/Desktop/projectA/projectB/Assets.xcassets/Images/img_01.imageset/[email protected] is missing from working copy

I believe that I have to remove name of those files from my sourcecontrol as they are not valid anymore. I have committed all my changes and have no idea how to remove these missing file links to get rid of those warnings.

like image 730
leaner122 Avatar asked Sep 16 '16 18:09

leaner122


2 Answers

I was able to solve this after a lot of research.

I went to projectB.xcodeproject > Show package contents > project.pbxproj > xcuserdata. Delete the xcuserdata.

Then go to Source Control > Commit Commit all changes. Since the path doesn't exist, Xcode will not commit changes; so just cancel out of it and do

Source Control > Refresh Status

Then exit out of Xcode and restart it.

like image 141
leaner122 Avatar answered Oct 01 '22 17:10

leaner122


Start terminal, go to the project directory, call:

git commit -a -m "some hints"

After restarting XCode the message should be gone. I think XCode is calling git commit without -a option

like image 38
kdmh Avatar answered Oct 01 '22 18:10

kdmh