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
0
votes
1 answer

Firebase initialization in multi target app

Is it possible to have multiple targets in an app (dynamic frameworks) and initialise firebase in one of them (FirebaseApp.configure()) but then use it in all the modules (e.g. with Firestore.firestore())
alessandro gaboardi
  • 889
  • 3
  • 11
  • 26
0
votes
1 answer

iOS WDA http://127.0.0.1:8100/inspector "error" : "unknown command"

when I run http://127.0.0.1:8100/status, the status is normal. { "value" : { "state" : "success", "os" : { "name" : "iOS", "version" : "13.3" }, "ios" : { "simulatorVersion" : "13.3", "ip" : "192.168.3.21" …
Jack
  • 1,339
  • 1
  • 12
  • 31
0
votes
2 answers

Different AppDelegate and Storyboard files for different targets

I have an XCode Project(iOS App for only iPhones) and I want to use same codebase for publishing different application. I have to change icon, name and design for this second application. Therefore, I did not use Localization. Also in codebase, I…
Mahmut Acar
  • 713
  • 2
  • 7
  • 26
0
votes
1 answer

Only use subset of pods for child target

Is there a way to only use a subset of pods for a child target of an app (e.g. a share extension of my app) I tried doing it this way: platform :ios, '8.0' inhibit_all_warnings! I18n.enforce_available_locales = false def all_pods pod…
Max90
  • 193
  • 2
  • 14
0
votes
1 answer

Is there a way to attach an image to a push notification without using the Notification Service Extension?

I am currently working in a project where we already have the setup for push notifications in our application's main target and now we want to add the rich push functionality. I made a lot of research on the internet and couldn't find a way to…
0
votes
0 answers

How can I open my second App in a specific VC if the application is already running?

So I have 2 targets , I managed to open the SecondTarget from the FristTarget with: if UIApplication.shared.canOpenURL(aUrl!){ if #available(iOS 10.0, *) { UIApplication.shared.open(aUrl!) } else { //…
Mohamed Lee
  • 267
  • 1
  • 3
  • 18
0
votes
0 answers

Maintaining & Supporting different targets within the same XCode Project

I just wanted a few thoughts on the best general approach that I could take in this situation. So, I'm working on a project that currently has a few different targets but in the future is potentially going to have more targets with significantly…
David West
  • 552
  • 2
  • 9
  • 21
0
votes
2 answers

Swift 3 How to manage different delegates for different Targets

We have created two Targets (Target_One & Target_Two) for same project. Target_One contain SDK1 and delegate Target1SDKHelperDelegate Target_Two contain SDK2 and delegate Target2SDKHelperDelegate The reason to create two target : we need to…
iDev
  • 531
  • 1
  • 5
  • 15
0
votes
1 answer

Navigation depending on Xcode target

I have an app with an UITabBarController, the tabs navigate as usual, but one of the tabs should navigate to different view controllers depending on the project target, everything is laid out with storyboards. Can not seem to find a way without…
Juan Boero
  • 6,281
  • 1
  • 44
  • 62
0
votes
1 answer

Can you share a .swift file between an app and its extension if it relies on app-only code

I have the following set of files in my project: The IAPHelper class uses the objective-c through a bridging header. I was wondering if I could use the IAPHelper class in both my app and its app extension like this: (Setting IAPHelper's target…
Foobar
  • 7,458
  • 16
  • 81
  • 161
0
votes
2 answers

How to setup a separate iTunesArtwork file for each Target

I have a xcode project with many targets and each target has its own App Icon and Launcher Icon It's fair to expect that each target has its own iTunesArtwork file. But the problem here is The name of the file can't be changed and it should be with…
Durai Amuthan.H
  • 31,670
  • 10
  • 160
  • 241
0
votes
0 answers

Target and project settings in xcode

I wanted to know if the project settings will override the target settings in xcode. So when i click on project i can click on build settings but also when i click on target settings i can select its build settings. So when i choose the build…
Esko918
  • 1,397
  • 1
  • 12
  • 25
0
votes
1 answer

Class iVars not displaying in Xcode after upgrade to multiple targets

I just updated my project to have multiple targets. After doing this, the class ivars are no longer displaying when I set a breakpoint. I cannot figure out what might be causing this. The instructions for updating to multiple targets was pretty…
JeffB6688
  • 3,782
  • 5
  • 38
  • 58
0
votes
0 answers

Targets, build,schemes iOs aclarations

I have a iOs app that should change its style and logos in function of which company ask us for the app. What I want is, have different configurations for the same app, so I can put a folder there with the personalization, create a new…
D4rWiNS
  • 2,585
  • 5
  • 32
  • 54
-1
votes
1 answer

How to handle issues after generating multiple environment in iOS (Swift)?

I am trying to handle multiple environment in iOS project. I have followed proper steps of generating "Production" and "Development" Targets. But, when I try to run Target "Development", it crashes on UI, like, Problem: Terminating app due to…
Ruchira More
  • 261
  • 1
  • 16
1
2