1

I have an external library which i need to add to my existing project.

The steps says to add the library to the project folder and Copy items into Destination group's folder and select Target. (Steps we normally perform to add a file)

But, while commiting, the SVN selectes the .h file and not the library(.a) file.

Please help.

Paul Brit
  • 5,901
  • 4
  • 22
  • 23
vshall
  • 619
  • 7
  • 26
  • I tried searching for answers and they said to manually add it to svn. Is there any other way ? My concern is why is it not showing in the source control window ? – vshall Jan 22 '13 at 06:42
  • What's the client are you using? Are you doing it over command line? – NSCry Jan 22 '13 at 06:45
  • 2
    please see [Subversion (SVN) and static libraries (.a files) compatibility?][1], or [SVN won't import *.a library][2] [1]: http://stackoverflow.com/questions/3724817/subversion-svn-and-static-libraries-a-files-compatibility [2]: http://stackoverflow.com/questions/2394363/svn-wont-import-a-library – xeonwell Jan 22 '13 at 06:46
  • the second link worked but as i said earlier, I had to add it manually via command line – vshall Jan 22 '13 at 06:49

1 Answers1

5

You have to add static files again.You can use svn add command to add static files in svn. Then again commit the code.

Update : In XCode you can right click on .a file then Source Control--> Add. Then it will show added(A) status. Then commit the code from the Xcode.

NSCry
  • 1,662
  • 6
  • 23
  • 39
  • I want to know is there any way by which I can add a file which is included in global-ignores (*.a) via xcode source control and not command line code : svn add file-name.a --no-ignore – vshall Jan 22 '13 at 06:50
  • It wasn't showing Add option but it was showing Update selected file ! – vshall Jan 22 '13 at 08:15
  • Auk...then update it.I think your .a files are already in svn. – NSCry Jan 22 '13 at 09:05
  • 1
    Actually the problem was file-types with .a were in ignore list so add option wasn't visible and also on commiting, we could not see those files to add to the commit. – vshall Jan 22 '13 at 09:14
  • This is not working in xcode6.1, Add button is disabled – Mehul Thakkar Nov 21 '14 at 11:18