Questions tagged [target]

In a makefile, targets are associated with a series of commands to execute when an action is requested.

1932 questions
14
votes
2 answers

How to add new iPhone target

I'm trying to add a new target to my Xcode project so that I can run the same app, but with subtle difference. Please can someone guide me through the setup of a new target since it is my first time and I'm not sure how to go about doing it. In…
user843337
14
votes
2 answers

Copy targets from one Xcode project to another?

Is it possible to Copy targets from one Xcode project to another, and if so, how? Thanks!
SimplyKiwi
  • 12,376
  • 22
  • 105
  • 191
14
votes
2 answers

Xcode 13 application projects open as text instead of project settings editor

After upgrading from Xcode 12 to 13, when I open an Xcode workspace with multiple application projects and click/select a project in the Navigator view, Xcode opens the project as a text file instead of the projects settings view (the one with…
AKornich
  • 682
  • 5
  • 16
14
votes
2 answers

android get Drawable image after picasso loaded

I am using Picasso library to load image from url. The code I used is below. Picasso.with(getContext()).load(url).placeholder(R.drawable.placeholder) .error(R.drawable.placeholder).into(imageView); What I wanna do is to get the…
Shumin
  • 991
  • 2
  • 13
  • 22
14
votes
3 answers

Objective-c asynchronous communication: target/action or delegation pattern?

I'm dealing with some asynchronous communication situations (Event-driven XML parsing, NSURLConnection response processing, etc.). I'll try to briefly explain my problem: In my current scenario, there is a service provider (that can talk to a xml…
Lio
  • 4,225
  • 4
  • 33
  • 40
14
votes
3 answers

Allow space in target of GCC makefile

Is there a way to get spaces inside target names working when using make.exe? It seems to be impossible if this really ancient bug report is correct: http://savannah.gnu.org/bugs/?712 For reference, the big problem is that pieces of makefile…
Orwell
  • 1,468
  • 1
  • 13
  • 28
13
votes
4 answers

Is it possible to create multiple targets for Android project like Xcode Target

I worked with iPhone Xcode Traget to create multiple iPhone apps with single code base. My question, is it possible to create multiple targets for Android project. If yes, is it possible with Eclipse? Edit: Xcode Target: A single Projects can…
Vinayak Bevinakatti
  • 40,205
  • 25
  • 108
  • 139
13
votes
3 answers

MSBuild target _CopyWebApplication does not copy all necessary files to the bin folder

Elsewhere on the Web, you can find recommendations on using something like this to simulate the Publish feature in the VS 2005-2008 IDE from a command-line (I hope I did not goof up the syntax!): msbuild /t:ResolveReferences;_CopyWebApplication…
jyoungdev
  • 2,674
  • 4
  • 26
  • 36
13
votes
2 answers

target-action uicontrolevents

I must be missing something obvious here but ... UIControl has a method - (void)addTarget:(id)target action:(SEL)action forControlEvents: (UIControlEvents)controlEvents which lets you add an action to be called when any of the given controlEvents…
Fabrizio Farinelli
  • 241
  • 1
  • 4
  • 8
13
votes
2 answers

Detect in Xcode iPhone project whether I'm building for simulator or device?

Is there any way I can conditionally compile in my app based upon whether I'm building for the simulator or the device? (My app hooks to an external server: if I'm running on the device, I want to connect to localhost; if I'm running on the device,…
Greg Maletic
  • 6,225
  • 8
  • 54
  • 73
12
votes
7 answers

In SwiftUI, is it possible to use a modifier only for a certain os target?

Good day! In SwiftUI, is it possible to use a modifier only for a certain os target? In the following code I would like to use the modifier .listStyle(SidebarListStyle()) only for the MacOS target because it does not exist for the iOS target. Thanks…
Wild8x
  • 459
  • 4
  • 13
12
votes
2 answers

CMake dummy target depending on other targets

I have one 3rdparty project providing many libraries (let's say header-only libraries). I want to write a CMake encapsulation for this project: File foo.cmake add_library( foo-aaa INTERFACE IMPORTED GLOBAL) set_target_properties(foo-aaa…
oHo
  • 51,447
  • 27
  • 165
  • 200
11
votes
1 answer

How to differentiate multiple targets with Xcode 4.2

I've developed a lite version of an app. Now I want to create a paid version. So I've duplicated the target, changed its name (so change plist and other stuff with that name) and now I have to differentiate in code. I'm using Xcode 4.2 and I see on…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
11
votes
2 answers

Jquery to change a form's target

I want to change the form's target based on the option which is selected.
11
votes
3 answers

Getting lots of warnings when building with targets in Visual Studio 2010

I'm trying to build some code but getting lots of warnings in target files, stuff like this: Warning 12 The element 'ItemGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'TCS_Compile' in namespace…
meds
  • 21,699
  • 37
  • 163
  • 314