Yes, you simply hit "Distribute", then choose "Save Built Products", choose 
where to save it and it will store the framework (in some subdirectories, 
just grab it out from there).

If you think you will update the framework from time to time, you can have 
a script build CouchbaseLite from command line and move the framework into 
place. Along these lines:

$ cd couchbase-lite-ios
$ xcodebuild -scheme "CBL Mac" -configuration "Release" -archivePath 
"current-build" archive
$ mv 
current-build.xcarchive/Products/Library/Frameworks/CouchbaseLite.framework 
../

For example I have a build phase script that checks if 
"CouchbaseLite/CouchbaseLite.framewok" is in place, if it is not it 
executes these three lines (with the proper path at the end of command 3 of 
course). Then just drag the built framework into Xcode. When I want to 
update the framework I just delete the built product and it will be 
replaced by a fresh build next time I hit run.


On Friday, May 23, 2014 10:34:07 PM UTC-4, Nate Smith wrote:
>
> Okay, I cloned the source code like you said and changed my target to CBL 
> Mac.  When I run products > archive I get this window:
>
>
> <https://lh3.googleusercontent.com/-83biX6SR2x4/U4AEMwEfpDI/AAAAAAAAAFI/tCsyst2RiWs/s1600/Screen+Shot+2014-05-23+at+9.29.32+PM.png>
> I'm lost as to what to do from here.  The docs say "Then use the Organizer 
> window's Archives tab to find the archive and the CouchbaseLite.frameworkit 
> contains."  I don't get how to find the archive, there's only one line 
> shown named CBL Mac.  Also Do I need to click Validate or Distribute and if 
> so what then?
>
> This is all new to me and I find it very confusing.  Do you have any more 
> detailed documentation somewhere?  
>
>
>
>
>
> On Thursday, May 22, 2014 6:31:21 PM UTC-5, Jens Alfke wrote:
>>
>>
>> On May 22, 2014, at 3:40 PM, Nate Smith <[email protected]> wrote:
>>
>> For the life of me I cannot get the 64 bit version of the 3.1 beta to 
>> compile with xcode 5.1.  I keep getting this lovely error:
>>
>>
>> What exactly are you trying to compile? The missing symbols are all from 
>> iOS, and your subject line says you’re building for Mac. So it sounds like 
>> you’re trying to build a Mac app using the iOS version of Couchbase Lite?
>>
>> We don’t ship a pre-compiled Couchbase Lite library for Mac OS. (Maybe 
>> someday…) You’ll need to check out the repository from Github and build 
>> the Mac 
>> target<https://github.com/couchbase/couchbase-lite-ios/wiki/Building-Couchbase-Lite>
>>  to 
>> produce a framework.
>>
>> Also, since 1.0 is out now you should work with that instead of betas.
>>
>> —Jens
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/cd9977d8-f3d6-401a-bfee-165656afeea7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to