Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode iPhone project open source files to distribute

I've written an iPhone application and I'm planning to open source it. I'm concerned about distributing the source and making sure I get only the required files distributed. I'm also concerned that since I've signed my app for distribution on the AppStore that open sourcing the project would possibly expose some part of the singing certificates.

Is there an accepted practice for what to distribute? I was going to exclude the build directory but wanted to included what was required for anyone to easily open and build the project. I tried this as a test by copying all but the build folder and was able to open and build the project from the copy which didn't contain the build folder so that seems fine.

I guess the bottom line is can I safely distribute the entire project minus the build directory or are there things embedded in the project files I'd want to exclude beyond the build directory?

Thanks for any responses I'm pretty new to xcode

like image 678
vkoser Avatar asked Feb 11 '10 23:02

vkoser


People also ask

How do I run an Xcode project on my iPhone?

Open up a project in Xcode and click on the device near the Run ▶ button at the top left of your Xcode screen. Plug your iPhone into your computer. You can select your device from the top of the list. Unlock your device and (⌘R) run the application.


1 Answers

The Code Signing Identity setting (of either your project and/or target) sometimes contains your name (or your organization's name).

So I'd clear out that setting (in all configurations) from the project file.

All the really sensitive items (e.g., your private key) are kept in the OS X keychain, not in any project files.

Inside ProjectName.xcodeproj, you'll find project.pbxproj and some other files. You only want to distribute project.pbxproj, the other files are specific settings for you/your computer. Also, project.pbxproj is just a text file. You can take a look inside and see what you're giving out.

like image 147
Jon-Eric Avatar answered Nov 15 '22 21:11

Jon-Eric