Questions tagged [targets]

163 questions
4
votes
0 answers

How to use different values for variables in different targets of the same Xcode project?

I have a project with the same code base for different targets, which need different values for some variables. What is the best way to achieve that? Here are my thoughts: Use a different property list resource containing the values for each…
Guillaume
  • 4,331
  • 2
  • 28
  • 31
4
votes
1 answer

Xcode: How to handle many slightly different targets/apps based on the same source code

For one of our company's products we need to generate iOS apps with slight changes (different logos, slightly different settings in the Info.plist, etc.); but basically they are all based on the same source code. Now that we are starting to get some…
BastiBen
  • 19,679
  • 11
  • 56
  • 86
3
votes
1 answer

How to build iPhone and iPad targets with the same filename in Xcode 4?

Our company created an iOS app that has an iPhone version and an iPad version. The app is called "SaveMyPlace". We wanted to call the iPad version "SaveMyPlaceHD", but that name was too long, and got truncated on the springboard screen. We ended up…
Duncan C
  • 128,072
  • 22
  • 173
  • 272
3
votes
0 answers

CMake Best Practice for using Targets

I compiled all the information and now iam trying to implement CMake build system for a super project and i really need a guidance here,it would be great to transform all data i acquired by reading about CMake across different sites to practical…
3
votes
1 answer

Parallelism in MSBuild

Suppose I have two targets that are time-consuming and I want to execute them in parallel. Let's say one target runs unit tests and the other generates some documentation. I tried this approach: root.targets:
3
votes
0 answers

Issue with archive: DerivedData/ProjectName-fjzvotpzpzoiltaayiafiugoaany/Build/Intermediates/ArchiveIntermediates/La: No such file or directory

I've problems when archiving my apps. I have various targets and each one of them is connected with an app of the Store. I need to submit these targets on the store but when archiving them 4 targets are not able to work properly, while the other 7…
jeydiz
  • 313
  • 4
  • 9
3
votes
2 answers

Xcode Change color theme based on target

I am developing an ipad app which will have two targets but color theme will be different for the targets e.g. in Target1 the selected button font color will be red and in Target2 the selected button font color will be green.I was wondering that is…
Desert Rose
  • 3,376
  • 1
  • 30
  • 36
3
votes
1 answer

Show/Hide UI elements in a storyboard depending on the target

I have read a lot about creating a lite and a paid version with Xcode and in my app I am using multiple targets and preprocessor macros as described in this Stackoverflow post. However, I don't know how to handle different targets with a…
Mischa
  • 15,816
  • 8
  • 59
  • 117
3
votes
3 answers

xbuild failing with (.html) resource files

I'm having a problem getting xbuild to compile a web application project. We have some resource files, which are .html files. The one that's failing currently is 'KwasantCore\Resources\HTMLEventInvitation.html' The resource is defined in…
Rob
  • 26,989
  • 16
  • 82
  • 98
3
votes
1 answer

What is `copy to target` in Build Rules in Xcode?

When I goto TARGETS - Build Rules - All in Xcode, I am seeing some files asking permission to copy to target. What are those files? Is it necessary to copy them to target? What will happen after copying them to target? I'm using xcode 4.6.
Nazik
  • 8,696
  • 27
  • 77
  • 123
3
votes
1 answer

MSBuild multiple outputpath

I saw this S.O question and have a similar requirement. This is what I have in a .targets file -
Pete
  • 169
  • 2
  • 14
2
votes
1 answer

XCode debug wrong Target

Short problem description: XCode 4.2 install right Target on device, but debug (run) always only one of them. Preconditions: XCode 4.2 on MAC, iPad as target device I have two Targets: PRO & FREE. They both: have different info.plist file (set in…
Mike Keskinov
  • 11,614
  • 6
  • 59
  • 87
2
votes
1 answer

iphone: cannot link gh-unit target to app target, cannot execute binary file

this is a question that tries to accomplish what this tutorial offers with a GHUnit Test Target. Its about linking a test target to the source target so that you dont have to manually include the source files in the test target. The following is an…
dgrandes
  • 1,187
  • 2
  • 14
  • 28
2
votes
1 answer

nlog Can't load custom target from referenced assembly

I've created the following custom target: [Target("MyTarget") public class MyTarget : TargetWithLayout This class is defined within its own assembly, lets say MyTargets.dll (not real name). The NLog.config file has the following lines
JB.
  • 871
  • 1
  • 11
  • 19
2
votes
1 answer

Nested Aggregate Targets in Xcode don't seem to pass settings properly

I have a project with one main Cocoa application, a bunch of plugins, and a couple of helper apps. The helper apps have their own targets, and as I want the app build-able without the plugins, the main app has it's own target (call it AppTarget),…
icodestuff
  • 340
  • 1
  • 11
1 2
3
10 11