Hi Bernardo, To compile xmlsec in xcode you need to build it as a static library. Simply add all the source files, include/lib paths to dependencies (libxml2, openssl, etc.) and that's pretty much it. I don't have an xcode project I can share but it was really simple to do.
Best, Aleksey On 11/17/12 2:03 PM, Bernardo Hoehl wrote: > Dear friends, > > > I have used XMLSEC in the past as it was installed in /opt directory using > Macports. > > I have an xCode project at this moment that needs to sign an XML file, and > the command I would use for this would be: > > export LD_LIBRARY_PATH=/opt/local/lib; /opt/local/bin/xmlsec1 sign > --id-attr:Id infNFe --output /path/to/signed.xml --pkcs12 /path/to/my/p12.pfx > --pwd XXXXPASSWORDXXXX --trusted-pem /path/to/my.pem /path/to/unsigned.xml > > When installing XMLSEC via Mac Ports, files are linked in /opt directory as > you an notice by running the command: > > bernardo$ otool -L /opt/local/bin/xmlsec1 > /opt/local/bin/xmlsec1: > /opt/local/lib/libxmlsec1.1.dylib (compatibility version 4.0.0, current > version 4.13.0) > /opt/local/lib/libxslt.1.dylib (compatibility version 3.0.0, current > version 3.26.0) > /opt/local/lib/libxml2.2.dylib (compatibility version 10.0.0, current > version 10.8.0) > /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current > version 1.2.5) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current > version 125.2.0) > /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current > version 8.0.0) > > > Unfortunately Apple demands now that apps must be sandboxed, and so my app > does not have access to /opt directory, and I can not install XMLSEC on the > users file system. > > I have visited > http://www.aleksey.com/xmlsec/api/xmlsec-notes-compiling-unix.html,and I find > it very hard to understand what I need to do is to bundle XMLSEC into my > xCode project, and make XMLSEC run within my sandboxed app. > > Can someone please adivise me on the steps I need to take? > > Has someone done this before? Can you help me with an xCode sample project > that contains XMLSEC? > > Thank you very much for reading my email, > > > > Bernardo Höhl > Rio de Janeiro - Brazil > > =================================== > > > _______________________________________________ > xmlsec mailing list > xmlsec@aleksey.com > http://www.aleksey.com/mailman/listinfo/xmlsec > _______________________________________________ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec