Questions tagged [targets]

163 questions
7
votes
4 answers

What platform can I compile binaries for, using LLVM (Low Level Virtual Machine)?

I am interested in using the LLVM's Clang compiler. LLVM claims to be cross-platform however it is not clear which platforms can be targeted. I have done quite a lot of Googling on this but there doesn't seem to be much information about LLVM's…
apokaliptis
  • 424
  • 1
  • 4
  • 12
7
votes
2 answers

How to add a build phase in a project template?

I'm trying to add a Run Script Build Phase to a target in a custom Project Template for Xcode 4. Does anyone have any examples, tutorials, or tips on how to do this? I'm assuming that this will be done in TemplateInfo.plist - but my searches are…
Wex
  • 4,434
  • 3
  • 33
  • 47
7
votes
2 answers

TargetDeviceFamily not recognized

I have the following code in my package.appxmanifest, and I'm getting an error that the TargetDeviceFamily is an "unrecognized XML element"... I don't know what the hell is going on, but it's this document is the last thing from me publishing my…
Uchiha Itachi
  • 1,251
  • 1
  • 16
  • 42
7
votes
2 answers

XamarinAndroidBuildResourceRestore Error when Build after update xamarin nuget

I have this error after updated Xamarin.forms 2.3.5.235-pre2, I Hit it when building the App.Droid project. It says "XamarinBuildAndroidResourceRestore could not be initialized" and "XamarinBuildAndroidResourceRestore target not support the…
frank_lbt
  • 426
  • 1
  • 7
  • 21
7
votes
2 answers

MsBuild: Get current directory of targets

I have a msbuild target and it has a Import tag like this: In contents of Company.LifeCycle.targets file, how can I get programatically the current directory (in this…
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
7
votes
0 answers

How to target multiple .NET frameworks with one project and put all versions into a single NuGet package?

Okay, I've been searching around for this answer for a while and, although I've gotten closer, I still don't have an all-encompassing solution. I've got a library that I'm writing that needs to build for both .NET 4.0 and 4.5. I want to take both…
Rich G
  • 93
  • 1
  • 4
7
votes
3 answers

Specify and switch between ant targets in sublime text 2

I´m using Sublime Text 2 together with the ant build system. CTRL+B works perfectly fine to start the build with the default target. However my question is, is there a ways to define different ant build targets and have a mechanism to switch between…
tomraithel
  • 958
  • 2
  • 13
  • 22
6
votes
2 answers

Why does 'clean' magically fix mysterious bugs in my app?

If I ever have a problem that is not showing up as a warning, but makes my app crash on runtime, sometimes I'll build->clean and often it this unkown bug disappears. This happens mostly when I import new images into the project(replacing old ones)…
DevEarley
  • 221
  • 3
  • 11
6
votes
2 answers

Xcode project with different versions of a file for each target?

I know that it is possible to add files to only some targets: Adding files to separate targets in Xcode 4 But is it possible to have multiple different version of a file (same name and path) included in an Xcode project - one for each target? E.g. I…
Morten Holmgaard
  • 7,484
  • 8
  • 63
  • 85
5
votes
2 answers

Avoid duplicating GNU Make rules

I've been writing a Makefile that performs some dependency generation and I've found myself having to duplicate rules because the (legacy) codebase contains a mixture of .cpp and .cc files. It seems a bit unsightly. Is there anyway to specify that…
Alastair
  • 1,669
  • 3
  • 14
  • 27
5
votes
1 answer

Singleton framework sharedInstance accessible from iOS and WatchKit Target

I made a Swift framework called SharedLocation with a Swift singleton class "SharedLocationManager" inside of it like so: public class SharedLocationManager: CLLocationManager, CLLocationManagerDelegate { public class var sharedInstance:…
iVentis
  • 993
  • 6
  • 19
4
votes
6 answers

Redirecting new tab on button click.(Response.Redirect) in asp.net C#

I'm trying to open a page in new tab/window on button click.I tried in the google got this code but its not working. Can anybody help me with this?
Naresh
  • 657
  • 3
  • 16
  • 35
4
votes
1 answer

Swift: Multiple targets handling: macros not working

from the reference How to handle multiple targets in XCode using swift language? and https://www.appcoda.com/using-xcode-targets/ I have created three targets, each target having different bundle ids and app icons. I have also added different flag…
Sridhar
  • 2,228
  • 10
  • 48
  • 79
4
votes
1 answer

Why outputting 'error: ' in Post-Build Event breaks my build in VS2012?

Adding cmd.exe /c "ECHO error : unexplainable" causes this: 1>------ Build started: Project: xxx, Configuration: Debug Win32 ------ 1>EXEC : error : unexplainable 1>C:\Program Files…
coda
  • 111
  • 6
4
votes
2 answers

The apple watchkit app showing error "The operation couldn't be completed. (LaunchServicesError error 0.)"

The apple watchkit app is not launching on simulator. After renaming target always getting the message "The operation couldn't be completed. (LaunchServicesError error 0.)".
1
2
3
10 11