Reputation: 813
I have a framework that comes in two versions:
They have the same name (let's call them HotDog.framework) and should now be linked according to a build configuration (Debug or Release).
How would I link the frameworks with Xcode depending on my build configuration?
Thank you very much :)
Upvotes: 1
Views: 3520
Reputation: 2597
I see two ways to solve your task:
Path settings (simple way)
Build Settings
- Search Paths
Framework Search Paths
rowFramework Search Paths
Build pre-actions (need more research but may be more useful in future)
Product
- Scheme
- Edit scheme...
(or press Cmd
+ <
)Build
and select Pre-actions
+
and write script with copying files, relinking frameworks or etc (look command-line tools like xcodebuild
, few examples are here)Upvotes: 3