Questions tagged [ios-targets]

Related to the Xcode projects targets. They may have multiple for one project and can be of different types (applications, extensions, libraries, unit tests, etc.).

Related to the Xcode projects targets. They may have multiple for one project and can be of different types (applications, extensions, libraries, unit tests, etc.).

30 questions
9
votes
3 answers

How to share files between two xcode projects in workspace?

I learnt about Xcode workspace .I know how to share the static library but i want to share the files between two xcode projects in workspace and is it possible to run multiple targets at a time?Can you provide me the information of how to do…
Shreya P
  • 111
  • 1
  • 4
8
votes
4 answers

Xcode 7 - cannot expand Projects/Target tab

I am completely flummoxed by what ought to be a rather simple task. My Projects/Targets tab in Xcode 7 has become shortened in width, as you can see below. All attempts to drag the rightmost side of the area to the right to expand the width fail…
WendiKidd
  • 4,333
  • 4
  • 33
  • 50
6
votes
1 answer

How to share Swift classes across multiple targets of one Xcode workspace?

I'm using Xcode 9 and Swift. I've got one workspace and one iOS project. Later I added a MacOS target (Cocoa App). When I try to reference a class from the MacOS target to the iOS target, the compiler says: Use of unresolved identifier. How do…
Lance Kind
  • 949
  • 12
  • 32
5
votes
1 answer

What's the difference between Build Configurations and Targets?

We have five practically identical apps, with a few different icons/names/settings. They are different "brands" of the same app, only differentiated in a few different icons, separate AppGroups, and a few default settings in code. These are created…
Sti
  • 8,275
  • 9
  • 62
  • 124
4
votes
1 answer

Swift: Calling function from a different target

I have two targets (Target A, Target B) and from Target B I would like to call a function which is located in Target A. I get the Use of Unresolved Identifier error when trying to compile as expected since ClassA.swift isn't part of Target B. So I…
2
votes
1 answer

How to reference app code form a SiriIntent extension?

I have setup a SiriKit target within my application recently, but I cannot reference any app code within it. I have added my app's target to the SiriKit target's Build Targets->Target Dependencies section, but I still get the following…
Zach
  • 3,909
  • 6
  • 25
  • 50
2
votes
3 answers

Multiple Targets in Xcode: "File not found"

I am having a single project file. Then I created another target for a "Lite" version. I changed the bundle ID and product name for each target and am able to continue working this way. But when I added a new custom class to the project, I try to…
GeneCode
  • 7,545
  • 8
  • 50
  • 85
2
votes
1 answer

Always have to clean before building in a mix and match Obj C / Swift project

I was wondering if someone knows a workaround around this bug in XCode I have a mix and match Obj C / Swift project. Always when I am changing the target and then build the project I get errors in the file XXX-Swift.h regarding duplicate interfaces…
2
votes
1 answer

iOS changing my app name

I was playing around with my app and tried to rename the app. And now I have the name stuck for some reason. I want to name it "MantisX", butfor some reason I have it stuck as "DataRecorder". I went into Targets and selected my app and changed the…
Chase Roberts
  • 9,082
  • 13
  • 73
  • 131
1
vote
1 answer

Build react native app for ios release fails

What to achieve. Build a react native app for ios release to be able to submit to TestFlight What i've done. Read the documentation Change the scheme to build for release(production) Ran Product > Archive. Fails with: 'React/RCTBridgeModule.h'…
AXSM
  • 1,142
  • 1
  • 12
  • 27
1
vote
0 answers

How to add different Development Targets in Ionic project

In iOS development, we can add different targets. Which help us to maintain 2-3 different project on same theme. Compiled target takes it's own resource file. I have a project with different targets. Each target have different image-resources and…
Prakhar Singh
  • 206
  • 1
  • 13
1
vote
1 answer

Archiving multiple targets simultaneously

I have multiple targets for my iOS app. I want to archive all the targets simultaneously. I found this link but could not find anything in this link . Is there any way to archive and create different .ipa files simultaneously.
Bharath Reddy
  • 636
  • 1
  • 5
  • 21
1
vote
0 answers

Child Target not inheriting pods from parent target

I have two different targets in my project, with one being a copy of the other. I have now migrated my project to swift 3 and managed to get the main target building and running fine. The copy though seems to not find any of the pod files that I…
user3536057
  • 219
  • 3
  • 15
1
vote
1 answer

Build variants (different files for different brands) in Xcode / iOS

Android has very good tools for creating different variants of an app (for example, the exact same code but with a different logo). You just create a different flavour and put a different image for each flavour's directory. How do I achieve this in…
Questioner
  • 2,451
  • 4
  • 29
  • 50
0
votes
0 answers

Siri Extension with Core Data

Currently, I am able to create a siri shortcut in my xcode app and it displays a view, but I want to make it dynamic to show records via my core data. However, I am not able to query my core data from my intent handler. import UIKit import…
abant
  • 3
  • 3
1
2