ios-targets

Swift 3 How to manage different delegates for different Targets

丶灬走出姿态 提交于 2019-12-12 03:39:36
问题 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 upload two apps with same UI but different SDK integration. As we know, each SDK has their own delegates. So we want to apply delegates specific to the target. Example: Target_One has a class named MyClass class MyClass: NSObject, Target1SDKHelperDelegate

How to share files between two xcode projects in workspace?

拈花ヽ惹草 提交于 2019-12-10 13:16:41
问题 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 this. Thanks in advance 回答1: Sharing files between projects in the same workspace is easy, even if the projects are on the same level (no subprojects): Assume you want to share constants between Project1 and Project2 , and these constants are defined in a