I have written a small private framework that I want to share between a few iOS apps.
Here is the work flow I envision:
The problem is how do I accomplish the "embed using Xcode" step?
I cannot find step-by-step instructions on how to do this. Apple's docs are an out-of-date lie.
All the Stack Overflow questions I have found assume readers know the overall procedure, and I cannot gather enough contextual clues to fill in the implied steps. In fact, I would say a lot of questions stem from the fact there is no modern published procedure from Apple and thus a lot of people are following implied or guessed-at steps.
The most direct, simple, complete, and up-to-date set of steps I have found applies mainly to Swift. The procedure for Swift is sensible, and I wish I was using it, but I am using Objective-C.
I have tried several experiments based on what I am guessing the procedure is, but there are so many possibilities of what the correct procedure could be, that I do not think posting one of my specific problems is the proper approach at this time. After all, everything I have done leading up to my problem could be incorrect.
It took me a while to figure this out, but I did. I posted a more elaborate answer on my blog with several screen shots.
Now to condense that answer down for Stack Overflow. I will explain by example recipe.
Starting point:
doThatThing
method declaration.Goal: ViewController in Pen1 calls doThatThing
on instance of Newhart class.
Steps:
#import <BobLib/Newhart.h>
doThatThing
in Newhart instance.