Xcode Different Resources For Different Targets

前端 未结 2 1808
無奈伤痛
無奈伤痛 2021-01-05 14:53

I am developing an iPhone app and there will be a Full as well as a Lite version of that app. In order get both bundles from the same source code and Xcode project I added a

相关标签:
2条回答
  • 2021-01-05 15:55

    In the left-hand panel of Xcode, right-click on the "Groups & Files" bar at the top. Check "Target Membership".

    Now you'll see a tick against every file that should be included in your current build target. Untick the ones you don't want, switch to your other target, and repeat.

    0 讨论(0)
  • 2021-01-05 15:59

    Instead of manipulating the "Copy Bundle Resources" step of your target, you can right-click resource files or groups (folders), choose "Get Info," and selectively leave stuff out of your Lite build under the Targets tabs of the info window for the file(s) you selected. Doing this on a group (folder) recurses the changes, so using resource groups (folders) is a nice easy way to make separate resources collections for separate builds.

    0 讨论(0)
提交回复
热议问题