View
227
Download
2
Category
Preview:
Citation preview
2InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
• XcodeisthestandarddevelopmentenvironmentforMacOSX• XcodeisusedtodevelopMacOSXoriOSapplications
CProgramminginMac
Xcode
3InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step1:Createaproject
File à New à Project…
4InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step2:SelectMacOS&commandlineapp
xcode <8
5InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step2:SelectMacOS&commandlineapp
xcode >=8
6InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step2.5:SelectClanguage
7InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Projectiscreated• Projectalreadyincludesonesourcefile• Thesourcefilealreadyincludesabasicversionofthemainprogram
Source codeeditor
8InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step3:Compileswhileyoutype
Error messagesappear over thesource code
9InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step3:Runningtheprogram
Button to open and close console and debubber tools
Compile, build and RUN
10InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step4:Debuggingtheprogram
Output console
Variables
Step button
Current execution line
Breakpoint
11InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Workingwithtextfilesorbinaryfiles• Theworkingdirectorywheretheprogramisexecutedcanbeconfiguredintheprojectscheme.
Edit Scheme
Recommended