SlideShare a Scribd company logo
1 of 18
Download to read offline
openFrameworks
    XCode tricks
Add icon to app
  First download img2icns from
  http://www.img2icnsapp.com/
Add icon to app
1.   Design your icon in i.e. Photoshop
2.   Export it to png
3.   Drag and drop it onto img2icns
4.   Then click on the “Icns” button, select OF application directory and
     save the icon into i.e. the project directory.
Add icon to app

1. Open XCode 4.0x
2. From the menu select: View > Navigators > Project
3. Click on the project icon with the name “emptyExample”
Add icon to app
4. Click on the ”emptyExample” target and select the “Summary” pane.
Add icon to app
5. Drag and drop the icon you exported with img2icns from finder, into
your project. When you drop the icon, this window pops up. I used these
settings.




                                             The dropped icon will
                                             show up in your project
                                             panel.
Add icon to app
6. Now, drag and drop the icon from your project panel
into the “App icon” area of the “Summary pane”
Add icon to app
When you dropped the icon, a question mark appears. I think, you see
this question mark because you still need to add a build phase, so lets
continue...
Add icon to app
7. Click on the “Build Phases” pane and “Add Build Phase”. Select “Copy
Bundle Resources”
Add icon to app
8. Now, finally, drag and drop the .icns file from your project panel onto
the “Copy files” group which just showed up in your “Build Phases” pane.
This will copy the icon to your application bundle.
Add icon to app
When you click on “Summary” again, you’ll see the icon
showing up where you previously saw the question mark.
Add icon to app
You only need to recompile your application and the icon will be copied
into the application bundle. You’ll see
a nice icon for the application now.
What’s in a name
I’m using a “Run script” to copy the compiled application to a custom
application bundle so I can use my own application names. There must
be an easier way, but this is a simple and quick solution which works.

Note: make sure you first add your icon!
What’s in a name
1. Select the “Build Phases” pane, click on “Add Build Phase” and select
“Add Run script”
What’s in a name
2. Copy and paste this script into the contents
of the “Run script” group you just added. Here we create an application
with the name “PhotoUnit.app”. Rename this to you whatever you want.



 appname=PhotoUnit.app
 if [ ! -d ] ; then
 
 mkdir -p $TARGET_BUILD_DIR/${appname}
 fi

 cp -r $TARGET_BUILD_DIR/$PRODUCT_NAME.app
 $TARGET_BUILD_DIR/${appname}
What’s in a name
2. The “Run Script” will look like this:
What’s in a name
3. Recompile and that’s it! Note that this will make a copy of your
application.
roxlu
www.roxlu.com

More Related Content

Recently uploaded

Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentMahmoud Rabie
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Dublin_mulesoft_meetup_API_specifications.pptx
Dublin_mulesoft_meetup_API_specifications.pptxDublin_mulesoft_meetup_API_specifications.pptx
Dublin_mulesoft_meetup_API_specifications.pptxKunal Gupta
 
Tetracrom printing process for packaging with CMYK+
Tetracrom printing process for packaging with CMYK+Tetracrom printing process for packaging with CMYK+
Tetracrom printing process for packaging with CMYK+Antonio de Llamas
 
QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfROWELL MARQUINA
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Mark Simos
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Deliver Latency Free Customer Experience
Deliver Latency Free Customer ExperienceDeliver Latency Free Customer Experience
Deliver Latency Free Customer ExperienceOpsTree solutions
 
Which standard is best for your content?
Which standard is best for your content?Which standard is best for your content?
Which standard is best for your content?Rustici Software
 
THE STATE OF STARTUP ECOSYSTEM - INDIA x JAPAN 2023
THE STATE OF STARTUP ECOSYSTEM - INDIA x JAPAN 2023THE STATE OF STARTUP ECOSYSTEM - INDIA x JAPAN 2023
THE STATE OF STARTUP ECOSYSTEM - INDIA x JAPAN 2023Joshua Flannery
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
WomenInAutomation2024: AI and Automation for eveyone
WomenInAutomation2024: AI and Automation for eveyoneWomenInAutomation2024: AI and Automation for eveyone
WomenInAutomation2024: AI and Automation for eveyoneUiPathCommunity
 
Tecnogravura, Cylinder Engraving for Rotogravure
Tecnogravura, Cylinder Engraving for RotogravureTecnogravura, Cylinder Engraving for Rotogravure
Tecnogravura, Cylinder Engraving for RotogravureAntonio de Llamas
 
Arti Languages Pre Seed Pitchdeck 2024.pdf
Arti Languages Pre Seed Pitchdeck 2024.pdfArti Languages Pre Seed Pitchdeck 2024.pdf
Arti Languages Pre Seed Pitchdeck 2024.pdfwill854175
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Transport in Open Pits______SM_MI10415MI
Transport in Open Pits______SM_MI10415MITransport in Open Pits______SM_MI10415MI
Transport in Open Pits______SM_MI10415MIRomil Mishra
 
The Critical Role of Spatial Data in Today's Data Ecosystem
The Critical Role of Spatial Data in Today's Data EcosystemThe Critical Role of Spatial Data in Today's Data Ecosystem
The Critical Role of Spatial Data in Today's Data EcosystemSafe Software
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 

Recently uploaded (20)

Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career Development
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Dublin_mulesoft_meetup_API_specifications.pptx
Dublin_mulesoft_meetup_API_specifications.pptxDublin_mulesoft_meetup_API_specifications.pptx
Dublin_mulesoft_meetup_API_specifications.pptx
 
Tetracrom printing process for packaging with CMYK+
Tetracrom printing process for packaging with CMYK+Tetracrom printing process for packaging with CMYK+
Tetracrom printing process for packaging with CMYK+
 
QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdf
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Deliver Latency Free Customer Experience
Deliver Latency Free Customer ExperienceDeliver Latency Free Customer Experience
Deliver Latency Free Customer Experience
 
Which standard is best for your content?
Which standard is best for your content?Which standard is best for your content?
Which standard is best for your content?
 
THE STATE OF STARTUP ECOSYSTEM - INDIA x JAPAN 2023
THE STATE OF STARTUP ECOSYSTEM - INDIA x JAPAN 2023THE STATE OF STARTUP ECOSYSTEM - INDIA x JAPAN 2023
THE STATE OF STARTUP ECOSYSTEM - INDIA x JAPAN 2023
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
WomenInAutomation2024: AI and Automation for eveyone
WomenInAutomation2024: AI and Automation for eveyoneWomenInAutomation2024: AI and Automation for eveyone
WomenInAutomation2024: AI and Automation for eveyone
 
Tecnogravura, Cylinder Engraving for Rotogravure
Tecnogravura, Cylinder Engraving for RotogravureTecnogravura, Cylinder Engraving for Rotogravure
Tecnogravura, Cylinder Engraving for Rotogravure
 
Arti Languages Pre Seed Pitchdeck 2024.pdf
Arti Languages Pre Seed Pitchdeck 2024.pdfArti Languages Pre Seed Pitchdeck 2024.pdf
Arti Languages Pre Seed Pitchdeck 2024.pdf
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Transport in Open Pits______SM_MI10415MI
Transport in Open Pits______SM_MI10415MITransport in Open Pits______SM_MI10415MI
Transport in Open Pits______SM_MI10415MI
 
The Critical Role of Spatial Data in Today's Data Ecosystem
The Critical Role of Spatial Data in Today's Data EcosystemThe Critical Role of Spatial Data in Today's Data Ecosystem
The Critical Role of Spatial Data in Today's Data Ecosystem
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 

openFrameworks App and XCode tricks

  • 1. openFrameworks XCode tricks
  • 2. Add icon to app First download img2icns from http://www.img2icnsapp.com/
  • 3. Add icon to app 1. Design your icon in i.e. Photoshop 2. Export it to png 3. Drag and drop it onto img2icns 4. Then click on the “Icns” button, select OF application directory and save the icon into i.e. the project directory.
  • 4. Add icon to app 1. Open XCode 4.0x 2. From the menu select: View > Navigators > Project 3. Click on the project icon with the name “emptyExample”
  • 5. Add icon to app 4. Click on the ”emptyExample” target and select the “Summary” pane.
  • 6. Add icon to app 5. Drag and drop the icon you exported with img2icns from finder, into your project. When you drop the icon, this window pops up. I used these settings. The dropped icon will show up in your project panel.
  • 7. Add icon to app 6. Now, drag and drop the icon from your project panel into the “App icon” area of the “Summary pane”
  • 8. Add icon to app When you dropped the icon, a question mark appears. I think, you see this question mark because you still need to add a build phase, so lets continue...
  • 9. Add icon to app 7. Click on the “Build Phases” pane and “Add Build Phase”. Select “Copy Bundle Resources”
  • 10. Add icon to app 8. Now, finally, drag and drop the .icns file from your project panel onto the “Copy files” group which just showed up in your “Build Phases” pane. This will copy the icon to your application bundle.
  • 11. Add icon to app When you click on “Summary” again, you’ll see the icon showing up where you previously saw the question mark.
  • 12. Add icon to app You only need to recompile your application and the icon will be copied into the application bundle. You’ll see a nice icon for the application now.
  • 13. What’s in a name I’m using a “Run script” to copy the compiled application to a custom application bundle so I can use my own application names. There must be an easier way, but this is a simple and quick solution which works. Note: make sure you first add your icon!
  • 14. What’s in a name 1. Select the “Build Phases” pane, click on “Add Build Phase” and select “Add Run script”
  • 15. What’s in a name 2. Copy and paste this script into the contents of the “Run script” group you just added. Here we create an application with the name “PhotoUnit.app”. Rename this to you whatever you want. appname=PhotoUnit.app if [ ! -d ] ; then mkdir -p $TARGET_BUILD_DIR/${appname} fi cp -r $TARGET_BUILD_DIR/$PRODUCT_NAME.app $TARGET_BUILD_DIR/${appname}
  • 16. What’s in a name 2. The “Run Script” will look like this:
  • 17. What’s in a name 3. Recompile and that’s it! Note that this will make a copy of your application.

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n