Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>So, after a long time i make such things to make this <strong>FacebookSDK</strong> work: </p> <p>1)First, I delete build of <strong>FacebookSDK framework</strong> (<strong>rm -rf</strong>) and run script for building framework (<strong>build_framework.sh</strong>)</p> <p>2)After that, i add to project (<em>project</em> -> <em>build phases</em> -> <em>link binary with libraries</em> ) <strong>FacebookSDK.framework</strong> (from <strong><em>local</em></strong> directory, with button <strong><em>add other</em></strong>) and <strong>libsqlite3.0dylib</strong> and <strong>libsqlite3.dylib</strong> (just search it in search-field!)</p> <p>0) or 3)And After that i make this: find directory <em>~/Library/Developer/Xcode/DerivedData</em> and delete <strong><em>EVERYTHING</em></strong> from this. (use command <strong>rm -rf dir_name/*</strong>)</p> <p>You can do it from step 3) that i also named step 0).</p> <p>Here i provide a script, which can help you</p> <pre><code>#!/usr/bin/perl my $pathToCacheDirectory = qq(~/Library/Developer/Xcode/DerivedData/); sub TaskToDo{ my ($refToArgv)=@_; die "can't work with too much parameters" unless(scalar(@$refToArgv)==1); my $what = shift @$refToArgv; my $time = 30; #wait 30 seconds in each iteration my $workRef = sub{ print "i will delete: "; print qx(ls $pathToCacheDirectory); qx(rm -rf $pathToCacheDirectory); }; #view help if ($what eq 'help'){ print qx(perldoc -t $0); } #list directory if ($what eq 'watch'){ print qx(ls $pathToCacheDirectory); } #kill files instantly if ($what eq 'now'){ print 'kill now'.qq(\n); $workRef-&gt;(); print 'see result'.qq(\n); print qx(ls $pathToCacheDirectory); } #switch on watcher if ($what eq 'work'){ for(;;){ #in INF loop for my $s(0..4){ #print "this is &lt;&lt;$_&gt;&gt;\n"; print "time remaining: ".(5-$s)*$time." sec \n"; sleep($time); } $workRef-&gt;(); sleep(10); } } } TaskToDo(\@ARGV); __END__ =head1 DESCRIPTION This script clear directory with cache from Xcode -- 'help' will show this log -- 'work' will run script as observer and killer -- 'watch' will show info about directory with cache -- 'now' will kill all instantly Example: perl scriptName.pl help =cut </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload