I think I fixed it by selecting the project file, going to General for the 
Target app, selecting Embedded Binaries and adding the framework.

Suddenly everything magically works.  Now, why this was worked as opposed to 
adding the framework to the app in the build phases didn't or why Embed 
Binaries isn't present in the Build phases is still a mystery to me.

GC App
        Linked.a file #1
        Linked.a file #2
        ...
        Linked.a file #6
        /Frameworks
                myFramework.framework/
                        Base.lproj/
                                myStoryboard.storyboardc
                        myAssets.Bundle
                myFramework

And by everything, lib files 1 through 6 can see my framework and storyboard 
files.  App opens up linked lib 1 (somehow, it's not even directly linked), and 
in code that displays the first page, there is a button that will find the 
storyboard from the proper bundle and instantiate the initial view controller.

Here's the thing…

The GC App is garbage collected.  All the linked libs are garbage collected.  
My framework is ARC.  The universe is not destroyed upon launching the initial 
view controller in my framework.  

Not yet at least.

I still haven't been able to access images in asset libraries in the bundles, 
but this is the big main win since I can add all our linked libs to 
myFramework, test in a simple case app and have confidence that when linked to 
from the GC app, that our app will operate close to as expected.

Hope this helps someone else.

Alex Zavatone

On Mar 2, 2016, at 3:38 PM, Alex Zavatone wrote:

> Hi all.  I've got one target app successfully linking to an iOS framework and 
> opening its storyboard within a bundle successfully.
> 
> The fun begins when I try to do this from another project.  First of all, I'm 
> trying to make sure that the framework is properly installed (or embedded) in 
> the target app of the second project.
> 
> I have manually copied the framework into the project app's directory and 
> dragged it in to the navigator (I know, I know, but one step at a time), but 
> In the target app's Build Phases, there is no Embed Framework option.  
> 
> Under Editor: Add Build Phase, there is no option to Embed Frameworks.  The 
> closest I get is Add Copy Files Build Phase.
> 
> Is it good enough to use  Add Copy Files Build Phase and set the destination 
> to the Frameworks folder in this case?
> 
> Thanks much.
> 
> Alex Zavatone
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (Xcode-users@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/xcode-users/zav%40mac.com
> 
> This email sent to z...@mac.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to