1

Possible Duplicate:
.app file appears in red (missing) in new projects with Xcode 4

I just upgraded to XCODE 4.1, upgraded to OS Lion, had to replace my expired developer and distribution and team certificates. Now my Product AppName.app appears red. The app compiles file with no errors using Base SDK IOS 4.3 and tests fine in the simulator and on the iPhone device. I've used Product>Clean, rebuilt it many times but the AppName.app remains red. Any help is appreciated. lq

Community
  • 1
  • 1
Lauren Quantrell
  • 2,647
  • 6
  • 36
  • 49
  • if you have built it w/o error, sometimes restarting Xcode fixes it. otherwise, the mistakes i make is that i have to choose the right scheme or recreate the scheme in case it's been removed or hidden. – justin Sep 03 '11 at 20:10
  • I've restarted, rebooted, let it sit hoping external forces would fix it. Still no go. I don't know what you mean by choose the right scheme. – Lauren Quantrell Sep 03 '11 at 20:17
  • reboot should not be necessary. your project has one scheme per target by default. you can add schemes or choose schemes of your dependencies in Xcode. if you have never created a scheme, your project has only one target (Product.app), and your project does not reference other projects (e.g. does not link to static libraries) then you *should* still be using the default scheme. you choose the scheme using the tabbed popup in the upper left (e.g. where you would specify device or simulator) -- the default scheme has the same title as your product name. (cont) – justin Sep 03 '11 at 20:25
  • (cont) one way to verify that there is one scheme in your project is by going to "Manage Schemes" (cmd+shift+, - then click "Manage Schemes…"). – justin Sep 03 '11 at 20:27

1 Answers1

4

okay this is what you do quite simply:

  1. make sure you downloaded your developer profile matching your bundle id and select it in targets or project settings

  2. Then MAKE SURE YOU SET YOUR build to release (EDIT SCHEME)

  3. go to product and go to build for and then build for archiving

shouldnt be red

user918958
  • 92
  • 1
  • 6