snipt

Ctrl+h for KB shortcuts

Text only

Cordova slow/blocking build (mergeArm...)

1
2
3
4
5
It's because there are too much files in www/

In my case it was node_modules/ that I had to move from www/ to src/

I think the build phase tries to merge the files on the platform folder. But the more files, the slower it gets I guess
https://snipt.net/embed/ea7aa6df02a6f7952103252158385122/
https://snipt.net/raw/ea7aa6df02a6f7952103252158385122/
ea7aa6df02a6f7952103252158385122
text
Text only
5
2016-09-25T21:52:48
True
False
False
May 23, 2016 at 09:50 AM
/api/public/snipt/147033/
cordova-slowblocking-build-mergearm
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>It&#39;s because there are too much files in www/ </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>In my case it was node_modules/ that I had to move from www/ to src/ </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>I think the build phase tries to merge the files on the platform folder. But the more files, the slower it gets I guess </span></pre></div> </td></tr></table>
android, build, cordova, slow

Text only

Prepare XCode for adhoc

1
2
3
4
5
6
To ready for adhoc:

Project -> Info
- Add configuration "adhoc"
- Product -> Edit Scheme map Archive to "adhoc"
- Product -> Build for Arhive
https://snipt.net/embed/2b8caa6025bcc9b6955bbf209bdef5c8/
https://snipt.net/raw/2b8caa6025bcc9b6955bbf209bdef5c8/
2b8caa6025bcc9b6955bbf209bdef5c8
text
Text only
6
2016-09-28T00:14:12
True
False
False
/api/public/snipt/34380/
prepare-xcode-for-adhoc
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>To ready for adhoc: </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>Project -&gt; Info </span><span id="L-4"><a name="L-4"></a>- Add configuration &quot;adhoc&quot; </span><span id="L-5"><a name="L-5"></a>- Product -&gt; Edit Scheme map Archive to &quot;adhoc&quot; </span><span id="L-6"><a name="L-6"></a>- Product -&gt; Build for Arhive </span></pre></div> </td></tr></table>
adhoc, build, ios, iphone, xcode

Bash

Compilation vars on Snow Leopard.

1
2
3
4
5
6
7
8
# Useful when compiling stuff
export ARCHFLAGS='-arch x86_64'
export LDFLAGS="-L/Developer/SDKs/MacOSX10.6.sdk/usr/lib"
export CFLAGS="$ARCHFLAGS -I/Developer/SDKS/MacOSX10.6.sdk/usr/include $LDFLAGS"
# For compiling python stuff
#export CFLAGS="$ARCHFLAGS -I/Developer/SDKS/MacOSX10.6.sdk/usr/include -I/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6"
export CXXFLAGS=$CFLAGS
export CPPFLAGS=$CFLAGS
https://snipt.net/embed/3fa40dc900e9f1b2b43282dbc1caaae3/
https://snipt.net/raw/3fa40dc900e9f1b2b43282dbc1caaae3/
3fa40dc900e9f1b2b43282dbc1caaae3
bash
Bash
8
2016-09-29T09:27:53
True
False
False
/api/public/snipt/20879/
compilation-vars-on-snow-leopard
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c"># Useful when compiling stuff</span> </span><span id="L-2"><a name="L-2"></a><span class="nb">export </span><span class="nv">ARCHFLAGS</span><span class="o">=</span><span class="s1">&#39;-arch x86_64&#39;</span> </span><span id="L-3"><a name="L-3"></a><span class="nb">export </span><span class="nv">LDFLAGS</span><span class="o">=</span><span class="s2">&quot;-L/Developer/SDKs/MacOSX10.6.sdk/usr/lib&quot;</span> </span><span id="L-4"><a name="L-4"></a><span class="nb">export </span><span class="nv">CFLAGS</span><span class="o">=</span><span class="s2">&quot;</span><span class="nv">$ARCHFLAGS</span><span class="s2"> -I/Developer/SDKS/MacOSX10.6.sdk/usr/include </span><span class="nv">$LDFLAGS</span><span class="s2">&quot;</span> </span><span id="L-5"><a name="L-5"></a><span class="c"># For compiling python stuff</span> </span><span id="L-6"><a name="L-6"></a><span class="c">#export CFLAGS=&quot;$ARCHFLAGS -I/Developer/SDKS/MacOSX10.6.sdk/usr/include -I/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6&quot;</span> </span><span id="L-7"><a name="L-7"></a><span class="nb">export </span><span class="nv">CXXFLAGS</span><span class="o">=</span><span class="nv">$CFLAGS</span> </span><span id="L-8"><a name="L-8"></a><span class="nb">export </span><span class="nv">CPPFLAGS</span><span class="o">=</span><span class="nv">$CFLAGS</span> </span></pre></div> </td></tr></table>
bash, build, shell

Text only

Maven build commands

mvn -Dmaven.test.skip=true clean install
mvn -Dmaven.test.skip=true prepare-package -o
https://snipt.net/embed/e0822f404d18832c999b16a83e7ffb73/
https://snipt.net/raw/e0822f404d18832c999b16a83e7ffb73/
e0822f404d18832c999b16a83e7ffb73
text
Text only
2
2016-09-28T12:43:40
True
False
False
/api/public/snipt/13442/
maven-build-commands
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>mvn -Dmaven.test.skip=true clean install </span><span id="L-2"><a name="L-2"></a>mvn -Dmaven.test.skip=true prepare-package -o </span></pre></div> </td></tr></table>
build, maven, shell
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.