This tutorial is based on a tutorial put together by Babak Samareh.
Pull the latest version of CoolProp from github:
git clone https://github.com/CoolProp/CoolProp --recursive
Make a build folder and generate the headers:
cd CoolProp && mkdir build && cd build cmake .. -G Xcode -DCOOLPROP_STATIC_LIBRARY=ON -DCOOLPROP_IOS_TARGET=ON
Open the generated CoolProp.xcodeproj file in xCode.
Select the project root then under TARGETS select the CoolProp (Cocoa Touch Static Library) and open the Build Settings tab. You should end up with something like this:
Setup your project.
Under Architectures: Make sure that Build Active Architecture Only is set to NO
Under Deployment: Targeted Device Family: 1,2
Change your scheme from Debug to Release. Build the project.
If you are building while on simulator, you end up with a static library .a file with 32/64 bit compatibility. If you want to build an actual arm static library, you have to compile on an actual device.
Connect your phone, select it from the drop down list and build again. Now under products you should be able to see this: