can we have a storyboard files with the same name for the different target , let 's say we need a different Design for Home VC and Details VC for the full and Light version and we created them in the Main.storyboard , what’s the best solution for that ?
is there something like Variant in Android !
Well, you simply could put your identically named storyboards in seperate directories to solve this conflict. Naming the directories to reflect the targets might be a good idea.
If you consider this route though, I would advice to take extra care to avoid ressource duplication, i.e. by using containers.
Checkbox framework successfully builds, Xcoder successfully builds and runs, but Xcoder Lite throws a “No such module ‘Checkbox’” error on the first swift file (ShortcutDetailViewController.swift) it tries to compile.
@jerryp48 - You can get this error when the framework isn’t in your Embedded Binaries and Linked Frameworks.
Click on Xcoder at the top of your Project Navigator and select the Xcoder Lite target.
On the General tab, check Embedded Binaries. If Checkbox.framework isn’t listed, drag on Checkbox.framework from the Project Navigator. This should add the framework to Linked Frameworks too.
Clean the project (Shift Cmd K) and build and run and cross fingers
Just as an aside, if your project/target is working, as mine was, to reconstruct this error, I had to delete the Derived Data folder.
To reproduce your error I first tried removing the framework from Embedded Binaries, but the error still didn’t occur.
But I went to Preferences → Locations and navigated to DerivedData and removed the folder and did a clean build, and was able to reproduce the “No such module Checkbox” error.
Conclusion. If at some future time you want a really really clean build, remember to remove the DerivedData folder. (It can also help with weird errors).
You were right, Checkbox was not in Embedded Binaries. I dragged it there and oddly it created a duplicate in Linked Frameworks and Libraries. I thought that was odd so I deleted all three and dragged Checkbox back to Embedded Binaries (which added it to both Embedded Binaries and Linked Frameworks and Libraries), deleted DerivedData, cmd-B and same error.
Checkbox framework and Xcoder schemes still build fine.
I would start by deleting it again, quit Xcode, do all the cleaning and restart the computer. That’s a clean slate. Then add the framework to embedded binaries.
Sometimes also I throw my hands up in dismay and start again. Which is why I suggested taking a backup first.
If there is a definitive answer I am yet to find it.
I actually had the exact same issue, when trying to run the Release Lite Version configuration I had the “No Such Module Checkbox” even when the Checkbox.framework was in Embedded Binaries & Linked Frameworks and Libraries.
The solution for me was to create the duplicate Lite Version configuration in the Checkbox.xcodeproj too, @caroline can you give me some feedback on why this is and whether this is necessary?
@caroline: In the lesson you do things 2 ways. The original poster jerryp48 was probably asking about the first way (this is where I encountered it) and your answer is not relevant until the second way when you have two targets.