xcode - Renaming Duplicated Target: Where do I fix the reference to the default plist name? -


environment: xcode 4.6.3

i wish duplicate target , rename default ' copy' ' (simulator)'.

steps i've done:
1) select target & contextually click 'duplicate' option.
2) click/select copied target name , modify chose name: ' (simulator)'.
3) manage schemes: delete generated (copy) , auto-generate new scheme.
...the newly-generated scheme should correctly labeled '...(simulator)'.

problems...
either compiler error of conflicting piece of code, or following:

error: not read data '/users/ric/desktop/iphone5_support/cg-mobile copy-info.plist': file “cg-mobile copy-info.plist” couldn’t opened because there no such file.

question: what's simplest way
a) duplicate ,
b) rename duplicate don't screw-up build?

in these situations manually fix things in project.pbxproj text editor.

  1. close xcode
  2. open project.pbxproj in text editor (emacs, vim, sublimetext, etc)
  3. search/replace cg-mobile copy-info.plist new name.
  4. save.
  5. reopen xcode.

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -