Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I needed the AWS SDK for Mac to support prepopulating a db for my iOS app and was amazed that it didn't exist (considering how trivial it would be to produce as would be so similar to the iOS version). I downloaded the github MacOS SDKs mentioned by Amber above and the one mentioned in the AWS link above. However neither built straight off so I decided to modify the iOS SDK myself so I could understand what the process was. Here are the steps that I went through to get DynamoDB working in XCode 5.0.2 on MacOS 10.9:</p> <p>1.Download the iOS AWS 1.7.0 SDK, duplicate the folder and rename the folder to aws-MacOS-sdk-1.7.0 (a small amount of conditional compilation and if/else in the build script would do away with this step)</p> <p>2.Modify src/Scripts/Framework.sh - this is the build tool for all the AWS frameworks - Replace all four xcodebuild lines (30-39) with:</p> <pre><code>`xcodebuild -configuration Release -project "${PROJECT}.xcodeproj" -target "${PROJECT}" -sdk macosx10.9` </code></pre> <ul> <li><p>Replace the lipo line (82-87) with:</p> <p><code>FRAMEWORK_INPUT_MAC_FILES="build/Release/lib${PROJECT}.a" cp "$FRAMEWORK_INPUT_MAC_FILES" "$FRAMEWORK_DIR/Versions/Current/$FRAMEWORK_NAME"</code></p></li> </ul> <p>3.In the src folder there is an XCode project per framework, for each one you need:</p> <ul> <li>Change Project's Base SDK to latest OS X</li> <li>Change FTarget's Framework's SDKROOT to macosx10.9</li> <li>Ensure current scheme is set to Framework and build</li> <li>Fix compiler errors (I had a bunch of problems to do with @property, had to replace <code>&lt;UIKit/UIKit.h&gt;</code> with <code>&lt;Cocoa/Cocoa.h&gt;</code> here and there, and <code>[[UIDevice currentDevice] systemName]</code> with <code>[[NSProcessInfo processInfo] operatingSystemVersionString]</code></li> </ul> <p>To get DynamoDB working I had to build four frameworks - it was fairly painless</p>
 

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