0

I added a custom-info.plist to the packaging section under Build settings for a new target.

When I run this target it still grabs [AppName]-info.plist. For this custom plist I copied [AppName]-info.plist contents into this custom plist file.

Update:

I created 2 Targets Dev and Staging I created 2 .xcconfig files ENV = "Dev" - Dev.xcconfig ENV = "Staging" - Staging.xcconfig

Then in my targets for debug I set the DevTarget to Dev.xcconfig and the StagingTarget to Staging.xcconfig

Im my plist file I added the line EnvironmentList = ${ENV}

Dev seems to work, but when I change it to my StagingTarget is its says Dev

Nick Turner
  • 927
  • 1
  • 11
  • 21
  • It can't be possible as default one will always load. What's the purpose in loading the custom plist? anything specific to UI? – Reno Jones Jul 18 '13 at 17:07
  • Yeah I have a plist with definitions for server locations, settings, etc based on dev, staging, test, preprod, and prod environments. I was hoping to specify another plist in my target. So I did that, I just don't know how to find out the name specified in packaging. – Nick Turner Jul 18 '13 at 18:29
  • I already did what Abizem showed on the picture with my custom plist file name. – Nick Turner Jul 18 '13 at 18:30

1 Answers1

1

If you really want to use a different plist file you can set it from your build settings:

enter image description here

Abizern
  • 146,289
  • 39
  • 203
  • 257