Note that there are some explanatory texts on larger screens.

plurals
  1. POweirdness when packaging with xcrun (codesign fails when using variable)
    primarykey
    data
    text
    <p>I try to parameterize my application build script when running into this behaviour: the app already has been build (with 'cordova build ios --release') and is available.</p> <p>when calling:</p> <pre><code> $ xcrun ... -sign "iPhone Developer: XXX" -embed ... </code></pre> <p>everything goes fine. so far so good :) now i instead want to use a variable in the call like:</p> <pre><code> $ identity="iPhone Developer: XXX" $ xcrun ... -sign $identity -embed ... </code></pre> <p>where i later pass the $identity parameter to my build script</p> <p>doing the 'xcrun ...' like above logically results in the fact that the 'codesign' command only gets "iPhone" as parameter and fails (of course:) </p> <p>thus i'm trying to mask the $identity</p> <p>closest call for success is to use </p> <pre><code> $ xcrun ... -sign \""$identity"\" -embed ... </code></pre> <p>which results into a 'codesign' call by the xcrun like </p> <pre><code> $ xcrun ... -sign \""$identity"\" -embed ... [...] /usr/bin/codesign ... --sign "iPhone Developer: XXX" ... Program /usr/bin/codesign returned 1 : ["iPhone Developer: XXX": no identity found ] </code></pre> <p>interestingly enough executing the command directly from shell (/bin/bash) works okay !!?</p> <p>i tried as well to define $identity already having double-quotes but that runs into the initial behaviour with no quotation at all. using single-quotes in various combinations didn't help either so far. </p> <p>any idea why xcrun is getting it wrong ? ... or, how to do it differently? like said: the goal is to have a parameterized build script</p> <p>-------- system parameters --------- $ uname -a Darwin allianz 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64</p> <p>$ xcrun -version xcrun version 22.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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